fix(ci): pass scoped TF_STATE_TOKEN to terraform http backend (GITEA_* secret names are reserved)

This commit is contained in:
karpenok committed 2026-11-09 20:31:17 +07:00
1 parent afd7661ee8
commit f4d6e537cc
8 files changed
+18 -4

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
TF_VAR_proxmox_endpoint: ${{ inputs.target == 'netcore' && (secrets.NETCORE_ENDPOINT || 'https://192.168.1.100:8006/') || (secrets.PVE_ENDPOINT || 'https://192.168.1.2:8006/') }} TF_VAR_proxmox_endpoint: ${{ inputs.target == 'netcore' && (secrets.NETCORE_ENDPOINT || 'https://192.168.1.100:8006/') || (secrets.PVE_ENDPOINT || 'https://192.168.1.2:8006/') }}
TF_VAR_proxmox_api_token: ${{ inputs.target == 'netcore' && secrets.NETCORE_API_TOKEN || secrets.PVE_API_TOKEN }} TF_VAR_proxmox_api_token: ${{ inputs.target == 'netcore' && secrets.NETCORE_API_TOKEN || secrets.PVE_API_TOKEN }}
RUNNER_SSH_KEY: ${{ secrets.RUNNER_SSH_KEY }} RUNNER_SSH_KEY: ${{ secrets.RUNNER_SSH_KEY }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN || github.token }} GITEA_TOKEN: ${{ secrets.TF_STATE_TOKEN }}
run: | run: |
set -eu set -eu
@@ -1 +1 @@
netbird_domain: central.myguni.ru netbird_domain: central.gunihome.ru
+7 -1
View File
@@ -1,7 +1,13 @@
all: all:
children: children:
home: home:
hosts: {} hosts:
core-net:
ansible_host: 192.168.1.104
ansible_user: root
core_net:
hosts:
core-net:
vps: vps:
# ВАЖНО # ВАЖНО
# Поле ansible_password у внешних VPS — это одноразовый стартовый пароль от хостера # Поле ansible_password у внешних VPS — это одноразовый стартовый пароль от хостера
+5 -1
View File
@@ -75,13 +75,17 @@
ansible.builtin.command: ufw allow OpenSSH ansible.builtin.command: ufw allow OpenSSH
register: ufw_ssh register: ufw_ssh
changed_when: "'added' in (ufw_ssh.stdout | lower)" changed_when: "'added' in (ufw_ssh.stdout | lower)"
when: ansible_virtualization_type | default('') != 'lxc'
- name: Проверить состояние firewall - name: Проверить состояние firewall
ansible.builtin.command: ufw status ansible.builtin.command: ufw status
register: ufw_status register: ufw_status
changed_when: false changed_when: false
when: ansible_virtualization_type | default('') != 'lxc'
- name: Включить firewall - name: Включить firewall
ansible.builtin.command: ufw --force enable ansible.builtin.command: ufw --force enable
when: "'Status: active' not in ufw_status.stdout" when:
- ansible_virtualization_type | default('') != 'lxc'
- "'Status: active' not in ufw_status.stdout"
changed_when: true changed_when: true
+1
View File
@@ -20,3 +20,4 @@ provider "proxmox" {
agent = true agent = true
} }
} }
+1
View File
@@ -1 +1,2 @@
# Выходные параметры для узла pve # Выходные параметры для узла pve
+1
View File
@@ -2,3 +2,4 @@ proxmox_endpoint = "https://192.168.1.2:8006/"
proxmox_api_token = "root@pam!automation-stack=00000000-0000-0000-0000-000000000000" proxmox_api_token = "root@pam!automation-stack=00000000-0000-0000-0000-000000000000"
proxmox_insecure = true proxmox_insecure = true
proxmox_node = "pve" proxmox_node = "pve"
+1
View File
@@ -30,3 +30,4 @@ variable "ssh_public_keys" {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEpwqB40k8QQq3k8160gfMKDaCJCX9qzvmuijfe3mO4I gitea-runner" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEpwqB40k8QQq3k8160gfMKDaCJCX9qzvmuijfe3mO4I gitea-runner"
] ]
} }