8 Commits

Author SHA1 Message Date
770edd57ae feat: local development 2025-10-01 22:27:43 -04:00
31a8eafd65 feat: new style in prod 2025-09-11 20:05:40 -04:00
f193ff4e6b feat: gitea works! 2025-09-09 00:36:31 -04:00
65893c30f3 feat: install docker; auto change port 2025-09-08 23:17:43 -04:00
fd30ee265f feat: attached firewall to server instance 2025-09-08 20:32:37 -04:00
4c13b3d2cb feat: hetz cloud server provisioned 2025-09-06 20:08:05 -04:00
ed972509ce feat: ansible vault 2025-09-04 22:08:00 -04:00
d094a1b26b feat: light mode 2025-09-04 19:58:50 -04:00
17 changed files with 140 additions and 437 deletions

View File

@@ -9,9 +9,7 @@ tasks:
vault: ansible-vault edit vault.yml {{.CLI_ARGS}} vault: ansible-vault edit vault.yml {{.CLI_ARGS}}
provision: ansible-playbook playbooks/provision.yml {{.CLI_ARGS}} provision: ansible-playbook playbooks/provision.yml {{.CLI_ARGS}}
deploy: ansible-playbook playbooks/deploy.yml {{.CLI_ARGS}} deploy: ansible-playbook playbooks/deploy.yml {{.CLI_ARGS}}
destroy: ansible-playbook playbooks/destroy.yml {{.CLI_ARGS}}
restore: ansible-playbook playbooks/restore.yml {{.CLI_ARGS}} restore: ansible-playbook playbooks/restore.yml {{.CLI_ARGS}}
runner: ansible-playbook playbooks/runner.yml {{.CLI_ARGS}}
assets: assets:
- cp ./assets/icon.png ./gitea/custom/public/assets/img/logo.png - cp ./assets/icon.png ./gitea/custom/public/assets/img/logo.png
@@ -26,10 +24,3 @@ tasks:
vars: vars:
KEY: { sh: ansible-vault view vault.yml | yq -r ".secret.private_ssh_key_path" } KEY: { sh: ansible-vault view vault.yml | yq -r ".secret.private_ssh_key_path" }
IP: { sh: cat dist/terraform_outputs.yml | jq -r ".server_ip.value" } IP: { sh: cat dist/terraform_outputs.yml | jq -r ".server_ip.value" }
enter-runner:
cmd: ssh -i {{.KEY}} -o ProxyCommand="ssh -i {{.KEY}} -p 2222 -W %h:%p root@{{.IP}}" root@{{.RUNNER_IP}}
vars:
KEY: { sh: ansible-vault view vault.yml | yq -r ".secret.private_ssh_key_path" }
IP: { sh: cat dist/terraform_outputs.yml | jq -r ".server_ip.value" }
RUNNER_IP: { sh: cat dist/terraform_outputs.yml | jq -r ".runner_ip.value" }

View File

@@ -3,8 +3,6 @@ callbacks_enabled = profile_tasks
localhost_warning = False localhost_warning = False
vault_password_file = vault.key vault_password_file = vault.key
interpreter_python = /usr/bin/python3.11 interpreter_python = /usr/bin/python3.11
editor = code --wait
remote_tmp = /tmp/.ansible/tmp
[inventory] [inventory]
inventory_unparsed_warning = False inventory_unparsed_warning = False

View File

@@ -91,9 +91,6 @@ DEFAULT_MERGE_STYLE = merge
[repository.signing] [repository.signing]
DEFAULT_TRUST_MODEL = committer DEFAULT_TRUST_MODEL = committer
[actions]
ENABLED = true
[storage] [storage]
STORAGE_TYPE = minio STORAGE_TYPE = minio
MINIO_USE_SSL = true MINIO_USE_SSL = true

View File

@@ -96,9 +96,6 @@ DEFAULT_TRUST_MODEL = committer
[oauth2] [oauth2]
JWT_SECRET = x-----------------------------------------x JWT_SECRET = x-----------------------------------------x
[actions]
ENABLED = true
[storage] [storage]
STORAGE_TYPE = minio STORAGE_TYPE = minio
MINIO_ENDPOINT = localstack:4566 MINIO_ENDPOINT = localstack:4566

View File

