Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

string based from two hiera lookups?

$
0
0
Hi there How could I write a string based from two hiera-lookups with an @ un the middle? something like hiera('rabbit_user')@hiera('control_node') should give me for example elmer_fudd@runrabbitrun as string class profiles::rabbitmq { include ::rabbitmq rabbitmq_user { hiera('rabbit_user'): admin => false, password => hiera('rabbit_password'), } rabbitmq_user_permissions { "hiera('rabbit_user')@hiera('rabbit_node')": configure_permission => '.*', read_permission => '.*', write_permission => '.*', } } I've tried also "hiera('rabbit_user')"@"hiera('rabbit_node')": but everything what i tried gives me an Server Error: Syntax error at '@' at thanks in advance

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>