You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/configuration/ci-cd.rst
+5-27Lines changed: 5 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,11 @@ Runner Deployment
75
75
* `network-interfaces`
76
76
* `python-interpreter.yml` ensuring that `ansible_python_interpreter: /usr/bin/python3` has been set
77
77
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.
79
83
80
84
.. code-block:: yaml
81
85
@@ -85,42 +89,16 @@ Runner Deployment
85
89
github_repo: KAYOBE_CONFIG_REPO_NAME_HERE
86
90
access_token: "{{ secrets_github_access_token }}"
87
91
88
-
base_runner_dir: /opt/actions-runner
89
-
90
92
default_runner_labels:
91
93
- kayobe
92
94
- openstack
93
95
- "{{ kayobe_environment | default(omit) }}"
94
96
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
110
97
github_runners:
111
98
runner_01: {}
112
99
runner_02: {}
113
100
runner_03: {}
114
101
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
-
124
102
6. Obtain a personal access token that would enable the registration of GitHub runners against the `github_account` and `github_repo` defined above.
125
103
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.
126
104
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