Mercurial > repos > other > Puppet
view modules/sudo/manifests/init.pp @ 399:2c6065b5be5e
Switch to config-based PHP extensions
This makes it compatible with Ubuntu, otherwise it keeps
trying to re-install the same module because the "phpX.X"
package is a virtual package and the Puppet handling of
Ubuntu's "is it installed" system is incapable of saying
"yes" when a virtual package is installed.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 20 Apr 2022 19:08:14 +0100 |
parents | a8a7b2b343b5 |
children |
line wrap: on
line source
class sudo { package { sudo: ensure => latest } file { "/etc/sudoers.d/enable-wheel": owner => root, group => root, mode => '0440', source => "puppet:///modules/sudo/enable-wheel", require => Package["sudo"], } file { "/etc/sudoers.d/use-root-pwd": owner => root, group => root, mode => '0440', source => "puppet:///modules/sudo/use-root-pwd", require => Package["sudo"], } file { "/etc/sudoers.d/keep-editor": owner => root, group => root, mode => '0440', source => "puppet:///modules/sudo/keep-editor", require => Package["sudo"], } file { "/etc/sudoers.d/keep-less-highlight": owner => root, group => root, mode => '0440', source => "puppet:///modules/sudo/keep-less-highlight", require => Package["sudo"], } }