Ask Your Question

Puppet selboolean module

asked 2017-02-17 10:40:37 -0600

Taleeb gravatar image

I have the following puppet module:

selboolean { 'scan system':
    name       => 'scan system',
    persistent => true,
    provider   => 'antivirus_can_scan_system',
    value      => on,

When I deploy the module, I get the following error:

Error: Failed to apply catalog: Parameter provider failed on Selboolean[scan system]: Invalid selboolean provider 'antivirus_can_scan_system' at /file/path/selinux.pp

I am not really familiar with Puppet language, so I am not sure what's I am doing wrong here. Any help appreciated. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-02-19 13:27:47 -0600

According the documentation on the selboolean resource type § provider only the getsetsebool is a valid provider value.

Your resource declaration should look like this:

selboolean { 'scan system':
  # name automatically equals to resource title (the string before the colon)
  value      => 'on',
  persistent => true,
  # provider gets automatically selected

However, it is advised not to specify the provider attribute at all, unless there's a need to.

edit flag offensive delete link more


Thanks, this resolved my issue.

Taleeb gravatar imageTaleeb ( 2017-02-28 12:59:18 -0600 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2017-02-17 10:40:37 -0600

Seen: 64 times

Last updated: Feb 19 '17