Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.

Commit 654fe66

Browse files
committed
Change attribute name to be more clear : #40
1 parent 986dbb4 commit 654fe66

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ default['mongodb3']['mongod']['config_file'] = '/etc/mongod.conf'
6969
# Mongos config file path
7070
default['mongodb3']['mongos']['config_file'] = '/etc/mongos.conf'
7171
72-
# Cookbook for init scripts
73-
default['mongodb3']['service_template_cookbook'] = 'mongodb3'
72+
# Runit template cookbook for mongos
73+
default['mongodb3']['mongos']['runit_template_cookbook'] = 'mongodb3'
7474
7575
# Key file contents
7676
default['mongodb3']['config']['key_file_content'] = nil

attributes/default.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@
6262
default['mongodb3']['user'] = mongo_user
6363
default['mongodb3']['group'] = mongo_group
6464

65-
# Cookbook for init scripts
66-
default['mongodb3']['service_template_cookbook'] = 'mongodb3'
67-
6865
# Mongod config file
6966
default['mongodb3']['mongod']['config_file'] = '/etc/mongod.conf'
7067

@@ -74,6 +71,9 @@
7471
# Mongos config file
7572
default['mongodb3']['mongos']['config_file'] = '/etc/mongos.conf'
7673

74+
# Runit template cookbook for mongos
75+
default['mongodb3']['mongos']['runit_template_cookbook'] = 'mongodb3'
76+
7777
# Key file contents
7878
default['mongodb3']['config']['key_file_content'] = nil
7979

recipes/mongos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
:config => node['mongodb3']['config']['mongos']
4545
)
4646
helpers Mongodb3Helper
47-
notifies :restart, "runit_service[mongos]"
47+
notifies :restart, 'runit_service[mongos]'
4848
end
4949

5050
# Create the log directory
@@ -82,7 +82,7 @@
8282
runit_service 'mongos' do
8383
retries 3
8484
restart_on_update true
85-
cookbook node['mongodb3']['service_template_cookbook']
85+
cookbook node['mongodb3']['mongos']['runit_template_cookbook']
8686
options ({
8787
:user => node['mongodb3']['user'],
8888
:config_file => node['mongodb3']['mongos']['config_file']

0 commit comments

Comments
 (0)