Skip to content

Commit 463e8ee

Browse files
committed
Merge pull request voxpupuli#283 from hggh/ticket/3175-mongorcjs
(MODULES-3175) change .mongorc.js from world readable to 0600
2 parents 461b040 + 674d143 commit 463e8ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/server/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
content => template('mongodb/mongorc.js.erb'),
237237
owner => 'root',
238238
group => 'root',
239-
mode => '0644'
239+
mode => '0600'
240240
}
241241
} else {
242242
file { $rcfile:

spec/classes/server_config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
with_ensure('present').
143143
with_owner('root').
144144
with_group('root').
145-
with_mode('0644').
145+
with_mode('0600').
146146
with_content(/db.auth\('admin', 'password'\)/)
147147
}
148148
end

0 commit comments

Comments
 (0)