@@ -55,10 +55,9 @@
tasks: tasks:
- name: Install PIP. - name: Install PIP.
ansible.builtin.apt: ansible.builtin.apt:
state: present
update_cache: true
name: name:
- python3-pip - python3-pip
state: present
- name: Install needed packages. - name: Install needed packages.
ansible.builtin.pip: ansible.builtin.pip:
@@ -108,41 +107,6 @@
- docker-buildx-plugin - docker-buildx-plugin
- docker-compose-plugin - docker-compose-plugin
- name: Enable NAT for private network.
hosts: server
gather_facts: false
tasks:
- name: Enable IP forwarding.
ansible.posix.sysctl:
name: net.ipv4.ip_forward
value: "1"
sysctl_set: true
reload: true
- name: Add NAT masquerade rule.
ansible.builtin.iptables:
table: nat
chain: POSTROUTING
source: "10.0.1.0/24"
jump: MASQUERADE
state: present
- name: Allow forwarding from private network.
ansible.builtin.iptables:
chain: DOCKER-USER
source: "10.0.1.0/24"
jump: ACCEPT
action: insert
state: present
- name: Allow established/related return traffic.
ansible.builtin.iptables:
chain: DOCKER-USER
ctstate: ESTABLISHED,RELATED
jump: ACCEPT
action: insert
state: present
- name: Deploy artifact to instance. - name: Deploy artifact to instance.
hosts: server hosts: server
tags: tags:
@@ -171,7 +135,7 @@
ansible.builtin.file: ansible.builtin.file:
path: /root/data path: /root/data
state: directory state: directory
mode: "0777" mode: '0777'
- name: Run image. - name: Run image.
community.docker.docker_container: community.docker.docker_container:

View File

@@ -1,15 +0,0 @@
- name: Destroy terraform infrastructure.
hosts: localhost
gather_facts: false
vars_files:
- ../vault.yml
tasks:
- name: Destroy Terraform.
community.general.terraform:
project_path: "../terraform"
state: "absent"
init_reconfigure: true
force_init: true
backend_config: "{{ terraform.backend }}"
variables: "{{ terraform.variables }}"
complex_vars: true

View File

@@ -6,18 +6,17 @@
tasks: tasks:
- name: Reconfigure and plan. - name: Reconfigure and plan.
community.general.terraform: community.general.terraform:
project_path: "../terraform" project_path: '../terraform'
state: "planned" state: "planned"
plan_file: plan.out plan_file: plan.out
init_reconfigure: true # init_reconfigure: true
force_init: true
backend_config: "{{ terraform.backend }}" backend_config: "{{ terraform.backend }}"
variables: "{{ terraform.variables }}" variables: "{{ terraform.variables }}"
complex_vars: true complex_vars: true
- name: Apply. - name: Apply.
community.general.terraform: community.general.terraform:
project_path: "../terraform" project_path: '../terraform'
state: "present" state: "present"
plan_file: plan.out plan_file: plan.out
backend_config: "{{ terraform.backend }}" backend_config: "{{ terraform.backend }}"
@@ -36,4 +35,4 @@
ansible.builtin.copy: ansible.builtin.copy:
content: "{{ terraform_apply.outputs }}" content: "{{ terraform_apply.outputs }}"
dest: ../dist/terraform_outputs.yml dest: ../dist/terraform_outputs.yml
mode: "0755" mode: '0755'

View File

@@ -36,14 +36,13 @@
region: "{{ secret.restore.region }}" region: "{{ secret.restore.region }}"
access_key: "{{ secret.restore.access_key }}" access_key: "{{ secret.restore.access_key }}"
secret_key: "{{ secret.restore.secret_key }}" secret_key: "{{ secret.restore.secret_key }}"
endpoint_url: "{{ secret.restore.endpoint | mandatory(msg='You must specify the S3 URL.') }}"
ignore_nonexistent_bucket: true ignore_nonexistent_bucket: true
- name: Ensure backup directory exists. - name: Ensure backup directory exists.
ansible.builtin.file: ansible.builtin.file:
path: /root/restore path: /root/restore
state: directory state: directory
mode: "0777" mode: '0777'
- name: Extract backup. - name: Extract backup.
ansible.builtin.unarchive: ansible.builtin.unarchive:
@@ -56,13 +55,13 @@
remote_src: true remote_src: true
src: /root/restore/backup/my-app-backup/ src: /root/restore/backup/my-app-backup/
dest: /root/data/ dest: /root/data/
mode: "0777" mode: '0777'
- name: Update permissions. - name: Update permissions.
ansible.builtin.file: ansible.builtin.file:
path: /root/data path: /root/data
recurse: true recurse: true
mode: "0777" mode: '0777'
owner: 1000 owner: 1000
group: 1000 group: 1000

