-
-
Save eric-aldinger/2cb3a0e0825bff978395a1a90c0be7f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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