view modules/sudo/manifests/init.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +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"],
	}
}