Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a environment that has several environments like production staging etc . Now what i want is that I can re-use the nodes.pp written for one environment for the other.

Example - Suppose I have 2 environment production and staging. Each contains a web server. Now if I already have nodes.pp (or some other manifests ) written for a node in a environment, how to use hiera-puppet to generate this nodes.pp according to the environment.

+++
++++Production 
+--------------server1-production
+--------------server2-production
++++Staging
+--------------Staging-web1  (Needs the same classes as server1-production)
+--------------Staging-web2  (Needs the same classes as server2-production)
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.