move netdisco config (defaults) to global config.yml
This commit is contained in:
		
							
								
								
									
										1
									
								
								Netdisco/bin/config.yml
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								Netdisco/bin/config.yml
									
									
									
									
									
										Symbolic link
									
								
							| @@ -0,0 +1 @@ | ||||
| ../config.yml | ||||
| @@ -27,3 +27,35 @@ engines: | ||||
|     end_tag:   '%]' | ||||
|     PRE_CHOMP: 1 | ||||
|  | ||||
| # netdisco stuff (can be overidden in the environment .yml) | ||||
|  | ||||
| discover_no: [] | ||||
| discover_only: [] | ||||
|  | ||||
| snmpver: 2 | ||||
| snmpretries: 2 | ||||
| snmptimeout: 1000000 | ||||
|  | ||||
| mibhome: /usr/share/netdisco/mibs | ||||
| mibdirs: | ||||
|   - cisco | ||||
|   - rfc | ||||
|   - net-snmp | ||||
|  | ||||
| community: ['public'] | ||||
| community_rw: ['private'] | ||||
|  | ||||
| # rights control for Interactive jobs | ||||
| vlanctl: 1 | ||||
| allow_uplinks: 0 | ||||
| portctl_nophones: 1 | ||||
| portctl_vlans: 1 | ||||
|  | ||||
| # sleep time between polls of the database job queue | ||||
| daemon_sleep_time: 5 | ||||
|  | ||||
| # how many daemon processes | ||||
| # NB one worker will always be a Queue Manager | ||||
| daemon_pollers: 0 | ||||
| daemon_interactives: 2 | ||||
|  | ||||
|   | ||||
| @@ -17,8 +17,10 @@ warnings: 1 | ||||
| # should Dancer show a stacktrace when an error is caught? | ||||
| show_errors: 1 | ||||
|  | ||||
| # database connections | ||||
| plugins: | ||||
|   DBIC: | ||||
|     # alter dsn/user/pass for your local Netdisco DB | ||||
|     netdisco: | ||||
|       schema_class: 'Netdisco::DB' | ||||
|       dsn: 'dbi:Pg:dbname=netdisco;host=localhost' | ||||
| @@ -27,11 +29,20 @@ plugins: | ||||
|       options: | ||||
|         RaiseError: 1 | ||||
|         AutoCommit: 1 | ||||
|     # please do not change/remove this schema unless you | ||||
|     # know what you're doing! | ||||
|     daemon: | ||||
|       schema_class: 'Netdisco::Daemon::DB' | ||||
|       dsn: 'dbi:SQLite:dbname=/tmp/netdisco-daemon.db' | ||||
|       options: | ||||
|         RaiseError: 1 | ||||
|         AutoCommit: 1 | ||||
|         sqlite_use_immediate_transaction: 1 | ||||
|  | ||||
| # for dev env only, this will force login so that a restarting server | ||||
| # doesn't persist in requiring reauth. | ||||
| # no_auth: 1 | ||||
| # uncomment and set to 1 to disable authentication/login | ||||
| no_auth: 1 | ||||
|  | ||||
| # will be stripped from fqdn when displayed in the web UI | ||||
| # don't forget the leading dot | ||||
| # domain_suffix: '.example.com' | ||||
|  | ||||
|   | ||||
| @@ -15,3 +15,32 @@ show_errors: 0 | ||||
| # cache route resolution for maximum performance | ||||
| route_cache: 1 | ||||
|  | ||||
| # database connections | ||||
| plugins: | ||||
|   DBIC: | ||||
|     # alter dsn/user/pass for your local Netdisco DB | ||||
|     netdisco: | ||||
|       schema_class: 'Netdisco::DB' | ||||
|       dsn: 'dbi:Pg:dbname=netdisco;host=localhost' | ||||
|       user: 'changeme' | ||||
|       pass: 'netdisco' | ||||
|       options: | ||||
|         RaiseError: 1 | ||||
|         AutoCommit: 1 | ||||
|     # please do not change/remove this schema unless you | ||||
|     # know what you're doing! | ||||
|     daemon: | ||||
|       schema_class: 'Netdisco::Daemon::DB' | ||||
|       dsn: 'dbi:SQLite:dbname=/tmp/netdisco-daemon.db' | ||||
|       options: | ||||
|         RaiseError: 1 | ||||
|         AutoCommit: 1 | ||||
|         sqlite_use_immediate_transaction: 1 | ||||
|  | ||||
| # uncomment and set to 1 to disable authentication/login | ||||
| # no_auth: 0 | ||||
|  | ||||
| # will be stripped from fqdn when displayed in the web UI | ||||
| # don't forget the leading dot | ||||
| # domain_suffix: '.example.com' | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user