I want to make sure certain packages(e.g. gcc and/or x11) are only installed on specific machines.
With my limited experience with puppet, I came up with this:
#site.pp
package { 'gcc':
ensure => 'absent',
}
#nodes.pp
node 'linuxtest.host.org' {
package { 'gcc' :
ensure => 'present',
}
}
Of course it would end up not working since the resource is already declared twice.
Could anyone help me out on how to go about getting this to work? Thanks in advance!
↧