Re: [Puppet Users] Stopping two services at once

2011-05-16 Thread Bruce Richardson
On Mon, May 16, 2011 at 12:16:53PM +0100, Jonathan Gazeley wrote: > Is there a way to stop and disable two services in one declaration? > Currently I have this: > > # Stop sendmail > service { "sendmail": > ensure => stopped, > enable => false, > } > > # Stop exim > service { "exim":

Re: [Puppet Users] Stopping two services at once

2011-05-16 Thread Adam Heinz
On Mon, May 16, 2011 at 7:16 AM, Jonathan Gazeley wrote: > Is it possible to format that like this?: > > service { "disabledemail": >        name => ['sendmail', 'exim'], >        ensure => stopped, >        enable => false, > } I think you mean service {[ 'sendmail', 'exim']: ensure => stoppe