Skip to content

vinted/chef-orchestrator

Repository files navigation

orchestrator

Cookbook provides resource for creating github-orchestrator instances https://github.com/github/orchestrator

Usage

 orchestrator_service 'default' do
   database_backend 'mysql/sqlite'
   install_mysql true/false
   mysql_root_password 'password'
   orchestrator_database_name 'orchestrator'
   orchestrator_database_user 'orchestrator'
   orchestrator_database_password 'secret'
   mysql_topology_user 'topology'
   mysql_topology_password 'password'
   http_user 'http_user'
   http_password 'secret'
   raft_nodes []
   mysql_socket '/var/run/mysql-orchestrator/mysqld.sock'
   reload_on_config_change true/false
 end

Cookbook will install fresh mysql instance and configure it to serve orchestrator node.

All of the above attributes are optional, though recommended for production. If mysql_root_password is not defined, random mysql root password will be generated upon installation and saved into /root/.my.cnf credentials file. If you want to manually setup mysql instance, you can skip mysql installation by setting install_mysql to false.

reload_on_config_change - reload orchestrator if config file changes. Default: false.

Examples

Install orchestrator with mysql-community server as backend db:

orchestrator_service 'default' do
end

Install orchestrator with sqlite3 as backend db:

orchestrator_service 'default' do
  database_backend 'sqlite'
end

Cookbook dependencies

Depends on: mysql poise

Orchestrator dependencies

Depends on jq package from epel repository.

Build Status