feat(agent_vault,opnsense): support basic auth and register OPNsense API
This commit is contained in:
1 parent
15beca7bf0
commit
8061dd7604
3 files changed
+63
-23
No files matched your search
@@ -7,3 +7,21 @@
|
||||
tags: [netbird]
|
||||
- role: opnsense/xray
|
||||
tags: [xray]
|
||||
post_tasks:
|
||||
- name: Зарегистрировать OPNsense в Agent Vault
|
||||
ansible.builtin.include_role:
|
||||
name: agent_vault_service
|
||||
vars:
|
||||
agent_vault_service_name: opnsense
|
||||
agent_vault_service_description: >-
|
||||
Маршрутизатор OPNsense (192.168.1.1:4433): статус системы, интерфейсы,
|
||||
правила фаервола, маршруты, NetBird и Xray. Read-only доступ (GET) через
|
||||
Basic Auth (OPNSENSE_API_KEY / OPNSENSE_API_SECRET).
|
||||
agent_vault_service_host: "{{ opnsense_host }}"
|
||||
agent_vault_service_paths: ["/api"]
|
||||
agent_vault_service_methods: [GET]
|
||||
agent_vault_service_credential_type: basic
|
||||
agent_vault_secret_path: /services/opnsense
|
||||
agent_vault_secret_username_key: OPNSENSE_API_KEY
|
||||
agent_vault_secret_password_key: OPNSENSE_API_SECRET
|
||||
tags: [agent_vault, netbird, xray]
|
||||
Reference in new issue
Block a user