Skip to content

Commit 544cc40

Browse files
author
Henning Block
committed
fix lint error
1 parent 6e2735c commit 544cc40

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

manifests/server.pp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
$ssl_ca = undef,
7070
$restart = $mongodb::params::restart,
7171
$storage_engine = undef,
72+
$version = $mongodb::params::version,
7273

7374
$create_admin = $mongodb::params::create_admin,
7475
$admin_username = $mongodb::params::admin_username,
@@ -169,19 +170,19 @@
169170
# Make sure that the ordering is correct
170171
if $create_admin {
171172
Class['mongodb::replset'] -> Mongodb::Db['admin']
172-
if $::mongodb_is_master == 'not_installed' and $auth == true and $noauth != true and versioncmp($version, '2.6.0') >= 0 {
173+
if $::mongodb_is_master == 'not_installed' and $auth == true and $noauth != true and versioncmp($version, '2.6.0') >= 0 {
173174
file_line{ 'enable_authentication' :
174175
ensure => present,
175176
path => $config,
176-
match => "security.authorization:",
177-
line => "security.authorization: enabled",
177+
match => 'security.authorization:',
178+
line => 'security.authorization: enabled',
178179
require => [Class['mongodb::replset'], Mongodb::Db['admin'] ]
179180
}
180181
if $keyfile {
181182
file_line{ 'enable_keyfile' :
182183
ensure => present,
183184
path => $config,
184-
line => "security.keyFile: $keyfile",
185+
line => "security.keyFile: ${keyfile}",
185186
require => [Class['mongodb::replset'], Mongodb::Db['admin']],
186187
notify => Exec['/sbin/restart mongod']
187188
}

0 commit comments

Comments
 (0)