Initial commit: VM Creation done
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
proxmox_api_host: "10.0.2.2"
|
||||
proxmox_api_user: "root@pam"
|
||||
proxmox_api_token_id: "ansible"
|
||||
proxmox_api_token_secret: "{{ vault_proxmox_api_token_secret }}"
|
||||
proxmox_node: "pve"
|
||||
|
||||
template_name: "debian-13-cloudinit"
|
||||
|
||||
ansible_user: root
|
||||
ansible_python_interpreter: /opt/homebrew/bin/python3
|
||||
|
||||
docker_packages:
|
||||
- docker.io
|
||||
- docker-compose-plugin
|
||||
|
||||
# Traefik configuration
|
||||
domain: "example.com" # Change to your domain
|
||||
letsencrypt_email: "admin@example.com" # Change to your email
|
||||
@@ -0,0 +1,9 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
30633439346434353439346639633764626635653563666538653835633838643731666435303334
|
||||
3661326333363964633038303533316334363830303236350a393538306461356533636565353031
|
||||
30643036363662376661656462386235383438623533303139343037616436666161653530376639
|
||||
3063343131616333620a336430323062383738663130623139323633613035643539333565663730
|
||||
30613964353338653663373234616365303165306166373034633264303235366433396130616435
|
||||
66636161373639393166386331346639666361316237353965373562643761613064666566343436
|
||||
65353164316262313234653764353837643763363132383935323231376538383933316563326537
|
||||
35343235336163653435
|
||||
@@ -0,0 +1,53 @@
|
||||
vms:
|
||||
# infra-core-1:
|
||||
# vmid: 410
|
||||
# node: purah
|
||||
# cores: 4
|
||||
# memory: 8192
|
||||
# disk: 50G
|
||||
# ip: 10.0.4.10
|
||||
# network_bridge: "vmbr0"
|
||||
# storage: purah-mirror-860gb
|
||||
|
||||
# media-1:
|
||||
# vmid: 420
|
||||
# node: purah
|
||||
# cores: 8
|
||||
# memory: 16384
|
||||
# disk: 200G
|
||||
# ip: 10.0.4.20
|
||||
# igpu: true
|
||||
# network_bridge: "vmbr0"
|
||||
# storage: purah-mirror-860gb
|
||||
|
||||
# apps-1:
|
||||
# vmid: 430
|
||||
# node: yunobo
|
||||
# cores: 6
|
||||
# memory: 16384
|
||||
# disk: 100G
|
||||
# ip: 10.0.4.30
|
||||
# network_bridge: "vmbr2"
|
||||
# storage: nvme-2tb
|
||||
|
||||
edge-1:
|
||||
vmid: 401
|
||||
node: mipha
|
||||
template_vmid: 9001
|
||||
cores: 2
|
||||
memory: 4096
|
||||
disk: 30G
|
||||
ip: 10.0.4.1
|
||||
network_bridge: "vmbr0"
|
||||
storage: "local-lvm"
|
||||
|
||||
edge-2:
|
||||
vmid: 402
|
||||
node: sidon
|
||||
template_vmid: 9002
|
||||
cores: 2
|
||||
memory: 4096
|
||||
disk: 30G
|
||||
ip: 10.0.4.2
|
||||
network_bridge: "vmbr0"
|
||||
storage: "local-lvm"
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# Keepalived configuration for edge-1 (PRIMARY)
|
||||
keepalived_state: MASTER
|
||||
keepalived_priority: 100
|
||||
keepalived_interface: eth0
|
||||
keepalived_router_id: 51
|
||||
keepalived_vip: 10.0.4.254
|
||||
keepalived_password: "{{ vault_keepalived_password | default('changeme') }}"
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# Keepalived configuration for edge-2 (BACKUP)
|
||||
keepalived_state: BACKUP
|
||||
keepalived_priority: 50
|
||||
keepalived_interface: eth0
|
||||
keepalived_router_id: 51
|
||||
keepalived_vip: 10.0.4.254
|
||||
keepalived_password: "{{ vault_keepalived_password | default('changeme') }}"
|
||||
@@ -0,0 +1,17 @@
|
||||
[ms01]
|
||||
purah ansible_host=10.0.2.5
|
||||
yunobo ansible_host=10.0.3.4
|
||||
|
||||
[nuc]
|
||||
mipha ansible_host=10.0.2.3
|
||||
sidon ansible_host=10.0.2.2
|
||||
yuga ansible_host=10.0.2.7
|
||||
|
||||
[infra]
|
||||
infra-core-1 ansible_host=10.0.4.1
|
||||
|
||||
[media]
|
||||
media-1 ansible_host=10.0.4.10
|
||||
|
||||
[apps]
|
||||
apps-1 ansible_host=10.0.4.20
|
||||
@@ -0,0 +1,30 @@
|
||||
all:
|
||||
hosts:
|
||||
localhost:
|
||||
ansible_connection: local
|
||||
children:
|
||||
edge:
|
||||
hosts:
|
||||
edge-1:
|
||||
ansible_host: 10.0.4.1
|
||||
edge-2:
|
||||
ansible_host: 10.0.4.2
|
||||
purah:
|
||||
hosts:
|
||||
infra-core-1:
|
||||
ansible_host: 10.0.4.10
|
||||
yunobo:
|
||||
hosts:
|
||||
media-1:
|
||||
ansible_host: 10.0.4.20
|
||||
apps-1:
|
||||
ansible_host: 10.0.4.30
|
||||
mipha:
|
||||
hosts:
|
||||
edge-1:
|
||||
ansible_host: 10.0.4.1
|
||||
sidon:
|
||||
hosts:
|
||||
edge-2:
|
||||
ansible_host: 10.0.4.2
|
||||
|
||||
Reference in New Issue
Block a user