diff --git a/attributes/default.rb b/attributes/default.rb index fef55ad..869d543 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -13,14 +13,6 @@ default['librenms']['user'] = 'librenms' default['librenms']['group'] = 'librenms' -# env related -default['librenms']['env']['APP_KEY'] = 'Ch4ng3m3pl34s3TyChangeMePleaseTy' -default['librenms']['env']['DB_HOST'] = 'localhost' -default['librenms']['env']['DB_DATABASE'] = node['mariadb']['database']['name'] -default['librenms']['env']['DB_USERNAME'] = node['mariadb']['user_librenms']['username'] -default['librenms']['env']['DB_PASSWORD'] = node['mariadb']['user_librenms']['password'] -default['librenms']['env']['APP_URL'] = 'http://' + node['librenms']['web']['name'] + '/' - # httpd related default['librenms']['web']['name'] = 'librenms.example.com' default['librenms']['web']['port'] = '80' @@ -30,6 +22,14 @@ default['librenms']['phpini']['memory_limit'] = '128M' default['librenms']['phpini']['timezone'] = 'UTC' +# env related +default['librenms']['env']['APP_KEY'] = 'Ch4ng3m3pl34s3TyChangeMePleaseTy' +default['librenms']['env']['DB_HOST'] = 'localhost' +default['librenms']['env']['DB_DATABASE'] = node['mariadb']['database']['name'] +default['librenms']['env']['DB_USERNAME'] = node['mariadb']['user_librenms']['username'] +default['librenms']['env']['DB_PASSWORD'] = node['mariadb']['user_librenms']['password'] +default['librenms']['env']['APP_URL'] = 'http://' + node['librenms']['web']['name'] + '/' + # snmpd default['librenms']['snmp']['community'] = 'public' default['librenms']['contact'] = 'webmaster@example.com'