Skip to content

bendrucker/buildkite-cookbook

Repository files navigation

buildkite-cookbook Build Status

Installs and configures the buildkite agent and provides resources for creating SSH keys and hooks

Requirements

  • A Buildkite account
  • A supported operating system
    • Ubuntu
    • Windows

Recipes

buildkite::default

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 a key=value string

The recipe will notify the buildkite-agent service to restart whenever your configuration file changes.

Resources

Custom resources are currently available only for Ubuntu.

buildkite_key

Creates an SSH key for use by the Buildkite agent.

buildkite_key 'id_rsa' do
  content my_private_key
end

buildkite_hook

Creates a Buildkite global hook script.

buildkite_hook 'environment' do
  code <<~EOH
    export FOO=bar
  EOH
end

License

MIT © Ben Drucker

About

Chef cookbook for installing and configuring Buildkite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages