Installs and configures the buildkite agent and provides resources for creating SSH keys and hooks
- A Buildkite account
- A supported operating system
- Ubuntu
- Windows
Installs and runs the buildkite agent as a service on your platform.
- The recipe will attempt to load your Buildkite API key from an encrypted data bag using the path specified in
node['buildkite']['token']
(credentials buildkite token
by default) - The configuration file is built from the
node['buildkite']['conf']
object- The
meta-data
key may also be an object that will be converted into akey=value
string
- The
The recipe will notify the buildkite-agent
service to restart whenever your configuration file changes.
Custom resources are currently available only for Ubuntu.
Creates an SSH key for use by the Buildkite agent.
buildkite_key 'id_rsa' do
content my_private_key
end
Creates a Buildkite global hook script.
buildkite_hook 'environment' do
code <<~EOH
export FOO=bar
EOH
end
MIT © Ben Drucker