Skip to content

Allow to customize butane config file #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/gitlab_runner/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ gitlab_runner_session_server_timeout: 1800
gitlab_runner_autoscaler_plugin_version: "0.21.1"
gitlab_runner_autoscaler_plugin_url: "https://github.com/sardinasystems/fleeting-plugin-openstack/releases/download/{{ gitlab_runner_autoscaler_plugin_version }}/fleeting-plugin-openstack_{{ gitlab_runner_autoscaler_plugin_version }}_linux_amd64.tar.gz"
gitlab_runner_autoscaler_plugin_checksumfile: "https://github.com/sardinasystems/fleeting-plugin-openstack/releases/download/{{ gitlab_runner_autoscaler_plugin_version }}/fleeting-plugin-openstack_{{ gitlab_runner_autoscaler_plugin_version }}_sha512-checksums.txt"

gitlab_runner_butane_config_template: "butane-config.bu.j2"
2 changes: 1 addition & 1 deletion roles/gitlab_runner/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
---

- name: "Transpile the flatcar linux configuration"
ansible.builtin.command: "butane -o /etc/gitlab-runner/ignition.json /etc/gitlab-runner/flatcar-linux-config.bu"
ansible.builtin.command: "butane -o /etc/gitlab-runner/ignition.json /etc/gitlab-runner/butane-config.bu"
changed_when: true

- name: "Restart GitLab-Runner"
Expand Down
6 changes: 3 additions & 3 deletions roles/gitlab_runner/tasks/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

- name: "Place the container linux configuration on the host"
ansible.builtin.template:
src: "flatcar-linux-config.bu.j2"
dest: "/etc/gitlab-runner/flatcar-linux-config.bu"
src: "{{ gitlab_runner_butane_config_template }}"
dest: "/etc/gitlab-runner/butane-config.bu"
owner: "root"
group: "root"
mode: "0644"
Expand Down Expand Up @@ -75,7 +75,7 @@
check_mode: false

- name: "Dry-run of transpile the flatcar linux configuration"
ansible.builtin.command: "butane -o {{ (temp_directory.path, 'ignition.json') | path_join }} /etc/gitlab-runner/flatcar-linux-config.bu"
ansible.builtin.command: "butane -o {{ (temp_directory.path, 'ignition.json') | path_join }} /etc/gitlab-runner/butane-config.bu"
changed_when: false
check_mode: false

Expand Down