refactor(ansible): centralize inventory and variables in 'vars' directory
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
2
vars/group_vars/proxmox/containers.yml
Normal file
2
vars/group_vars/proxmox/containers.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
lxcs:
|
||||
- name: "test-lxc-00"
|
||||
16
vars/group_vars/proxmox/secrets.yml
Normal file
16
vars/group_vars/proxmox/secrets.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
35336335313463633337373430646432306364613234666463373135306263383932323266303834
|
||||
3033643661303537303332316361326464336136623139350a373137396165623861623433303031
|
||||
37303264373362313534623966626665633339623464376236323436336563376261323739623033
|
||||
3066663137653562320a616130653165326530643562646531373736313064626164653661353535
|
||||
37633031626462663636366464323963653535333235633939636636376436646164333965326636
|
||||
62313164336265336539333261333732626562663966306537353763333339353030666133633064
|
||||
33336230646435616166346639363835373562313265306332346662636364326337616637346333
|
||||
39343063356138326536653933656164616264666662396132383865343630383139326531616464
|
||||
64333561313631616261303431336265623166386131613634646337396332653239323262343961
|
||||
66303938323337656662303562613736366366616663633639646566333737393765626365383963
|
||||
34616166336465376331366465303230666435626463383031653661376233626538353830356366
|
||||
34633239326532303931663435363365396535393733383637656139336164306663623761386135
|
||||
31313630383139376661343334616533316231393438663837383861313734313837623063366135
|
||||
64356334336133303164656338303339623631313461353139363838356337636462363862303436
|
||||
336363363733363436356663323962383030
|
||||
20
vars/group_vars/proxmox/secrets_vm.yml
Normal file
20
vars/group_vars/proxmox/secrets_vm.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
35616266333838306161336339353538306634373132626132643732303066303163343630333630
|
||||
6338393762616262303038373334663230383464643836370a656538393531393134616463643239
|
||||
36383330653339393362353838313639333432643535643833396535653632376336613130646663
|
||||
3532646538363137630a363731613235653935316531616430346264643837306434386333373033
|
||||
33663135653931373963343734366562386263663939383536663439383537333264666233343233
|
||||
62626162666538333435396638393338393734656131303065616534613733353335643939333765
|
||||
38326237343337363064666530303664326563633262313432343030336266373437353837346461
|
||||
63333363626164316638346635666537613963383537313965373638303732353365623166363736
|
||||
31633239646262613539646637663664313337353465636366313338303439613638653530656631
|
||||
62396536316561623736633631623336313537646138383431633538303163303261323864383538
|
||||
38626338373332653561343036323236383337343037356366626230646432646538373836303063
|
||||
61346339376561626630653562346439306561643664666437386562356535303264646338326261
|
||||
33636536663161366635666264663539653037306339316233643662643134396636636162656333
|
||||
36666139376263646130333263653335333165356462363434373439313330383331356138333431
|
||||
31633362343639376436616339656561316433346532346533336261383433366366396261366134
|
||||
35363264373335616165643665653466613434386630373232386261393464376361313131386462
|
||||
33333531336334386562356338623233313862316232356562373561633364363263306465333439
|
||||
37386631626538636365376464653837333662363361653237366161316431653266643238346336
|
||||
363863376530613036313866323965326638
|
||||
4
vars/group_vars/proxmox/vars.yml
Normal file
4
vars/group_vars/proxmox/vars.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
proxmox_api_host: 192.168.20.12
|
||||
proxmox_api_user: root
|
||||
proxmox_api_token_id: root@pam!terraform
|
||||
proxmox_api_token_secret: "{{ vault.pve.api.token_secret }}"
|
||||
80
vars/group_vars/proxmox/vms.yml
Normal file
80
vars/group_vars/proxmox/vms.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
vms:
|
||||
- name: "docker-host10"
|
||||
node: "lulu"
|
||||
vmid: 410
|
||||
cores: 2
|
||||
memory: 4096 # in MiB
|
||||
net:
|
||||
net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
|
||||
ciuser: "{{ user }}"
|
||||
sshkeys: "{{ pubkey }}"
|
||||
disk_size: 128 # in Gb
|
||||
hostpci:
|
||||
hostpci0: "0000:00:02.0"
|
||||
- name: "docker-host11"
|
||||
node: "lulu"
|
||||
vmid: 411
|
||||
cores: 2
|
||||
memory: 4096 # in MiB
|
||||
net:
|
||||
net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
boot_image: "{{ proxmox_cloud_init_images.ubuntu.name }}"
|
||||
ciuser: "{{ user }}"
|
||||
sshkeys: "{{ pubkey }}"
|
||||
disk_size: 128 # in Gb
|
||||
- name: "docker-host12"
|
||||
node: "naruto01"
|
||||
vmid: 412
|
||||
cores: 4
|
||||
memory: 8192
|
||||
net:
|
||||
net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
boot_image: "{{ proxmox_cloud_init_images.ubuntu.name }}"
|
||||
ciuser: "{{ user }}"
|
||||
sshkeys: "{{ pubkey }}"
|
||||
disk_size: 128 # in Gb
|
||||
- name: "k3s-server10"
|
||||
node: "naruto01"
|
||||
vmid: 110
|
||||
cores: 2
|
||||
memory: 4096 # in MiB
|
||||
net:
|
||||
net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
|
||||
ciuser: "{{ user }}"
|
||||
sshkeys: "{{ pubkey }}"
|
||||
disk_size: 64 # in Gb
|
||||
# - name: "k3s-agent10"
|
||||
# node: "naruto01"
|
||||
# vmid: 210
|
||||
# cores: 2
|
||||
# memory: 4096 # in MiB
|
||||
# net:
|
||||
# net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
|
||||
# ciuser: "{{ user }}"
|
||||
# sshkeys: "{{ pubkey }}"
|
||||
# disk_size: 64 # in Gb
|
||||
# - name: "k3s-agent11"
|
||||
# node: "lulu"
|
||||
# vmid: 211
|
||||
# cores: 2
|
||||
# memory: 4096 # in MiB
|
||||
# net:
|
||||
# net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
|
||||
# ciuser: "{{ user }}"
|
||||
# sshkeys: "{{ pubkey }}"
|
||||
# disk_size: 64 # in Gb
|
||||
# - name: "k3s-agent12"
|
||||
# node: "inko"
|
||||
# vmid: 212
|
||||
# cores: 2
|
||||
# memory: 4096 # in MiB
|
||||
# net:
|
||||
# net0: "virtio,bridge=vmbr0,firewall=1"
|
||||
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
|
||||
# ciuser: "{{ user }}"
|
||||
# sshkeys: "{{ pubkey }}"
|
||||
# disk_size: 64 # in Gb
|
||||
Reference in New Issue
Block a user