Ask Your Question
0

Regarding /etc/puppet/manifests/site.pp

asked 2015-08-11 03:16:51 -0500

tux gravatar image

updated 2015-08-11 03:20:02 -0500

Hi All,

I am newbie in Puppet. If someone could help me clear my doubt regarding the following; Does "puppet agent" always call "/etc/puppet/manifests/site.pp" to execute any modules located under "/etc/puppet/modules/".

I have following two modules (test only) "user-fedora" and "user-unix" under "/etc/puppet/modules" and my "/etc/puppet/manifests/site.pp" looks like as;

node "Fedora-14" { include user-fedora include user-unix package { "finger": ensure => installed } }

My question is if "/etc/puppet/manifests/site.pp" common for everything?

Thanks a ton!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-08-11 14:22:13 -0500

jpiel gravatar image

site.pp is the global base manifest and is used by every node. However node "Fedora-14" { include user-fedora include user-unix package { "finger": ensure => installed } } will only apply to node Fedora-14 since you explicitly say so.

If in site.pp you put something like package { 'vim': ensure => installed, } then vim would be installed on every node that connects to the master and not just one node in particular.

edit flag offensive delete link more

Comments

Thanks @jpiel !!

tux gravatar imagetux ( 2015-08-12 01:08:51 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-08-11 03:16:51 -0500

Seen: 234 times

Last updated: Aug 11 '15