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

How do I check if multiple packages are installed before installing them

$
0
0
I have a list of packages that should be installed on (mostly) rpm based systems. I am installing them like so: Package { ensure => "installed" } $enhancers = [ "graphviz", "gcc-c++", "goaccess", "awstats", "screen", "strace", "nmap", "wget", "curl", "tcpdump", "vim-enhanced", "bind-utils", "tcptraceroute", "traceroute", "policycoreutils-python", "nc", "sharutils", "mutt", "ngrep", "nload", "htop" ] package { $enhancers: } } Please what is the best way to insure that these packages are not installed first? I have tried using unless => $enhancers but this does throw up errors. Thanks!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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