GitHub - cppalliance/ansible-dronerunner · GitHub
Skip to content

Latest commit

 

History

67 Commits

Folders and files

Repository files navigation

Ansible role to install drone.io runner

Drone has an autoscaler implementation, which is recommended. However, in some cases it is still useful to be able to install a drone agent on a single physical server where jobs will be run locally.

One approach for dealing with secure tokens is to set up group variables, encrypting the vault file.

vi /etc/ansible/group_vars/dronerunners/vars

---
dronerunner_drone_rpc_proto: "https"
dronerunner_drone_rpc_host: "drone.example.com"
dronerunner_drone_rpc_secret: "{{ vault_dronerunner_drone_rpc_secret }}"
dronerunner_drone_runner_capacity: 6
dronerunner_drone_runner_name: "{{ inventory_hostname }}"
dronerunner_drone_logs_debug: "false"
dronerunner_drone_logs_trace: "false"

vi /etc/ansible/group_vars/dronerunners/vault

vault_dronerunner_drone_rpc_secret: the_secret

This role sets drone labels "test:true". If everything is working on the node, manually remove that label and restart.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages