diff --git a/manifests/init.pp b/manifests/init.pp index 0d1b004..d3df39a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -160,8 +160,8 @@ file { $config_file: ensure => $file_ensure, - owner => root, - group => 0, + owner => 'root', + group => 'root', mode => '0644', content => template('smartd/smartd.conf'), require => Package[$package_name], diff --git a/spec/classes/smartd_spec.rb b/spec/classes/smartd_spec.rb index 9dcb1c9..025bc0c 100644 --- a/spec/classes/smartd_spec.rb +++ b/spec/classes/smartd_spec.rb @@ -31,7 +31,7 @@ it { should contain_file('/etc/smartd.conf').with( :ensure => 'present', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644', :notify => 'Service[smartd]' )} @@ -57,7 +57,7 @@ it { should contain_file('/etc/smartd.conf').with( :ensure => 'present', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644', :require => 'Package[smartmontools]', :notify => 'Service[smartd]' @@ -90,7 +90,7 @@ it { should contain_file('/usr/local/etc/smartd.conf').with( :ensure => 'present', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644', :require => 'Package[smartmontools]', :notify => 'Service[smartd]'