Skip to content

Commit f9a5ebb

Browse files
committed
feat: amend step five and runner count
1 parent a3d40a2 commit f9a5ebb

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

doc/source/configuration/ci-cd.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ Runner Deployment
7575
* `network-interfaces`
7676
* `python-interpreter.yml` ensuring that `ansible_python_interpreter: /usr/bin/python3` has been set
7777

78-
5. Edit the ``${KAYOBE_CONFIG_PATH}/inventory/group_vars/github-runners/runners.yml`` file which will contain the variables required to deploy a series of runners
78+
5. Edit the ``${KAYOBE_CONFIG_PATH}/inventory/group_vars/github-runners/runners.yml`` file which will contain the variables required to deploy a series of runners.
79+
Below is a core set of variables that will require consideration and modification for successful deployment of the runners.
80+
The number of runners deployed can be configured by removing and extending the dict :code:`github-runners`.
81+
As for how many runners present three is suitable number as this would prevent situations where long running jobs could halt progress other tasks whilst waiting for a free runner.
82+
You might want to increase the number of runners if usage demands it or new workflows make use of multiple parallel jobs.
7983

8084
.. code-block:: yaml
8185
@@ -85,42 +89,16 @@ Runner Deployment
8589
github_repo: KAYOBE_CONFIG_REPO_NAME_HERE
8690
access_token: "{{ secrets_github_access_token }}"
8791
88-
base_runner_dir: /opt/actions-runner
89-
9092
default_runner_labels:
9193
- kayobe
9294
- openstack
9395
- "{{ kayobe_environment | default(omit) }}"
9496
95-
# Dictionary of runners to be deployed using the role.
96-
# Each dict item can be provided with optional attributes
97-
# * labels - provide a list of labels for a specific runner
98-
# overriding the contents of `default_runner_labels`
99-
# * state - either `started`` or `absent`. By default it will
100-
# be started if however the runner needs to be removed
101-
# then setting it to `absent` will unregister the runner with
102-
# GitHub and remove it from the system.
103-
# Example
104-
# github_runners:
105-
# runner_01: {}
106-
# runner_02:
107-
# labels: ['foo', 'bar', 'baz']
108-
# runner_03:
109-
# state: absent
11097
github_runners:
11198
runner_01: {}
11299
runner_02: {}
113100
runner_03: {}
114101
115-
docker_users:
116-
- "{{ runner_user }}"
117-
118-
pip_install_packages:
119-
- name: docker
120-
121-
If using multiple environments add an extra label to :code:`default_runner_labels` to distinguish these runners from runners belonging to other environments.
122-
Also feel free to change the number of runners and their names.
123-
124102
6. Obtain a personal access token that would enable the registration of GitHub runners against the `github_account` and `github_repo` defined above.
125103
This token ideally should be `fine-grained personal access token <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token>`__ which may require the organisation to enable such tokens beforehand.
126104
Steps can be found `here <https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization>`__.

0 commit comments

Comments
 (0)