View File

@@ -1,178 +0,0 @@
- name: Set up runner host via jumphost.
gather_facts: false
hosts: localhost
vars_files:
- ../vault.yml
- ../dist/terraform_outputs.yml
tasks:
- name: Add gitea server as jumphost.
ansible.builtin.add_host:
name: server
ansible_ssh_host: "{{ server_ip.value }}"
ansible_user: root
ansible_port: 2222
ansible_private_key_file: "{{ secret.private_ssh_key_path }}"
- name: Add runner host (via jumphost).
ansible.builtin.add_host:
name: runner
ansible_ssh_host: "{{ runner_ip.value }}"
ansible_user: root
ansible_private_key_file: "{{ secret.private_ssh_key_path }}"
ansible_ssh_common_args: >-
-o ProxyCommand="ssh -i {{ secret.private_ssh_key_path }} -p 2222 -W %h:%p root@{{ server_ip.value }}"
- name: Install Docker on runner.
gather_facts: true
hosts: runner
vars_files:
- ../vault.yml
- ../dist/terraform_outputs.yml
tasks:
- name: Set DNS resolver.
ansible.builtin.copy:
content: "nameserver 185.12.64.2\n"
dest: /etc/resolv.conf
mode: "0644"
- name: Install PIP.
ansible.builtin.apt:
state: present
update_cache: true
name:
- python3-pip
- name: Install needed packages.
ansible.builtin.pip:
name:
- packaging
state: present
break_system_packages: true
- name: Download Docker repository key.
ansible.builtin.apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: Download Docker repository.
ansible.builtin.apt_repository:
repo: "deb https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
state: present
- name: Remove bad packages.
ansible.builtin.apt:
state: absent
package:
- docker.io
- docker-doc
- docker-compose
- podman-docker
- containerd
- runc
- name: Download Docker dependencies.
ansible.builtin.apt:
state: present
package:
- ca-certificates
- curl
- jq
- name: Download Docker packages.
ansible.builtin.apt:
state: present
update_cache: true
package:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
- name: Configure swap on runner.
hosts: runner
gather_facts: false
tasks:
- name: Create swapfile.
ansible.builtin.command:
cmd: fallocate -l 2G /swapfile
creates: /swapfile
- name: Set swapfile permissions.
ansible.builtin.file:
path: /swapfile
mode: "0600"
- name: Check if swap is active.
ansible.builtin.command:
cmd: swapon --show=NAME --noheadings
register: swap_status
changed_when: false
- name: Format swapfile.
ansible.builtin.command:
cmd: mkswap /swapfile
when: "'/swapfile' not in swap_status.stdout"
changed_when: true
- name: Enable swapfile.
ansible.builtin.command:
cmd: swapon /swapfile
when: "'/swapfile' not in swap_status.stdout"
changed_when: true
- name: Add swapfile to fstab.
ansible.posix.mount:
path: none
src: /swapfile
fstype: swap
opts: sw
state: present
- name: Register and start Gitea runner.
hosts: runner
gather_facts: false
vars_files:
- ../vault.yml
- ../dist/terraform_outputs.yml
vars:
gitea_hostname: "{{ server_fqdn.value }}"
gitea_internal_url: "https://{{ gitea_hostname }}"
tasks:
- name: Create runner data volume.
community.docker.docker_volume:
name: runner-data
state: present
- name: Generate runner config.
ansible.builtin.copy:
dest: /root/runner-config.yaml
mode: "0644"
content: |
runner:
insecure: true
capacity: 1
cache:
enabled: false
container:
options: "--add-host {{ gitea_hostname }}:10.0.1.2 --memory=1536m"
valid_volumes:
- /var/run/docker.sock
- name: Start Gitea runner container.
community.docker.docker_container:
name: gitea-runner
image: gitea/act_runner:latest
state: started
recreate: true
restart_policy: unless-stopped
etc_hosts: "{{ {gitea_hostname: '10.0.1.2'} }}"
volumes:
- runner-data:/data
- /var/run/docker.sock:/var/run/docker.sock
- /root/runner-config.yaml:/config.yaml:ro
env:
GITEA_INSTANCE_URL: "{{ gitea_internal_url }}"
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ secret.runner_registration_token }}"
GITEA_RUNNER_NAME: "runner-01"
CONFIG_FILE: "/config.yaml"

