Code Monkey home page Code Monkey logo

nsq's Introduction

NSQ Cookbook

Chef cookbook for installing and configuring NSQ applications

Usage

Attribute driven

# roles/msg-bus.rb

name 'msg-bus'

default_attributes(
  :nsq => {
    :instances => {
      :msg_bus => {
        :app => 'nsqd',
        :config => {
          :data_path => '/var/lib/data/msg-bus'
        }
      }
    }
  }
)

LWRP

nsq 'msg_bus' do
  app 'nsqd'
  config {:data_path => '/var/lib/data/msg-bus'}
end

Infos

nsq's People

Contributors

chrisroberts avatar tas50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nsq's Issues

nsq lwrp fails if data_path is not defined

   ================================================================================
   Error executing action `add` on resource 'nsq[nsqlookupd]'
   ================================================================================


   ArgumentError
   -------------
   You must supply a name when declaring a directory resource


   Cookbook Trace:
   ---------------
   /tmp/kitchen/cache/cookbooks/nsq/providers/default.rb:52:in `block in class_from_file'


   Resource Declaration:
   ---------------------
   # In /tmp/kitchen/cache/cookbooks/nsq/recipes/default.rb

     4:   nsq name do
     5:     args.each do |attr_name, attr_value|
     6:       self.send(attr_name, lazy{attr_value})
     7:     end
     8:   end
     9: end



   Compiled Resource:
   ------------------
   # Declared in /tmp/kitchen/cache/cookbooks/nsq/recipes/default.rb:4:in `block in from_file'

   nsq("nsqlookupd") do
     action :add
     retries 0
     retry_delay 2
     guard_interpreter :default
     cookbook_name "nsq"
     recipe_name "default"
     app #<Chef::DelayedEvaluator:0x00000004587420@/tmp/kitchen/cache/cookbooks/nsq/recipes/default.rb:6>
     create_user #<Chef::DelayedEvaluator:0x00000004587330@/tmp/kitchen/cache/cookbooks/nsq/recipes/default.rb:6>
     run_as "root"
     use_config_file true
   end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.