Skip to content

Commit beaedd3

Browse files
committed
fix: resolve issues against PR
Improve the docs based on feedback provided. [skip ci]
1 parent beba077 commit beaedd3

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

doc/source/configuration/ci-cd.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ Concepts
66
========
77

88
The CI/CD system developed for managing Kayobe based OpenStack clouds is composed of four main components; workflows, runners, OpenBao and kayobe automation.
9+
910
Firstly, the workflows are files which describe a series of tasks to be performed in relation to the deployed cloud.
1011
These workflows are executed on request, on schedule or in response to an event such as a pull request being opened.
12+
1113
The workflows are designed to carry out various day-to-day activites such as; running Tempest tests, configuring running services or displaying the change to configuration files if a pull request is merged.
1214
Secondly, in order for the workflows to run against a cloud we would need private runners present within the cloud positioned in such a way they can reach the internal network and public API.
1315
Deployment of private runners is supported by all major providers with the use of community developed Ansible roles.
16+
1417
Thirdly, OpenBao is used to store secrets on the same virtual machine the runners are hosted within.
1518
This provides a secure way of storing secrets and variables which can be accessed by the runners when executing workflows and ensures that secrets never have to leave the cloud.
19+
1620
Finally, due to the requirement that we support various different platforms tooling in the form of `Kayobe automation <https://github.com/stackhpc/kayobe-automation/>`__ was developed.
1721
This tooling is not tied to any single CI/CD platform as all tasks are a series of shell script and Ansible playbooks which are designed to run in a purpose build kayobe container.
22+
1823
This is complemented by the use of an Ansible collection known as `stackhpc.kayobe_workflows <https://github.com/stackhpc/ansible-collection-kayobe-workflows/>`__ which aims to provide users with a quick and easy way of customising all workflows to fit within a customer's cloud.
1924

2025
Currently we support the creation and deployment of workflows for GitHub with Gitlab support being actively worked upon.
@@ -315,7 +320,7 @@ In order to enable JWT support the following steps must be carried out within th
315320

316321
2. Run :code:`sudo docker exec -it bao sh`
317322

318-
3. Run :code:`export BAO_AUTH_ADDR=http://127.0.0.1:8200`
323+
3. Run :code:`export BAO_ADDR=http://127.0.0.1:8200`
319324

320325
4. Run :code:`bao login` and use root token
321326

@@ -349,7 +354,7 @@ In order to enable JWT support the following steps must be carried out within th
349354
EOF
350355
bao write auth/jwt/config \
351356
jwks_url="https://gitlab.example.com/oauth/discovery/keys" \
352-
bound_issuer="https://gitlab.example.com" \
357+
bound_issuer="https://gitlab.example.com"
353358
354359
GitLab Pipelines
355360
----------------
@@ -374,7 +379,7 @@ Things to consider
374379
375380
- Disable Auto DevOps in the GitLab project settings by visiting the project -> Settings -> CI/CD -> Auto DevOps -> Disable Auto DevOps
376381
377-
Sometimes the kayobe docker image must be rebuilt the reasons for this include but are not limited to the following;
382+
Sometimes the kayobe docker image must be rebuilt. The reasons for this include but are not limited to the following;
378383
379384
* Change :code:`$KAYOBE_CONFIG_PATH/ansible/requirements.yml`
380385
* Change to requirements.txt

etc/kayobe/ansible/deploy-gitlab-runner.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
state: directory
1010

1111
- name: Ensure docker/config.json exists for runner
12-
ansible.builtin.file:
12+
ansible.builtin.copy:
1313
content: |
1414
{
1515
"auths": {
@@ -20,6 +20,5 @@
2020
}
2121
dest: /opt/.docker/config.json
2222
mode: "0600"
23-
2423
roles:
25-
- name: riemers.gitlab-runner
24+
- role: riemers.gitlab-runner

etc/kayobe/inventory/groups

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ network
9393
monitoring
9494
storage
9595
compute
96-
infra-vms
96+
gitlab-runners
9797

9898
[docker-registry:children]
9999
# Hosts in this group will have a Docker Registry deployed. This group should

0 commit comments

Comments
 (0)