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

Pass array values in class

$
0
0
Hello All, I am begineer with puppet ,I was instructed to install the below packages using "class" what i have done initially is $packages = [ 'python-pil','python-django', 'requests'] class web { package { $packages: ensure => installed, } } It hadn't worked then tried with class python_web_pack { package { 'python-pil': ensure => installed, } package {'python-django': ensure => installed, } package {'requests': ensure => installed, provider => pip, } } It was worked.However i have to mention the packages individually to accomplish How to shrink the lines by passing the array values.Please guide me

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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