2020-09-30 19:56:00 +00:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
environment:
|
|
|
|
PYTHONPATH: /opt/python2/ansible-deps/lib/python2.7/site-packages
|
|
|
|
vars:
|
|
|
|
dockerengine_packages_extra:
|
|
|
|
- epel-release
|
|
|
|
- python-pip
|
|
|
|
- python-virtualenv
|
|
|
|
dockerengine_networks:
|
|
|
|
- name: droneci_default
|
|
|
|
droneci_autoscaler_service_stopped: True
|
2020-12-06 12:35:42 +00:00
|
|
|
droneci_autoscaler_docker_auth_config: |
|
|
|
|
{
|
|
|
|
"auths": {
|
|
|
|
"https://index.docker.io/v1/": {
|
|
|
|
"auth": "abc...xy="
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
droneci_autoscaler_agent_volumes:
|
|
|
|
- "/root/.docker/config.json:/root/.docker/config.json"
|
|
|
|
droneci_autoscaler_agent_environ:
|
|
|
|
- "DRONE_DOCKER_CONFIG=/root/.docker/config.json"
|
2020-09-30 19:56:00 +00:00
|
|
|
droneci_autoscaler_instances:
|
2020-09-30 20:10:46 +00:00
|
|
|
- name: scaler_amd64
|
2020-09-30 19:56:00 +00:00
|
|
|
pool_max: 50
|
|
|
|
pool_ttl: 120m
|
|
|
|
agent_concurrency: 15
|
|
|
|
agent_architecture: amd64
|
|
|
|
provider_config:
|
|
|
|
- name: DRONE_HETZNERCLOUD_DATACENTER
|
2020-10-01 08:55:33 +00:00
|
|
|
value: fsn1-dc14
|
2020-09-30 19:56:00 +00:00
|
|
|
- name: DRONE_HETZNERCLOUD_TOKEN
|
|
|
|
value: mytoken
|
|
|
|
- name: DRONE_HETZNERCLOUD_IMAGE
|
|
|
|
value: ubuntu-18.04
|
|
|
|
- name: DRONE_HETZNERCLOUD_TYPE
|
|
|
|
value: cx11
|
|
|
|
- name: DRONE_HETZNERCLOUD_SSHKEY
|
|
|
|
value: keyid1
|
|
|
|
- name: DRONE_HETZNERCLOUD_USERDATA_FILE
|
|
|
|
value: /etc/scaler/userdata.yml
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: xoxys.docker_engine
|
|
|
|
- role: xoxys.droneci_autoscaler
|