32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
---
|
|
# GitLab hostname
|
|
gitlab_agent_hostname: "gitlab.gigacoms.info"
|
|
|
|
# Agent name — must match the name registered in GitLab UI
|
|
# and the directory name in .gitlab/agents/<name>/config.yaml in the fleet repo
|
|
gitlab_agent_name: "production"
|
|
|
|
# Kubernetes namespace for agentk
|
|
gitlab_agent_namespace: "gitlab-agent"
|
|
|
|
# Agent token — passed via GITLAB_AGENT_TOKEN CI variable
|
|
gitlab_agent_token: "{{ lookup('env', 'GITLAB_AGENT_TOKEN') | default('') }}"
|
|
|
|
# KAS WebSocket address (auto-derived from hostname)
|
|
gitlab_agent_kas_address: "wss://{{ gitlab_agent_hostname }}/-/kubernetes-agent/"
|
|
|
|
# Path to kubeconfig on manager node
|
|
gitlab_agent_kubeconfig: "/home/{{ ansible_user }}/.kube/config"
|
|
|
|
# Fleet repo settings (for creating agent config.yaml)
|
|
gitlab_agent_fleet_repo: "https://{{ gitlab_agent_hostname }}/k8s/k8s-fleet.git"
|
|
gitlab_agent_fleet_token: "{{ lookup('env', 'GITLAB_FLUX_TOKEN') | default('') }}"
|
|
gitlab_agent_fleet_branch: "main"
|
|
|
|
# GitLab group to grant ci_access (all projects in this group can use the agent)
|
|
gitlab_agent_ci_access_group: "k8s"
|
|
|
|
# Additional individual projects to grant ci_access (outside the main group)
|
|
# Format: list of GitLab project paths, e.g. ["it-dept/billing-mobile"]
|
|
gitlab_agent_ci_access_projects: []
|