From 5aaf3eef533b9b300272b61351cf7f82b005a44e Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Wed, 13 Nov 2024 23:55:22 +0100 Subject: [PATCH] chore(inventory): add host-specific configuration files and update production inventory for proxmox hosts - Add individual `host_vars` YAML files for new proxmox hosts (`aya01`, `inko`, `lulu`): - Set SSH and Ansible connection variables, including `ansible_user`, `ansible_host`, `ansible_port`, and `ansible_ssh_private_key_file` - Configure `ansible_become_pass` with respective vault entries for sudo access - Define host-specific metadata, including hostname and IP address - Update `production` inventory: - Add new `[proxmox]` group and include `aya01`, `inko`, and `lulu` for proxmox-related automation These additions streamline Ansible's management of proxmox hosts, centralizing their configuration and enabling easier host-specific variable access for deployment and management tasks. Signed-off-by: Tuan-Dat Tran --- host_vars/aya01.yml | 10 ++++++++++ host_vars/inko.yml | 10 ++++++++++ host_vars/lulu.yml | 10 ++++++++++ production | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 host_vars/aya01.yml create mode 100644 host_vars/inko.yml create mode 100644 host_vars/lulu.yml diff --git a/host_vars/aya01.yml b/host_vars/aya01.yml new file mode 100644 index 0000000..2b172a1 --- /dev/null +++ b/host_vars/aya01.yml @@ -0,0 +1,10 @@ +--- +ansible_user: "root" +ansible_host: 192.168.20.12 +ansible_port: 22 +ansible_ssh_private_key_file: "{{ pk_path }}" +ansible_become_pass: "{{ vault.pve.aya01.root.sudo }}" + +host: + hostname: "aya01" + ip: "{{ ansible_host }}" diff --git a/host_vars/inko.yml b/host_vars/inko.yml new file mode 100644 index 0000000..32327a4 --- /dev/null +++ b/host_vars/inko.yml @@ -0,0 +1,10 @@ +--- +ansible_user: "root" +ansible_host: 192.168.20.14 +ansible_port: 22 +ansible_ssh_private_key_file: "{{ pk_path }}" +ansible_become_pass: "{{ vault.pve.inko.root.sudo }}" + +host: + hostname: "inko" + ip: "{{ ansible_host }}" diff --git a/host_vars/lulu.yml b/host_vars/lulu.yml new file mode 100644 index 0000000..e490d2f --- /dev/null +++ b/host_vars/lulu.yml @@ -0,0 +1,10 @@ +--- +ansible_user: "root" +ansible_host: 192.168.20.28 +ansible_port: 22 +ansible_ssh_private_key_file: "{{ pk_path }}" +ansible_become_pass: "{{ vault.pve.lulu.root.sudo }}" + +host: + hostname: "lulu" + ip: "{{ ansible_host }}" diff --git a/production b/production index 537c3b0..391cc79 100644 --- a/production +++ b/production @@ -68,3 +68,8 @@ docker-host00 [docker_host] docker-host00 + +[proxmox] +aya01 +lulu +inko