Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.

Remove unused nsq common directory. Fix nsqd data_path #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* 1.2.4
- Fixed data_path consistency, if you're using `['nsq']['data_path']` in production
to set the nsqd data_path, please update to `['nsq']['nsqd']['data_path']`.
* 1.2.3 - Added support for missing nsqd options
* 1.2.2 - Added support for customizing the system users used to run nsq services
* 1.2.1 - Fixed bug in nsqlookupd upstart template when default attributes used
Expand Down
3 changes: 0 additions & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@
# Architecture
default['nsq']['arch'] = 'linux-amd64'

# Common directories
default['nsq']['data_path'] = '/var/spool/nsq'

# Should we setup upstart services?
default['nsq']['setup_services'] = true
2 changes: 1 addition & 1 deletion attributes/nsqd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
default['nsq']['nsqd']['max_heartbeat_interval'] = '1m0s'

# -data-path='': path to store disk-backed messages
default['nsq']['nsqd']['data_path'] = default['nsq']['data_path']
default['nsq']['nsqd']['data_path'] = '/var/spool/nsq'

# -tls-cert='': path to tls certificate file
default['nsq']['nsqd']['tls_cert'] = ''
Expand Down
2 changes: 1 addition & 1 deletion recipes/nsqd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
nsq_release = "nsq-#{node['nsq']['version']}-#{node['nsq']['go_version']}"

# Create path for the on-disk queue files are stored
directory node['nsq']['data_path'] do
directory node['nsq']['nsqd']['data_path'] do
action :create
mode '0770'
owner 'nsqd'
Expand Down