Skip to content

Commit ebfe4e7

Browse files
committed
set manage_limits_file to true by default, fixes #64
1 parent ffa9757 commit ebfe4e7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

data/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ limits::manage_limits_d_dir: true
88
limits::purge_limits_d_dir: true
99

1010
limits::limits_file: /etc/security/limits.conf
11-
limits::manage_limits_file: false
11+
limits::manage_limits_file: true
1212
limits::limits_file_owner: 'root'
1313
limits::limits_file_group: 'root'
1414
limits::limits_file_mode: '0644'

spec/classes/init_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
end
2929

3030
it do
31-
is_expected.not_to contain_file('/etc/security/limits.conf')
31+
is_expected.to contain_file('/etc/security/limits.conf').with(
32+
'ensure' => 'file',
33+
'owner' => 'root',
34+
'group' => 'root',
35+
'mode' => '0644'
36+
)
3237
end
3338
end
3439

@@ -61,20 +66,15 @@
6166
it { is_expected.not_to contain_file('/etc/security/limits.d') }
6267
end
6368

64-
describe 'with manage_limits_file set to true' do
69+
describe 'with manage_limits_file set to false' do
6570
let :params do
6671
{
67-
manage_limits_file: true
72+
manage_limits_file: false
6873
}
6974
end
7075

7176
it do
72-
is_expected.to contain_file('/etc/security/limits.conf').with(
73-
'ensure' => 'file',
74-
'owner' => 'root',
75-
'group' => 'root',
76-
'mode' => '0644'
77-
)
77+
is_expected.not_to contain_file('/etc/security/limits.conf')
7878
end
7979
end
8080
end

0 commit comments

Comments
 (0)