Skip to content

Commit

Permalink
Support fleeting-pluign-openstack boot_time parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de>
  • Loading branch information
Normo committed Oct 8, 2024
1 parent 32153b2 commit fa50084
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions molecule/gitlab_runner/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ provisioner:
autoscaler_cloud_name: "openstack"
autoscaler_clouds_config: "/etc/gitlab-runner/clouds.yaml"
autoscaler_use_ignition: true
autoscaler_boot_time: "5m"
autoscaler_flavor_ref: "a7779e0c-899a-4c73-b75d-757e7722dc9b"
autoscaler_image_ref: "67c1e69a-921d-4a5c-85cf-cf2a7d94a14d"
autoscaler_network_id: "183bd5c6-e720-4601-b471-f4135a32263d"
Expand Down
1 change: 1 addition & 0 deletions roles/gitlab_runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ gitlab_runner_list:
autoscaler_cloud_name: "openstack"
autoscaler_clouds_config: "/etc/gitlab-runner/clouds.yaml"
autoscaler_use_ignition: false
autoscaler_boot_time: "5m"
autoscaler_flavor_ref: "5be35abe-a4d5-427f-a0f8-c7afe19961e2"
autoscaler_image_ref: "8225b31c-86fc-4e48-a3e4-8bf800d5fc8d"
autoscaler_network_id: "ea80dd07-5dc2-4f18-af04-733ace5892ef"
Expand Down
2 changes: 1 addition & 1 deletion roles/gitlab_runner/templates/config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ sentry_dsn = "{{ gitlab_runner_sentry_dsn }}"
cloud = "{{ runner.autoscaler_cloud_name }}"
clouds_config = "{{ runner.autoscaler_clouds_config }}"
name = "{{ runner.autoscaler_group_name | default('autoscaler-runners') }}"
boot_time = "3m"
boot_time = "{{ runner.autoscaler_boot_time | default('3m') }}"
use_ignition = {{ runner.autoscaler_use_ignition | default(false) | bool | to_json }}

[runners.autoscaler.plugin_config.server_spec]
Expand Down

0 comments on commit fa50084

Please sign in to comment.