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:
Emilien Macchi 2014-08-21 18:00:43 +02:00
parent c06ec9cdbd
commit 72b383d760
2 changed files with 4 additions and 1 deletions

View File

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

View File

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