View File

@@ -2,44 +2,45 @@
# Manual edits may be lost in future updates. # Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/aws" { provider "registry.terraform.io/hashicorp/aws" {
version = "6.27.0" version = "6.12.0"
hashes = [ hashes = [
"h1:emgTfB1LXSFYh9uAwgsRMoMIN5Wz7jNNKq3rqC0EHWk=", "h1:8u90EMle+I3Auh4f/LPP6fEfRsAF6xCFnUZF4b7ngEs=",
"zh:177a24b806c72e8484b5cabc93b2b38e3d770ae6f745a998b54d6619fd0e8129", "zh:054bcbf13c6ac9ddd2247876f82f9b56493e2f71d8c88baeec142386a395165d",
"zh:4ac4a85c14fb868a3306b542e6a56c10bd6c6d5a67bc0c9b8f6a9060cf5f3be7", "zh:195489f16ad5621db2cec80be997d33060462a3b8d442c890bef3eceba34fa4d",
"zh:552652185bc85c8ba1da1d65dea47c454728a5c6839c458b6dcd3ce71c19ccfc", "zh:3461ef14904ab7de246296e44d24c042f3190e6bead3d7ce1d9fda63dcb0f047",
"zh:60284b8172d09aee91eae0856f09855eaf040ce3a58d6933602ae17c53f8ed04", "zh:44517a0035996431e4127f45db5a84f53ce80730eae35629eda3101709df1e5c",
"zh:6be38d156756ca61fb8e7c752cc5d769cd709686700ac4b230f40a6e95b5dbc9", "zh:4b0374abaa6b9a9debed563380cc944873e4f30771dd1da7b9e812a49bf485e3",
"zh:7a409138fae4ef42e3a637e37cb9efedf96459e28a3c764fc4e855e8db9a7485", "zh:531468b99465bd98a89a4ce2f1a30168dfadf6edb57f7836df8a977a2c4f9804",
"zh:8070cf5224ed1ed3a3e9a59f7c30ff88bf071c7567165275d477c1738a56c064", "zh:6a95ed7b4852174aa748d3412bff3d45e4d7420d12659f981c3d9f4a1a59a35f",
"zh:894439ef340a9a79f69cd759e27ad11c7826adeca27be1b1ca82b3c9702fa300", "zh:88c2d21af1e64eed4a13dbb85590c66a519f3ecc54b72875d4bb6326f3ef84e7",
"zh:89d035eebf08a97c89374ff06040955ddc09f275ecca609d0c9d58d149bef5cf",
"zh:985b1145d724fc1f38369099e4a5087141885740fd6c0b1dbc492171e73c2e49",
"zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
"zh:a80b47ae8d1475201c86bd94a5dcb9dd4da5e8b73102a90820b68b66b76d50fd", "zh:a8b648470bb5df098e56b1ec5c6a39e0bbb7b496b23a19ea9f494bf48d4a122a",
"zh:d3395be1556210f82199b9166a6b2e677cee9c4b67e96e63f6c3a98325ad7ab0", "zh:b23fb13efdb527677db546bc92aeb2bdf64ff3f480188841f2bfdfa7d3d907c1",
"zh:db0b869d09657f6f1e4110b56093c5fcdf9dbdd97c020db1e577b239c0adcbce", "zh:be5858a1951ae5f5a9c388949c3e3c66a3375f684fb79b06b1d1db7a9703b18e",
"zh:ffc72e680370ae7c21f9bd3082c6317730df805c6797427839a6b6b7e9a26a01", "zh:c368e03a7c922493daf4c7348faafc45f455225815ef218b5491c46cea5f76b7",
"zh:e31e75d5d19b8ac08aa01be7e78207966e1faa3b82ed9fe3acfdc2d806be924c",
"zh:ea84182343b5fd9252a6fae41e844eed4fdc3311473a753b09f06e49ec0e7853",
] ]
} }
provider "registry.terraform.io/hetznercloud/hcloud" { provider "registry.terraform.io/hetznercloud/hcloud" {
version = "1.57.0" version = "1.52.0"
constraints = "~> 1.45" constraints = "~> 1.45"
hashes = [ hashes = [
"h1:xpAcuja19Ts7bCpmULKdBw4dEBJhF/eL6AjM4xDBEAI=", "h1:LTjrLuC+4F1Kv4TxS9e7LVVkG8/S4QQ7X4ORblvKTbc=",
"zh:016ecc39328f34f6c0ffa413598f354824f7878c89cd031f123edb4bc8a687a2", "zh:1e9bb6b6a2ea5f441638dbae2d60fbe04ff455f58a18c740b8b7913e2197d875",
"zh:10b362dc0847200c987214b129b5f85e2f7d8ad417261a1d2dd04ab74de15603", "zh:29c122e404ba331cfbadacc7f1294de5a31c9dfd60bdfe3e1b402271fc8e419c",
"zh:194647d9a61dca4f411f44580316b88a11095d7a99679d445f9b0f2c1ba976c4", "zh:2bd0ae2f0bb9f16b7753f59a08e57ac7230f9c471278d7882f81406b9426c8c7",
"zh:1d8aafe2ce7890696385bb3a0c3286e7ee3020416d337f59935406e4c6f91de6", "zh:4383206971873f6b5d81580a9a36e0158924f5816ebb6206b0cf2430e4e6a609",
"zh:594585616210fb232fad4ebda2387ecd3f483931e00eff988fca83add6ce7cfc", "zh:47e2ca1cfa18500e4952ab51dc357a0450d00a92da9ea03e452f1f3efe6bbf75",
"zh:65e50be33ffb85580546f119839e1293591cc6d4db729d809931d0408b6ae408", "zh:8e9fe90e3cea29bb7892b64da737642fc22b0106402df76c228a3cbe99663278",
"zh:7d4ed5bd8c477ec304142e2160203a76a0d09c93d224950bda253172b2571038", "zh:a2d69350a69c471ddb63bcc74e105e585319a0fc0f4d1b7f70569f6d2ece5824",
"zh:90a70a70a266b78c8216903e711904e6969b3957d182602b5d788602ec9ef323", "zh:a97abcc254e21c294e2d6b0fc9068acfd63614b097dda365f1c56ea8b0fd5f6b",
"zh:abb8e28e96fb8de270995873de980896b7cb53cfc550f02c50eaa42884624ba9", "zh:aba8d72d4fe2e89c922d5446d329e5c23d00b28227b4666e6486ba18ea2ec278",
"zh:bbf34dca2de6e105ca7204222162a0402d8e9e9a28e1de5ffbaa2c0d6270a059", "zh:ad36c333978c2d9e4bc43dcadcbff42fe771a8c5ef53d028bcacec8287bf78a7",
"zh:c1a9edb693d632dcb5c3c9ee84c97138e08eadb9354e28592efd581f68ac0385", "zh:cdb1e6903b9d2f0ad8845d4eb390fbe724ee2435fb045baeab38d4319e637682",
"zh:dadbf1368fae314fe8dcb99ebefbc78409f3fc0e3808cd92ea573b8eee1cae98", "zh:df77b08757f3f36b8aadb33d73362320174047044414325c56a87983f48b5186",
"zh:e713e00ca27348abd18da2eeff861905e84050e3e7e008f14a0c63c70ab2ff84", "zh:e07513d5ad387247092b5ae1c87e21a387fc51873b3f38eee616187e38b090a7",
"zh:e2be02bdc59343ff4b9e26c3b93db7680aaf3e6ed13c8c4c4b144c74c2689915",
] ]
} }

