drone: install runner onto bob

This commit is contained in:
Markus 2020-06-19 23:41:16 +02:00
parent fe5bdab253
commit a065fd4bc8
5 changed files with 48 additions and 1 deletions

1
hosts
View File

@ -5,6 +5,7 @@ aveta.binary.kitchen ansible_host=172.23.2.4
sulis.binary.kitchen ansible_host=172.23.2.5 sulis.binary.kitchen ansible_host=172.23.2.5
nabia.binary.kitchen ansible_host=172.23.2.6 nabia.binary.kitchen ansible_host=172.23.2.6
pizza.binary.kitchen ansible_host=172.23.2.33 pizza.binary.kitchen ansible_host=172.23.2.33
bob.binary.kitchen ansible_host=172.23.2.37
bowle.binary.kitchen ansible_host=172.23.2.62 ansible_python_interpreter=/usr/local/bin/python2.7 bowle.binary.kitchen ansible_host=172.23.2.62 ansible_python_interpreter=/usr/local/bin/python2.7
cerunnos.binary.kitchen ansible_host=172.23.8.23 cerunnos.binary.kitchen ansible_host=172.23.8.23
salat.binary.kitchen ansible_host=172.23.9.61 salat.binary.kitchen ansible_host=172.23.9.61

View File

@ -0,0 +1,17 @@
---
- name: Enable docker apt-key
apt_key: url='https://download.docker.com/linux/debian/gpg'
- name: Enable docker repository
apt_repository:
repo: 'deb https://download.docker.com/linux/debian buster stable'
filename: docker
- name: Install docker
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- python-docker

View File

@ -0,0 +1,4 @@
---
dependencies:
- { role: docker }

View File

@ -0,0 +1,20 @@
---
- name: Run runner container
docker_container:
name: runner
image: drone/drone-runner-docker:1
env:
- DRONE_RPC_PROTO: "https"
- DRONE_RPC_HOST: "{{ drone_domain }}"
- DRONE_RPC_SECRET: "{{ drone_secret }}"
- DRONE_RUNNER_CAPACITY: 2
- DRONE_RUNNER_NAME: "{{ ansible_fqdn }}"
- DRONE_UI_USERNAME: "admin"
- DRONE_UI_PASSWORD: "{{ drone_uipass }}"
ports:
- "3000:3000"
restart_policy: unless-stopped
state: started
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"

View File

@ -8,7 +8,7 @@
- root-keys - root-keys
- name: Setup unattended updates - name: Setup unattended updates
hosts: [sulis.binary.kitchen, nabia.binary.kitchen, beryllium.binary-kitchen.net, boron.binary-kitchen.net, carbon.binary-kitchen.net, nitrogen.binary-kitchen.net, oxygen.binary-kitchen.net, fluorine.binary-kitchen.net, krypton.binary-kitchen.net, sodium.binary-kitchen.net, yttrium.binary-kitchen.net, zirconium.binary-kitchen.net] hosts: [sulis.binary.kitchen, nabia.binary.kitchen, bob.binary.kitchen, beryllium.binary-kitchen.net, boron.binary-kitchen.net, carbon.binary-kitchen.net, nitrogen.binary-kitchen.net, oxygen.binary-kitchen.net, fluorine.binary-kitchen.net, krypton.binary-kitchen.net, sodium.binary-kitchen.net, yttrium.binary-kitchen.net, zirconium.binary-kitchen.net]
roles: roles:
- uau - uau
@ -37,6 +37,11 @@
- librenms - librenms
- prometheus - prometheus
- name: Setup drone runner
hosts: bob.binary.kitchen
roles:
- drone-runner
- name: Setup ldap server - name: Setup ldap server
hosts: helium.binary-kitchen.net hosts: helium.binary-kitchen.net
roles: roles: