Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brendanhay/numbersd-cookbook
Chef cookbook for installing numbersd
https://github.com/brendanhay/numbersd-cookbook
Last synced: about 1 month ago
JSON representation
Chef cookbook for installing numbersd
- Host: GitHub
- URL: https://github.com/brendanhay/numbersd-cookbook
- Owner: brendanhay
- License: mpl-2.0
- Created: 2012-12-10T09:30:31.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-11T09:08:18.000Z (about 12 years ago)
- Last Synced: 2024-10-13T23:48:10.678Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# numbersd-cookbook
Table of Contents
-----------------* [Usage](#usage)
* [Contribute](#contribute)
* [Licence](#licence)## Usage
This cookbook provides two LWRPs, `install` and `runit`. Internally `runit`
calls `install` implicitly, and is what I currently use to manage numbersd.All flags can be overriden from their defaults by using the attr_writers
specified in `./libraries/flags.rb`, see: [numbersd available flags](https://github.com/brendanhay/numbersd#available-flags) for a full list.**With runit:**
```ruby
depends "numbersd"version = .. # Version to install
checksum = .. # sha256sum of the tarball
source = .. # A url specifying the remote_file for Chef to retrieve
user = .. # The user to chown/run numbersd as
paths = NumbersD::Paths.new(version, checksum, source, user)flags = NumbersD::Flags.new(paths.full_path)
flags.listeners = ["file://stdin", "tcp://0.0.0.0:7125"]
flags.http = 7126
flags.events = [:invalid, :aggregate]
flags.interval = 15
flags. = ..numbersd_runit paths do
flags flags
end
```**Without runit:**
More or less the same as above, but you will need to substitute the
`numbersd_runit` provider for `numbersd_install` and call `#command_line` on a `Flags`
instance to retrieve the prepared command line statement to pass to a service manager template.```ruby
settings = NumbersD::Settings.new(version, checksum, source, user)numbersd_install settings
flags = NumbersD::Flags.new(settings)
flags.command_line
```## Contribute
For any problems, comments or feedback please create an issue [here on GitHub](github.com/brendanhay/numbersd-cookbook/issues).
## Licence
numbersd-cookbook is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/)