|
47 | 47 | it_behaves_like 'server classes' |
48 | 48 |
|
49 | 49 | if facts[:os]['family'] == 'RedHat' || facts[:os]['family'] == 'Suse' |
50 | | - it { is_expected.to contain_package('mongodb_server').with_ensure('present').with_name('mongodb-org-server').with_tag('mongodb_package') } |
| 50 | + it { is_expected.to contain_package('mongodb_server').with_ensure('6.0').with_name('mongodb-org-server').with_tag('mongodb_package') } |
51 | 51 | elsif facts[:os]['release']['major'] =~ %r{(10)} |
52 | | - it { is_expected.to contain_package('mongodb_server').with_ensure('4.4.8').with_name('mongodb-org-server').with_tag('mongodb_package') } |
| 52 | + it { is_expected.to contain_package('mongodb_server').with_ensure('6.0').with_name('mongodb-org-server').with_tag('mongodb_package') } |
53 | 53 | else |
54 | | - it { is_expected.to contain_package('mongodb_server').with_ensure('present').with_name('mongodb-server').with_tag('mongodb_package') } |
| 54 | + it { is_expected.to contain_package('mongodb_server').with_ensure('6.0').with_name('mongodb-server').with_tag('mongodb_package') } |
55 | 55 | end |
56 | 56 |
|
57 | 57 | it do |
58 | 58 | is_expected.to contain_file(config_file). |
59 | 59 | with_mode('0644'). |
60 | 60 | with_owner('root'). |
61 | 61 | with_group('root'). |
62 | | - with_content(%r{^storage\.dbPath: /var/lib/mongodb$}). |
| 62 | + with_content(%r{^storage\.dbPath: /var/lib/mongo$}). |
63 | 63 | with_content(%r{^net\.bindIp: 127\.0\.0\.1$}). |
64 | 64 | with_content(%r{^systemLog\.logAppend: true$}). |
65 | 65 | with_content(%r{^systemLog\.path: #{log_path}$}) |
|
304 | 304 |
|
305 | 305 | it do |
306 | 306 | is_expected.to contain_exec('fix dbpath permissions'). |
307 | | - with_command('chown -R foo:bar /var/lib/mongodb'). |
| 307 | + with_command('chown -R foo:bar /var/lib/mongo'). |
308 | 308 | with_path(['/usr/bin', '/bin']). |
309 | | - with_onlyif("find /var/lib/mongodb -not -user foo -o -not -group bar -print -quit | grep -q '.*'"). |
310 | | - that_subscribes_to('File[/var/lib/mongodb]') |
| 309 | + with_onlyif("find /var/lib/mongo -not -user foo -o -not -group bar -print -quit | grep -q '.*'"). |
| 310 | + that_subscribes_to('File[/var/lib/mongo]') |
311 | 311 | end |
312 | 312 | end |
313 | 313 |
|
|
0 commit comments