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":
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