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.
↧