cookbook 'drone', '= 1.0.0'
drone
(37) Versions
1.0.0
-
Follow7
Installs/Configures Drone
cookbook 'drone', '= 1.0.0', :supermarket
knife supermarket install drone
knife supermarket download drone
Drone cookbook
Installs Drone, a CI server built on Docker.
Requirements
Chef
- Chef 11+
Platforms
This cookbook is tested against:
- Ubuntu 12.04
- Ubuntu 14.04
...but it might work on other platforms.
Usage
Include recipe[drone]
in your run list.
Attributes
These attributes are under the node['drone']
namespace.
Attribute | Description | Type | Default |
---|---|---|---|
package_url | URL of the Drone package to download and install | String | http://downloads.drone.io/master/drone.deb |
temp_file | Path to store the downloaded package | String | /tmp/drone.deb |
config_file | Location of Drone config file | String | /etc/init/drone.conf |
config | Hash of configuration options | Hash | See Config section below |
Configuration
The configuration in Drone 0.4.0 changed from TOML to BASH RC file.
The minimum required attribute is to set following tokens for your "remote" driver (gitlab, github, etc..)
node['drone']['oauth_client']
node['drone']['oauth_secret']
See the drone documentations and attributes/default.rb
for more options.
You may also include drone::docker
recipe or set node['drone']['install_docker'] to install docker on your host. See attributes/docker.rb
for more options.
Recipes
-
recipe[default]
Installs/Configures Drone -
recipe[docker]
Installs/Configures Docker -
recipe[update]
If docker cookbook is used, you may use this recipe to update drone images regularly. (not yet implemented)
Drone Cookbook Changelog
v1.0.0
- BREAKING CHANGE: Use drone containers rather then installing drone package by default
- Add ability to deploy drone using drone docker container
v0.7.7
- Uses docker version from attributes (default 1.8.3)
- Specify docker tls certs or use self-generated
v0.7.0
- Deploy Drone v0.4.0 (a dev branch)
- Add dronerc template
- Add docker recipe to install docker from cookbook
- Add update recipe to update docker images
- For integrations generates docker self-signed certs
v0.6.0
- Docker can now be disabled (Graham Weldon)
- Fix
registration
option - moving to each VCS config (Graham Weldon) - Extend / improve README documentation
v0.5.0
- Configure Drone with TOML (Graham Weldon)
- Use new Drone package URL (Ke Zhu)
v0.4.0
- Add Apache 2.0 license
- Fix options being passed to droned (Ross Timson)
- Numerous development/test improvements (Ross Timson)
v0.3.1
- Settable drone_tmp (Eric Buth)
v0.2.0
- Add ability to specify custom drone options (Brint O'Hearn)
v0.1.0
- Initial Drone cookbook (Justin Campbell)