init: Let a deployer manage sudo rules
This commit aims to let a deployer define sudo rules per user via hiera using the sudo::configs class. Change-Id: I29b435b73ecb6c5285aae8a166fc3c3a5b9fc8c3
This commit is contained in:
@@ -136,6 +136,10 @@ This node is under the control of Puppet ${::puppetversion}.
|
||||
domain => $site_domain
|
||||
}
|
||||
|
||||
# Sudo
|
||||
include ::sudo
|
||||
include ::sudo::configs
|
||||
|
||||
# NTP
|
||||
include ::ntp
|
||||
|
||||
|
@@ -38,6 +38,8 @@ describe 'cloud' do
|
||||
}
|
||||
end
|
||||
|
||||
it {is_expected.to contain_class('sudo')}
|
||||
it {is_expected.to contain_class('sudo::configs')}
|
||||
it {is_expected.to contain_class('ntp')}
|
||||
|
||||
it {is_expected.to contain_file('/etc/motd').with(
|
||||
|
Reference in New Issue
Block a user