View File

@@ -60,23 +60,3 @@ resource "hcloud_firewall_attachment" "server_fw_attachment" {
firewall_id = hcloud_firewall.server_firewall.id firewall_id = hcloud_firewall.server_firewall.id
server_ids = [hcloud_server.server_instance.id] server_ids = [hcloud_server.server_instance.id]
} }
resource "hcloud_server" "runner_instance" {
name = "runner-server"
image = local.server_image
server_type = local.server_type
datacenter = local.datacenter
ssh_keys = [hcloud_ssh_key.ssh_key.id]
public_net {
ipv4_enabled = false
ipv6_enabled = false
}
network {
network_id = hcloud_network.private_network.id
ip = local.runner_ip
}
depends_on = [hcloud_network_subnet.private_subnet]
}

View File

@@ -1,24 +0,0 @@
resource "hcloud_network" "private_network" {
name = "repository-network"
ip_range = local.network_cidr
}
resource "hcloud_network_subnet" "private_subnet" {
network_id = hcloud_network.private_network.id
type = "cloud"
network_zone = local.network_zone
ip_range = local.subnet_cidr
}
resource "hcloud_server_network" "server_network" {
server_id = hcloud_server.server_instance.id
network_id = hcloud_network.private_network.id
ip = local.server_ip
}
resource "hcloud_network_route" "nat_route" {
network_id = hcloud_network.private_network.id
destination = "0.0.0.0/0"
gateway = local.server_ip
}

