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
↧