init: use include for ntp class
Allow to inject specific parameters via Hiera by using incluse instead of class {'...'}. Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
c06ec9cdbd
commit
72b383d760
@ -58,7 +58,7 @@ This node is under the control of Puppet ${::puppetversion}.
|
|||||||
}
|
}
|
||||||
|
|
||||||
# NTP
|
# NTP
|
||||||
class { 'ntp': }
|
include ::ntp
|
||||||
|
|
||||||
# Strong root password for all servers
|
# Strong root password for all servers
|
||||||
user { 'root':
|
user { 'root':
|
||||||
|
@ -37,6 +37,9 @@ describe 'cloud' do
|
|||||||
:mode => '0644'
|
:mode => '0644'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it {should contain_class('ntp')}
|
||||||
|
|
||||||
it {should contain_file('/etc/motd').with(
|
it {should contain_file('/etc/motd').with(
|
||||||
{:ensure => 'file'}.merge(file_defaults)
|
{:ensure => 'file'}.merge(file_defaults)
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user