View File

@@ -1,17 +1,11 @@
output "server_ip" { output "server_ip" {
description = "The public address of the server." description = "The public address of the server."
value = hcloud_server.server_instance.ipv4_address value = hcloud_server.server_instance.ipv4_address
sensitive = false sensitive = false
} }
output "server_fqdn" { output "server_fqdn" {
description = "The public domain of the server." description = "The public domain of the server."
value = "${local.subdomain}.${local.domain}" value = "${local.subdomain}.${local.domain}"
sensitive = false sensitive = false
}
output "runner_ip" {
description = "The private network address of the runner."
value = local.runner_ip
sensitive = false
} }

View File

@@ -1,14 +1,14 @@
terraform { terraform {
backend "s3" { backend "s3" {
skip_credentials_validation = true skip_credentials_validation = true
skip_region_validation = true skip_region_validation = true
skip_requesting_account_id = true skip_requesting_account_id = true
} }
required_providers { required_providers {
hcloud = { hcloud = {
source = "hetznercloud/hcloud" source = "hetznercloud/hcloud"
version = "~> 1.57" version = "~> 1.45"
} }
} }
} }

13
terraform/routing.tf Normal file
View File

@@ -0,0 +1,13 @@
# The Route53 DNS zone.
data "aws_route53_zone" "main" {
name = local.domain
}
# Push all domain traffic through the reverse proxy.
resource "aws_route53_record" "domain" {
zone_id = data.aws_route53_zone.main.zone_id
name = "${local.subdomain}.${data.aws_route53_zone.main.name}"
type = "A"
ttl = "60"
records = [hcloud_primary_ip.public_ip.ip_address]
}

View File

@@ -1,45 +1,39 @@
locals { locals {
datacenter = "hel1-dc2" datacenter = "fsn1-dc14"
server_type = "cx23" server_type = "cx22"
server_image = "debian-12" server_image = "debian-12"
domain = "maximhutz.com" domain = "maximhutz.com"
subdomain = "git" subdomain = "git"
network_zone = "eu-central"
network_cidr = "10.0.0.0/16"
subnet_cidr = "10.0.1.0/24"
server_ip = "10.0.1.2"
runner_ip = "10.0.1.3"
} }
# ---------------------------------------------------------------------------- # # ---------------------------------------------------------------------------- #
variable "hcloud_token" { variable "hcloud_token" {
sensitive = true sensitive = true
description = "The hCloud token used to access Hetzner resources." description = "The hCloud token used to access Hetzner resources."
type = string type = string
} }
variable "public_ssh_key_path" { variable "public_ssh_key_path" {
description = "The location of the public key used to access the repository server." description = "The location of the public key used to access the repository server."
type = string type = string
} }
variable "aws_region" { variable "aws_region" {
description = "The region of the AWS account." description = "The region of the AWS account."
type = string type = string
sensitive = true sensitive = true
} }
variable "aws_access_key" { variable "aws_access_key" {
description = "The access key of the account." description = "The access key of the account."
type = string type = string
sensitive = true sensitive = true
} }
variable "aws_secret_key" { variable "aws_secret_key" {
description = "The secret key of the account." description = "The secret key of the account."
type = string type = string
sensitive = true sensitive = true
} }

137
vault.yml
View File

