Skip to content

Commit 6cb0605

Browse files
committed
Test runner installation
Signed-off-by: Norman Ziegner <[email protected]>
1 parent 2221a20 commit 6cb0605

File tree

1 file changed

+41
-21
lines changed

1 file changed

+41
-21
lines changed

molecule/gitlab_runner/molecule.yml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,57 @@ provisioner:
3737
gitlab_runner_concurrent: 4
3838
host_vars:
3939
instancegitlabciopenstack1:
40-
gitlab_runner_version: "17.8.1"
41-
gitlab_runner_deb_file: "https://packages.gitlab.com/runner/gitlab-runner/packages/{{ ansible_distribution | lower }}/{{ ansible_distribution_release | lower }}/gitlab-runner_{{ gitlab_runner_pkg_version }}_amd64.deb/download.deb"
42-
gitlab_runner_helper_images_deb_file: "https://packages.gitlab.com/runner/gitlab-runner/packages/{{ ansible_distribution | lower }}/{{ ansible_distribution_release | lower }}/gitlab-runner-helper-images_{{ gitlab_runner_pkg_version }}_all.deb/download.deb"
43-
gitlab_runner_install_docker: true
44-
gitlab_runner_ssh_public_key: "test_key.pub"
45-
gitlab_runner_ssh_private_key: "test_key"
46-
gitlab_runner_sentry_dsn: "https://[email protected]/1"
47-
gitlab_runner_registry_mirrors:
48-
- "http://registry-mirror1.example"
49-
- "https://registry-mirror2.example"
50-
gitlab_runner_insecure_registries:
51-
- "registry-mirror1.example"
52-
gitlab_runner_enable_session_server: true
40+
gitlab_runner_version: "17.6.1"
41+
gitlab_runner_install_docker: false
42+
gitlab_runner_ssh_public_key: ""
43+
gitlab_runner_ssh_private_key: ""
44+
gitlab_runner_registry_mirror: "https://registry-mirror.example"
45+
gitlab_runner_listen_address: "127.0.0.1:9252"
46+
gitlab_runner_set_default_network_opts: true
47+
gitlab_runner_autoscaler_openstack_auth_url: "https://openstack.helmholtz.de:5000"
48+
gitlab_runner_autoscaler_openstack_username: "openstackuser"
49+
gitlab_runner_autoscaler_openstack_password: "123456"
50+
gitlab_runner_autoscaler_openstack_project_id: "e5cc8263-be6c-45a7-a6ce-e852dac95395"
51+
gitlab_runner_autoscaler_openstack_project_name: "openstack-project"
52+
gitlab_runner_autoscaler_openstack_user_domain_name: "Default"
53+
gitlab_runner_autoscaler_openstack_region_name: "Default"
5354
gitlab_runner_list:
5455
- name: "test01"
5556
url: "https://gitlab.com"
5657
description: "Molecule test runner"
5758
authentication_token: "${AUTHENTICATION_TOKEN}"
58-
executor: "docker"
59+
executor: "docker-autoscaler"
5960
environment: ["CI_CPUS=8", "DOCKER_TLS_CERTDIR=/certs"]
60-
docker_security_opts: ["seccomp=unconfined"]
61-
docker_volumes: ["/cache", "/certs/client"]
62-
docker_devices: ["/dev/kfd", "/dev/dri"]
63-
docker_cpus: 2
64-
docker_gpus: "all"
65-
docker_memory: "2g"
61+
docker_volumes: ["/cache", "/certs/client", "/opt/docker/daemon.json:/etc/docker/daemon.json:ro"]
6662
docker_image: "python:3.8"
67-
docker_network_mtu: 1442
63+
docker_shm_size: 2147483648
64+
docker_disable_cache: true
6865
tags: ["docker", "hifis"]
6966
locked: true
7067
limit: 10
68+
autoscaler_max_builds: 1
69+
autoscaler_idle_count: 5
70+
autoscaler_max_instances: 10
71+
machine_idle_count: 5
72+
autoscaler_group_name: "hifis"
73+
autoscaler_cloud_name: "openstack"
74+
autoscaler_clouds_config: "/etc/gitlab-runner/clouds.yaml"
75+
autoscaler_use_ignition: true
76+
autoscaler_boot_time: "5m"
77+
autoscaler_flavor_ref: "a7779e0c-899a-4c73-b75d-757e7722dc9b"
78+
autoscaler_image_ref: "67c1e69a-921d-4a5c-85cf-cf2a7d94a14d"
79+
autoscaler_network_id: "183bd5c6-e720-4601-b471-f4135a32263d"
80+
autoscaler_security_group: "8f291fca-006c-4576-a18e-f343d06af2c4"
81+
autoscaler_scheduler_hint: "8357bc97-580a-429f-a71d-895a3ab4b645"
82+
autoscaler_username: "core"
83+
autoscaler_keyname: "runner-internal"
84+
cache_type: "s3"
85+
cache_server_address: "https://cache.example"
86+
cache_access_key: "key"
87+
cache_secret_key: "secret"
88+
cache_bucket_name: "bucket"
89+
cache_bucket_location: "eu-west-1"
90+
cache_insecure: "false"
7191
instancegitlabciopenstack2:
7292
gitlab_runner_version: "17.8.1"
7393
gitlab_runner_install_docker: false

0 commit comments

Comments
 (0)