Skip to content

Commit 34249ab

Browse files
committed
feat: placeholder runners.yml to group_vars
1 parent c1153ec commit 34249ab

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

doc/source/configuration/ci-cd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Runner Deployment
7272
* `network-interfaces`
7373
* `python-interpreter.yml` ensuring that `ansible_python_interpreter: /usr/bin/python3` has been set
7474

75-
5. Create `${KAYOBE_CONFIG_PATH}/environments/${KAYOBE_ENVIRONMENT}/inventory/group_vars/github-runners/runner.yml` file which will contain the variables required to deploy a series of runners
75+
5. Create or edit `${KAYOBE_CONFIG_PATH}/inventory/group_vars/github-runners/runners.yml` file which will contain the variables required to deploy a series of runners
7676

7777
.. code-block:: yaml
7878
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
runner_user: VM_USER_NAME_HERE
3+
github_account: ORG_NAME_HERE
4+
github_repo: KAYOBE_CONFIG_REPO_NAME_HERE
5+
access_token: "{{ secrets_github_access_token }}"
6+
7+
base_runner_dir: /opt/actions-runner
8+
9+
default_runner_labels:
10+
- kayobe
11+
- openstack
12+
- "{{ kayobe_environment | default(omit) }}"
13+
14+
# Dictionary of runners to be deployed using the role.
15+
# Each dict item can be provided with optional attributes
16+
# * labels - provide a list of labels for a specific runner
17+
# overriding the contents of `default_runner_labels`
18+
# * state - either `started`` or `absent`. By default it will
19+
# be started if however the runner needs to be removed
20+
# then setting it to `absent` will unregister the runner with
21+
# GitHub and remove it from the system.
22+
# Example
23+
# github_runners:
24+
# runner_01: {}
25+
# runner_02:
26+
# labels: ['foo', 'bar', 'baz']
27+
# runner_03:
28+
# state: absent
29+
github_runners:
30+
runner_01: {}
31+
runner_02: {}
32+
runner_03: {}
33+
34+
docker_users:
35+
- "{{ runner_user }}"
36+
37+
pip_install_packages:
38+
- name: docker

0 commit comments

Comments
 (0)