Works for me
case $operatingsystem {
default: {$ssh_packages = ["openssh-server", "openssh-
clients"] }
}
package { $ssh_packages: ensure => installed }
service { sshd:
name => $operatingsystem ? {
default => "sshd"
},
enable => true,
ensure => running,
require => Package[$ssh_packages]
}
Cheers
Dave
On 17/03/2009, at 12:03 AM, Felix Schäfer wrote:
>
> Am 16.03.2009 um 13:40 schrieb Dave Cheney:
>
>> Would require => Package[$packagelist] fit the bill ?
>
> Haven't tried it, so take this with a grain of salt, but I'd wager you
> end with Package[["some", "software", "to", "install"]], which I don't
> think puppet can parse.
>
> Mit freundlichen Grüßen,
>
> Felix Schäfer
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---