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:
Yanis Guenane
2015-02-19 04:02:38 -05:00
parent 212a3e164f
commit 16ac4c7825
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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(