Chef cookbook for installing and configuring NSQ applications
# roles/msg-bus.rb
name 'msg-bus'
default_attributes(
:nsq => {
:instances => {
:msg_bus => {
:app => 'nsqd',
:config => {
:data_path => '/var/lib/data/msg-bus'
}
}
}
}
)
nsq 'msg_bus' do
app 'nsqd'
config {:data_path => '/var/lib/data/msg-bus'}
end
- Repository: https://github.com/hw-cookbooks/nsq