Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
# Author

Author:: Noah Isaacson