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

Global variable not puppulated ont he first run after server build

$
0
0
We are using Puppet server built into Redhat satellite server 6.1. I have following code (see below) that uses PuppetGroup variable defined as a global variable in Redhat satellite 6 server. We run on the client Puppet v3.6.2. I inserted function notify to show me value of variable PuppetGroup. When the puppet code is run for the first time after server build, the variable has no value. Any subsequent run, without any changes to the code, correctly reports PuppetGroup variable value. Can somebody point me in a right direction, how to fix the issue. Your help is appreciated. class configure::dnsresolvconf { if defined ("configure::dnsresolvconf::${puppetgroup}"){ configure::trace { "Class configure::dnsresolvconf::${puppetgroup} is being executed": } include "configure::dnsresolvconf::${puppetgroup}" } else { configure::trace { "Class configure::dnsresolvconf::${puppetgroup} is not defined": } } }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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