File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 4040 $pidfilepath = ' /var/run/mongodb/mongos.pid'
4141 $unixsocketprefix = ' /var/run/mongodb'
4242 $logpath = ' /var/log/mongodb/mongos.log'
43- $fork = true
43+ $fork = undef # https://github.com/voxpupuli/puppet-mongodb/issues/667
4444 $service_template = ' mongodb/mongos/RedHat/mongos.service-dropin.epp'
4545 }
4646 }
Original file line number Diff line number Diff line change 5050 $logpath = ' /var/log/mongodb/mongod.log'
5151 $pidfilepath = ' /var/run/mongodb/mongod.pid'
5252 $config = ' /etc/mongod.conf'
53- $fork = true
53+ $fork = undef # https://github.com/voxpupuli/puppet-mongodb/issues/667
5454 $journal = true
5555 }
5656 ' Debian' : {
Original file line number Diff line number Diff line change 3030 when 'RedHat' , 'Suse'
3131 expected_content = <<~CONFIG
3232 configdb = 127.0.0.1:27019
33- fork = true
3433 pidfilepath = /var/run/mongodb/mongos.pid
3534 logpath = /var/log/mongodb/mongos.log
3635 unixSocketPrefix = /var/run/mongodb
Original file line number Diff line number Diff line change 5959 with_content ( %r{^systemLog\. path: #{ log_path } $} )
6060 end
6161
62- if facts [ :os ] [ 'family' ] == 'Debian'
63- it { is_expected . not_to contain_file ( config_file ) . with_content ( %r{fork} ) }
64- else
65- it { is_expected . to contain_file ( config_file ) . with_content ( %r{^ fork: true$} ) }
66- end
62+ it { is_expected . not_to contain_file ( config_file ) . with_content ( %r{fork} ) }
6763
6864 it { is_expected . to contain_file ( '/root/.mongoshrc.js' ) . with_ensure ( 'file' ) . without_content ( %r{db\. auth} ) }
6965 it { is_expected . not_to contain_exec ( 'fix dbpath permissions' ) }
You can’t perform that action at this time.
0 commit comments