Add Windows Gitea runner role with Podman and Docker support
- Created templates for configuration files for both Podman and Docker-based Windows Gitea runners. - Added default variables for Windows Gitea runner role, including instance URL, registration token, and image settings. - Implemented tasks for validating settings, ensuring Docker service is running, and managing Docker users. - Developed logic for building and managing Windows runner images and containers, including checks for existing images and containers. - Updated inventory to include new groups for Windows Gitea runners. - Adjusted Terraform configurations for timeout settings in ingress resources.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
---
|
||||
windows_gitea_runner_podman_instance_url: ""
|
||||
windows_gitea_runner_podman_registration_token: ""
|
||||
|
||||
windows_gitea_runner_podman_runners: []
|
||||
|
||||
windows_gitea_runner_podman_base_image: "local/gitea-runner-base:latest"
|
||||
windows_gitea_runner_podman_base_dockerfile_src: "Dockerfile.gitea-runner-base"
|
||||
windows_gitea_runner_podman_base_image_hash_label: "io.a13labs.gitea_runner.base_dockerfile_hash"
|
||||
windows_gitea_runner_podman_image_prefix: "local/gitea-runner"
|
||||
windows_gitea_runner_podman_image_hash_label: "io.a13labs.gitea_runner.dockerfile_hash"
|
||||
windows_gitea_runner_podman_dockerfile_source_root: "{{ playbook_dir }}/files/dockerfiles"
|
||||
windows_gitea_runner_podman_build_root: "C:\\ProgramData\\GiteaRunner\\builds"
|
||||
windows_gitea_runner_podman_base_build_dir: "{{ windows_gitea_runner_podman_build_root }}\\base"
|
||||
|
||||
windows_gitea_runner_podman_config_root: "C:\\ProgramData\\GiteaRunner\\config"
|
||||
windows_gitea_runner_podman_data_root: "C:\\ProgramData\\GiteaRunner\\data"
|
||||
windows_gitea_runner_podman_log_root: "C:\\Logs\\GiteaRunner"
|
||||
windows_gitea_runner_podman_config_runner_file: "/data/.runner"
|
||||
windows_gitea_runner_podman_config_cache_dir: "/data/cache"
|
||||
windows_gitea_runner_podman_container_run_args: []
|
||||
windows_gitea_runner_podman_container_enable_nested_build: false
|
||||
windows_gitea_runner_podman_container_storage_root: "{{ windows_gitea_runner_podman_data_root }}\\containers"
|
||||
windows_gitea_runner_podman_container_log_tail: 120
|
||||
windows_gitea_runner_podman_container_hash_label: "io.a13labs.gitea_runner.config_hash"
|
||||
|
||||
windows_gitea_runner_podman_machine_name: >-
|
||||
{{ windows_containers_machine_name | default('podman-machine-default') }}
|
||||
windows_gitea_runner_podman_install_dir: >-
|
||||
{{ windows_containers_install_dir | default('C:\\Program Files\\RedHat\\Podman') }}
|
||||
windows_gitea_runner_podman_service_user: "{{ windows_containers_service_user | default('podman') }}"
|
||||
windows_gitea_runner_podman_service_name: "PodmanAutoStart"
|
||||
|
||||
windows_gitea_runner_podman_restart_policy: "always"
|
||||
Reference in New Issue
Block a user