diff --git a/manifests/init.pp b/manifests/init.pp index 0875908b..aec495dd 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -58,7 +58,7 @@ This node is under the control of Puppet ${::puppetversion}. } # NTP - class { 'ntp': } + include ::ntp # Strong root password for all servers user { 'root': diff --git a/spec/classes/cloud_init_spec.rb b/spec/classes/cloud_init_spec.rb index 4ed14a71..d74583ac 100644 --- a/spec/classes/cloud_init_spec.rb +++ b/spec/classes/cloud_init_spec.rb @@ -37,6 +37,9 @@ describe 'cloud' do :mode => '0644' } end + + it {should contain_class('ntp')} + it {should contain_file('/etc/motd').with( {:ensure => 'file'}.merge(file_defaults) )}