Ask Your Question
0

How can I "mask" a service.

asked 2015-02-25 16:28:03 -0600

Red Cricket gravatar image

I am trying to find the puppet equivalent to systemctl mask firewalld. I tried ...

# puppet apply -e " service { 'firewalled': ensure => masked }"
Notice: Compiled catalog for mgmt-el7-001 in environment production in 0.10 seconds
Error: Parameter ensure failed on Service[firewalled]: Invalid value "masked". Valid values are stopped, running.  at line 1
Wrapped exception:
Invalid value "masked". Valid values are stopped, running. 
Wrapped exception:
Invalid value "masked". Valid values are stopped, running.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-25 17:02:06 -0600

GregLarkin gravatar image

Unfortunately, you'll have to do this yourself with an exec resource for now. However, an enhancement to the service resource provider for systemd is in the works for Puppet 4: https://tickets.puppetlabs.com/browse/PUP-1253

I can't say when that will be released, but at least the functionality is on track for version 4, and there is a pull request to be merged.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-25 16:28:03 -0600

Seen: 934 times

Last updated: Feb 25 '15