Skip to content

Instantly share code, notes, and snippets.

@eric-aldinger
Last active August 2, 2017 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-aldinger/2cb3a0e0825bff978395a1a90c0be7f6 to your computer and use it in GitHub Desktop.
Save eric-aldinger/2cb3a0e0825bff978395a1a90c0be7f6 to your computer and use it in GitHub Desktop.
include managefile::params
notice('-_-_-_test facts accessible -_-_-_')
notice($environment)
notice($facts[mytoken])
notice($facts[consulhost])
/*
# this totally did not work as expected
class hiera_conf {
class { 'hiera':
backend_options => {
'consul' => {
'token' => $facts[mytoken],
},
},
eyaml => true,
}
}
*/
notice('-_-_-_test Consul accessible -_-_-_')
$consul_service_array = hiera('consul',[])
notice(consul_info($consul_service_array, 'Address'))
notice('-_-_-_interpolated from common yaml -_-_-_')
notice(lookup('aws::rds::max_connections'))
notice('-_-_-_interpolated from Consul directly -_-_-_')
notice(lookup('ar/db/max_connections'))
notice(lookup('ar/db/port'))
notice(lookup('ar/db/analytics/address', String))
notice(lookup('ar/db/hibernate/address', String))
notice(lookup('ar/db/jackrabbit/address', String))
notice(lookup('ar/db/quartz/address', String))
notice('-_-_-_interpolated from params from Consul -_-_-_')
notice($managefiles::params::db_analytics_username)
notice($managefiles::params::db_analytics)
notice($managefiles::params::db_analytics_password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment