From d7881c814f6521235fbcaba76d4020765e8b0c71 Mon Sep 17 00:00:00 2001 From: Maciej Laskowski Date: Thu, 8 Nov 2018 10:52:02 +0100 Subject: [PATCH 1/4] fixes #42 - set proper mongo data directory --- attributes/mongo.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/attributes/mongo.rb b/attributes/mongo.rb index fd75bf9..38307cd 100644 --- a/attributes/mongo.rb +++ b/attributes/mongo.rb @@ -19,5 +19,4 @@ # limitations under the License. # default['mongodb']['package_version'] = '3.2.3' -default['mongodb']['config']['dbpath'] = - '/opt/aet/mongodb/db' +default['mongodb']['config']['mongod']['storage']['dbPath'] = '/opt/aet/mongodb/db' \ No newline at end of file From 309d71a0c623ff894c8f4170adfb59dca557ecc3 Mon Sep 17 00:00:00 2001 From: Maciej Laskowski Date: Thu, 8 Nov 2018 11:48:42 +0100 Subject: [PATCH 2/4] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9381ba6..9bca99e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # unreleased +* [PR-43](https://github.com/Cognifide/aet-cookbook/pull/43) that fixes [#42](https://github.com/Cognifide/aet-cookbook/issues/42). **Important** if you're upgrading from `aet-cookbook` versions `v5.0.0` or `v5.1.0` please follow the instructions in the [PR-43 description](https://github.com/Cognifide/aet-cookbook/pull/43) + # 5.1.0 * Configurable Browsermob proxy port range From 9ae4ab93de2ebed8946af8bd275c3716a8499202 Mon Sep 17 00:00:00 2001 From: Maciej Laskowski Date: Thu, 8 Nov 2018 11:48:56 +0100 Subject: [PATCH 3/4] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bca99e..b401e31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # unreleased -* [PR-43](https://github.com/Cognifide/aet-cookbook/pull/43) that fixes [#42](https://github.com/Cognifide/aet-cookbook/issues/42). **Important** if you're upgrading from `aet-cookbook` versions `v5.0.0` or `v5.1.0` please follow the instructions in the [PR-43 description](https://github.com/Cognifide/aet-cookbook/pull/43) +* [PR-43](https://github.com/Cognifide/aet-cookbook/pull/43) that fixes [#42](https://github.com/Cognifide/aet-cookbook/issues/42). **Important**: if you're upgrading from `aet-cookbook` versions `v5.0.0` or `v5.1.0` please follow the instructions in the [PR-43 description](https://github.com/Cognifide/aet-cookbook/pull/43) # 5.1.0 From e5e06d6dd0481714a37fcf598a6f6c50861b08b2 Mon Sep 17 00:00:00 2001 From: Maciej Laskowski Date: Thu, 8 Nov 2018 12:36:56 +0100 Subject: [PATCH 4/4] inspec test for mongo data dir --- test/mongo/service.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/mongo/service.rb b/test/mongo/service.rb index 75803f9..c87d3f7 100644 --- a/test/mongo/service.rb +++ b/test/mongo/service.rb @@ -8,3 +8,9 @@ describe port(27017) do it { should be_listening } end + +describe file('/opt/aet/mongodb/db') do + it { should exist } + it { should be_directory } + it { should be_owned_by 'mongod' } +end