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

Is it possible to deny puppet master applying manifests in /etc/puppet/manifests to all hosts

$
0
0
Dear community, I'm new to puppet and already spent lots of time trying to create an easy structure to trace my config. So I decided to specify my nodes in site.pp and for each module I want to be installed on the specific node, I created a seperate pp-file, which then is imported in site.pp. Example: site.pp ##################### node 'client1, 'client2', 'client3' { import 'timezone.pp' import 'selinux.pp' import 'apache.pp' } node 'client4', 'client5' { import 'timezone.pp' import 'selinux.pp' import 'apache.pp' import 'mysql.pp' import 'nrpe.pp' } ############### During my tests, I realized that this is not going to work properly, as all my seperate manifests will be applied to any of my nodes. The site.pp definitions are ignored. Now my question is if my clean and seperated manifests way is just silly or if there is a way of preventing puppet from compiling all manifests in /etc/puppet/manifests and just use the definitions in the site.pp file. I also checked "puppet config print manifest" which tells explicitly "/etc/puppet/manifests/site.pp". That made me think my approach should be right, but I'm stuck now. The idea behind the imported manifests is that my colleagues will have a better chance to see which things are definde for which node, at a glance, without having to read through a whole script of definitions. Thank you very much in advance Thorsten

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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