Skip to content

Commit

Permalink
Merge pull request #362 from tobiashuste/fleeting-plugin-download-url
Browse files Browse the repository at this point in the history
Fix autoscaler URL template and install 0.28.0 by default
  • Loading branch information
Normo authored Jan 16, 2025
2 parents 5d6e675 + 4a99c16 commit cdf12d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
#
# SPDX-License-Identifier: Apache-2.0

exclude_paths:
- ".cache/"
- ".ansible/"
skip_list:
- 'var-naming[no-role-prefix]'
7 changes: 4 additions & 3 deletions roles/gitlab_runner/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ gitlab_runner_session_server_listen_address: "0.0.0.0:8093"
gitlab_runner_session_server_advertise_address: "{{ gitlab_runner_session_server_listen_address }}"
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_autoscaler_plugin_version: "v0.28.0"
gitlab_runner_autoscaler_binary_version: "{{ gitlab_runner_autoscaler_plugin_version | replace('v', '') }}"
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"
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"

gitlab_runner_butane_config_template: "butane-config.bu.j2"
2 changes: 1 addition & 1 deletion roles/gitlab_runner/tasks/install.autoscaler-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
check_mode: false

- name: "Download and install fleeting plugin"
when: "not _fleeting_plugin_openstack_stat.stat.exists or _fleeting_plugin_version_installed.stdout != gitlab_runner_autoscaler_plugin_version"
when: "not _fleeting_plugin_openstack_stat.stat.exists or _fleeting_plugin_version_installed.stdout != gitlab_runner_autoscaler_binary_version"
block:
- name: "Create temporary directory"
ansible.builtin.tempfile:
Expand Down

0 comments on commit cdf12d1

Please sign in to comment.