@@ -1,73 +1,66 @@
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
61653436663266303862366531643735316166303031643931616464323034653564316364616664 62366236383830323331383264663835316237363032333766333730653939666236666261653162
3161386538393961346666383461636364393464333565340a616436303039623931303365333931 3938653635393063313566343261303338666363386661650a376637613563303238373965356134
36303933303862316236376537346533313330316239336366363430386161363162323435383330 30373861653832383462666231356163623231303637636539383166383039333562636434646334
3561373930663862390a666133383630326464356561383566653035363938643461613964353261 3433393163363562340a333962343636366234336239633032313166303163353165643762326464
66653633616233646361656233363263633438336662386461623439323466353030336364313663 34353062323863666666666132663364633336623430373033623761613035666332323739313833
36383037313238303365363162653731323663653932646465303837643532363238653239646536 38623639643539363639383339356231313431373437343430323237336539313939303139353534
35623334346434646463396565313866333862316430613336323734323232623632323865646236 63616331353464613963323864626663396637313139646461356165643233306530303062666332
34613666363465663138343733663634636436326130303730333666623232356261353861343064 36363636316335356434633439636434336666306466616231353135306538386334313937363765
38653063346138313435393461393361643462656264656531643338323631323865363731303564 34333833626634383734396638646530393233623937396335313637333764313736383032333734
34623132663634336362373730313664613238323130626261383762353933373166643063396563 64373966643030623331663139363034343536373830353338356335356338633638393862386230
36636230323565396361386164653037623532373166623665363234383261376464396163643862 39336533656465366534306465396536613334333632643937316130303338626331386537343331
37356338313638396261653637663930656236366666346365343335303239333265333665356335 64363966323561326262376631356261613231343335393233366231373631663635376234346164
38363062353462636636303735643961626462396439663864636230333134303233616436373765 38303432386336643566363731386664376239666530336232666532616264353537353738636464
62633361643737633535303435343566613630316562303132393062623532353366366531653164 64616364353730653831616335656532663336666339653337646133316661373038326164373235
61386634653463653164336532303732636335343266346264363361623166376533643962623563 30653836336338333932303539393632326164623538303066353934623831376533333964346561
38643830316333356133653334366332653235383965383766373665356139313438663631373063 61323137373837376161653730386637663336623130366639356130626338663764366661616163
64313764353536633466393764323062363531373038306437396665383134373635623363663239 38356235386461366362396337646239633663303261616536386134663866333132613166373162
38623461303165306132323430316436653664643166653764386663393662306339616666353338 33616663316566623665666464356135393932366663663932366235643336343434633731646665
37366631383937623064653534613930306331303565623366353263613537306636353732313964 63323963366662346436393933643032653330313430633339613262306430306332326364343135
31376430386234353735353866376332356561353761333461616463663831313364666437646139 37393764363338656639393333623835626135323434376338656663386662643339643135653938
62643233373066343363316362613236393333646634666366316530623537313633653236393336 37396133373436353566646437633630373931643533383133343266626431393761646633666161
37323831313834626263303933343132343535336661363563336235313038653330323061616365 66313365373537386332396562613531346634376266653631343934356134643463633566373162
64323431306234306266346564346462663335313830366435356433303837363130643034336131 30633933636136663339316136333036386237346163646638393533336362363735623130623862
63643036343631343862376262333362396137396366663031653263313462656662363066313461 38623666383461363564326462326239303838623533393034383831366631396530343037636532
63666666373835633936313332613030303863386563376638316565613230633762666337646538 38366162396663653930633866303538353232656330643966386134316364313538646564313565
30313837356636636333663032666166636364376537336132393765306339376639643238303537 61313732343330336436393963643164303139373036303437393336313738336138306438393364
35376336393931643634633134303463653036393435383234353863613266663166336235393431 65623331663464626462316538663134346231643163356638383631623862313066343965376235
61333134393035613835356462303232366164653865393861333965646535376132633061383531 65613736643163663238316532623638343062633564333865623264356362663433333734383365
37616139633431383463373836636337623434366161366262326534346163366638353164646132 61373432656362343762333561376639396632386530353762303664373733656366343733613262
62616338646530376264633038373765373138346334626237386662616466636533376165613133 62313562323938356563323939316131646239313432626261353431626661613235363566393038
39613134346130623137396536353564616165376632623736353435643133313565306234333631 63656634383230316463363036306433366334643235656561613031653331333038323133653562
30393861343338393031323765306332363634343830333965333131326536363361303839633238 61393034663030663432376331383236626639613663343662323639316331653432383036393130
31643430613838353838363065333264313330313934316130313835326562646465656264313738 35376438333235336461313435316232373963613934323233613431643530646661666135613064
30333035633733626561316162633137623139343064316264383066656566613164306166613266 34313431613164333761643965373939353864333234353136386637326536336266363733343332
31393966373865366263303031343638326565336665376131366231353364386163346662343037 63393539353234343835633639333163386633326163623966343634346265623430326233353734
39306439633264386534643732346637323039313566653864323764663332363437316135383537 61373339393264383038383564346462396362333132346632396534346134613038316231613966
35396439306533306334303466616136643762656463393435376534383835636530663565663663 30636637626531343636376161326434336430386537646333353139353131363461613639646162
31353836626536613466363363643638323433626531623636353735393530373638313465356162 31346538326138366663623439393764653237386564653666396338623435386639623239373438
33373466333363393634363935613034373436653133313835396133363766663135366633633661 31616237343731623634643965386535663939356363653934343362633735353532353662396331
35353032656239663930363230373135663562356532633838613639666539376632383239316533 39373639346336653739613162626537636663376163343831623762643765346535636565376463
62366230313762303335616462343566396466653565306130346538653530363261616262353539 32366361373730376462356332363766376136613562613331386134633264613862383061343462
31356336316436396461626631623536356433343838633034646630343930373565666139613338 38316637336437336637393030613933393633666332353533646362663661313930376337396234
31343163373466666532346436313535353736613965653539613930343463336231323932393163 64636162343130326630366261356263363130663439393539363236343461343436316330663265
37623533613836616437653638633638313362623638636437383762396438623631326462313834 32616665366664303038333966373835646130343237646464353362346132653331303634643165
36326133376331383464356364633031346639343165333461663538376336306539336438323361 31393530373464653066643435343137313937326633653136623462363330343932383939626538
39336536373163306632373531643563656534623838373639313164313239663966653236663434 61663137623931353166616639636635616232306161643432623563643633333739646336356236
37313439383032663033313135333765353833613665356139343631653861643264646562316630 30663463303362396331396630623063646365373839333837333832643231396130636461636537
63333234393363323833613438323133663531633733303864366636393961333662316439616263 35653937363434393331303065326137373931633231323861666632393762353162313635393830
39623039613339653930653732383363343530343539623437663836323538646136653465633764 32666366376638383632666130353438316231313763323833663836663262646135633763376334
34336237386237646533626236653262626539323866393830636532353462373730363232663366 64636531653937303136373063336430303536316636343835396532383164623539653966343865
63623631616236323037383635376261623439386532303631653861613433653064633137666365 64316236656164653936613139643061323264333861623833383061386362333934373535633565
36636566623563363764343232373731383564366233303536373266326637396133376462656166 37623065636437626165646261343265613234373963386134616632396433376162306432633038
36396264343464306233616561656535356463353334396435386464653935373862653035393237 37356135663862363930303834303166333236643864383166333365313131333438373633653631
38666362353462643930363361326634396166316334326362363165356264383063313137353834 35613639343638356135356537626231663661623364313837393065363031616661613032306462
30616336303761626236653836653332623738303261393632363930376232343434393764363365 32653664373334636561613132336631613561363638666465393930336533333962383062316231
66316134643039393235383562356232323161623835653365393232616332313837303064323336 35633535643836323131656337366139313864343632616266363666646130316532336465633562
30666330623432373536616433653164363639613363363963383262663939613564323334343636 35326562633539386238613834656665306365643466356235326536383065623239653235653236
38626263626265626137336231343231306437333732303639393138663535613533346433306434 34356636623263343932336266336664303362613537666630343935313362666466393134653262
66363032666162313538306631643430376465316536653631353530303038623536633034613335 66396561363463646237363638336539663261626534363531636330386136623463366432313335
32343233643436323863376163366439613239633665626264663463633766366639643835653031 36343236613863383139353461313562303534613166353866636262623866383736303262626438
38643439323666313663383662383161326633316161313030653835363863646264656437316436 39353762303831353238323538626635393365363132646563626535613362326662653631663935
39316461663238393330643535313137626432386566373163363363363432363061376462363031 35636134343266626162316135316533346331663634366630633437363531313732313161306665
63373163633530653133373830363061623739333338643561353330366331636333393638663738 35336336323438613865396363363434663461646238346565336233363738666437323235336365
66303831626165396533353035396464363861623462333033636536336536636138363633613033 37316561386137353338643561656262336336373736393939363039663731343636366435633162
62376236373231306238633266396335346439363334376464636664386361313263303865323365 38383564663438303964643563613338306363623831613432333439386165303965
31616630623934363761636532666433393233313161646666613330616565623562346534653563
63396563346162643565356330383436323461313665336437303866353939373334663062633437
34393763323935353433336133666138326235653037636465333463313830623433656634393061
65656462663061386361633638393232306165346663363931353036346439643365373930306466
37666531303637383165653737633736303235613863343733663965616237356661643961653637
64373634393030386337373535613238303431613739613337663337313338626431643165656239
34623164636363366333