diff --git a/manifests/dispersion.pp b/manifests/dispersion.pp index b20f21fc..97a72a89 100644 --- a/manifests/dispersion.pp +++ b/manifests/dispersion.pp @@ -89,6 +89,7 @@ class swift::dispersion ( ensure => file, owner => 'swift', group => 'swift', + mode => '0640', } swift_dispersion_config { diff --git a/spec/classes/swift_dispersion_spec.rb b/spec/classes/swift_dispersion_spec.rb index c037ea3e..ae33da03 100644 --- a/spec/classes/swift_dispersion_spec.rb +++ b/spec/classes/swift_dispersion_spec.rb @@ -31,7 +31,8 @@ describe 'swift::dispersion' do it { is_expected.to contain_file('/etc/swift/dispersion.conf').with( :ensure => 'file', :owner => 'swift', - :group => 'swift',) + :group => 'swift', + :mode => '0640',) } shared_examples 'swift::dispersion' do