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

How do I make sure a package is only installed on specific clients/machines?

$
0
0
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!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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