Skip to content

Commit 18dfb1c

Browse files
committed
Fix autoscaler URL template and install 0.28.0 by default
1 parent 0abdef8 commit 18dfb1c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

roles/gitlab_runner/defaults/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ gitlab_runner_session_server_listen_address: "0.0.0.0:8093"
4646
gitlab_runner_session_server_advertise_address: "{{ gitlab_runner_session_server_listen_address }}"
4747
gitlab_runner_session_server_timeout: 1800
4848

49-
gitlab_runner_autoscaler_plugin_version: "0.21.1"
50-
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"
51-
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"
49+
gitlab_runner_autoscaler_plugin_version: "v0.28.0"
50+
gitlab_runner_autoscaler_binary_version: "{{ gitlab_runner_autoscaler_plugin_version | replace('v', '') }}"
51+
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_binary_version }}_linux_amd64.tar.gz"
52+
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_binary_version }}_sha512-checksums.txt"
5253

5354
gitlab_runner_butane_config_template: "butane-config.bu.j2"

roles/gitlab_runner/tasks/install.autoscaler-plugin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
check_mode: false
2222

2323
- name: "Download and install fleeting plugin"
24-
when: "not _fleeting_plugin_openstack_stat.stat.exists or _fleeting_plugin_version_installed.stdout != gitlab_runner_autoscaler_plugin_version"
24+
when: "not _fleeting_plugin_openstack_stat.stat.exists or _fleeting_plugin_version_installed.stdout != gitlab_runner_autoscaler_binary_version"
2525
block:
2626
- name: "Create temporary directory"
2727
ansible.builtin.tempfile:

0 commit comments

Comments
 (0)