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

Generate a template dynamically using environment attribute

$
0
0
I have two environments setup Development and Production on PE 4.2.2. The basic thing I want to do is to isolate code and getting it deployed as per the environment chosen. I am trying to write a template having the same code `` which is suppose to generate lines dynamically like below as per the environment selected: `` : if code is deployed on dev env `` : if code is deployed on prod env I see, there is no facter "environment" available and if possible we can make this using environment variable. But I am not very sure how to implement this. Any help would be appreciated.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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