Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/chef-fleet
Chef Cookbook to run a fleet hub or drone to run as an upstart service.
https://github.com/nisaacson/chef-fleet
Last synced: about 1 month ago
JSON representation
Chef Cookbook to run a fleet hub or drone to run as an upstart service.
- Host: GitHub
- URL: https://github.com/nisaacson/chef-fleet
- Owner: nisaacson
- License: other
- Created: 2013-06-30T04:34:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-30T04:54:02.000Z (over 11 years ago)
- Last Synced: 2024-04-14T14:46:27.980Z (7 months ago)
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fleet Cookbook
Set up a fleet hub or drone to run as an upstart service.
# Requirements
The following cookbooks are required
* node-web-user - available from [https://github.com/nisaacson/chef-node-web-user](https://github.com/nisaacson/chef-node-web-user)
* lowport-node - available at [https://github.com/nisaacson/lowport-node](https://github.com/nisaacson/lowport-node)
* build-essential# Usage
To use this when provisioning a chef node, include the `fleet::drone` or `fleet::hub` recipe.
To test out the cookbook you can use vagrant to create a virtual machine with a single hub and drone running. To instiate the virtual machine, execute in the root directory of this project
```bash
# setup the virtual machine
vagrant up
# login to the virtual machine via ssh
vagrant ssh
# make sure fleet is running. You should see a process for the hub and another for the drone
ps -ef | grep node# try to connect to the hub, assuming you used the default attributes in ./attributes/default.rb
fleet-ps --hub=localhost:3000 --secret=beepboop
```# Attributes
You must specify the fleet `port`, `host`, and `secret`. Note that host should be set to localhost when using the `fleet::hub` recipe. When using the `fleet::drone` recipe, `host` should be the host address of a valid fleet hub
```ruby
node.default[:fleet][:port] = 3000
node.default[:fleet][:host] = 'localhost'
node.default[:fleet][:secret] = 'beepboop'
```# Recipes
* fleet::drone start running a fleet drone
* fleet::hub
# AuthorAuthor:: Noah Isaacson