refactor(agent_vault): move Gitea service registration to core-secrets playbook
This commit is contained in:
1 parent
195830da21
commit
c064d518d1
2 files changed
+19
-17
No files matched your search
@@ -8,20 +8,3 @@
|
|||||||
tags: [gitea]
|
tags: [gitea]
|
||||||
- role: core-git/cadvisor
|
- role: core-git/cadvisor
|
||||||
tags: [cadvisor]
|
tags: [cadvisor]
|
||||||
post_tasks:
|
|
||||||
- name: Зарегистрировать Gitea в Agent Vault
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: agent_vault_service
|
|
||||||
vars:
|
|
||||||
agent_vault_service_name: gitea
|
|
||||||
agent_vault_service_description: >-
|
|
||||||
Gitea (gitea.gunihome.ru): чтение репозиториев, коммитов и логов
|
|
||||||
CI/Actions. Read-only доступ (GET) через Bearer токен.
|
|
||||||
agent_vault_service_host: "gitea.gunihome.ru:443"
|
|
||||||
agent_vault_service_paths: ["/api"]
|
|
||||||
agent_vault_service_methods: [GET]
|
|
||||||
agent_vault_service_credential_type: bearer
|
|
||||||
agent_vault_service_header_prefix: token
|
|
||||||
agent_vault_secret_path: /ci-cd
|
|
||||||
agent_vault_secret_key: TF_STATE_TOKEN
|
|
||||||
tags: [agent_vault, gitea]
|
|
||||||
@@ -9,3 +9,22 @@
|
|||||||
tags: [vaultwarden]
|
tags: [vaultwarden]
|
||||||
- role: core-secrets/cadvisor
|
- role: core-secrets/cadvisor
|
||||||
tags: [cadvisor]
|
tags: [cadvisor]
|
||||||
|
post_tasks:
|
||||||
|
- name: Зарегистрировать Gitea в Agent Vault
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: agent_vault_service
|
||||||
|
apply:
|
||||||
|
tags: [agent_vault, gitea]
|
||||||
|
vars:
|
||||||
|
agent_vault_service_name: gitea
|
||||||
|
agent_vault_service_description: >-
|
||||||
|
Gitea (gitea.gunihome.ru): чтение репозиториев, коммитов и логов
|
||||||
|
CI/Actions. Read-only доступ (GET) через токен.
|
||||||
|
agent_vault_service_host: "gitea.gunihome.ru:443"
|
||||||
|
agent_vault_service_paths: ["/api"]
|
||||||
|
agent_vault_service_methods: [GET]
|
||||||
|
agent_vault_service_credential_type: bearer
|
||||||
|
agent_vault_service_header_prefix: token
|
||||||
|
agent_vault_secret_path: /ci-cd
|
||||||
|
agent_vault_secret_key: TF_STATE_TOKEN
|
||||||
|
tags: [agent_vault, gitea]
|
||||||
Reference in new issue
Block a user