Skip to content

Commit

Permalink
ansible: Generate the inventory
Browse files Browse the repository at this point in the history
Create the Ansible inventory:

* One guest host machine.
* Five guests running on the host machine.

Signed-off-by: Dimitris Poulopoulos <[email protected]>
  • Loading branch information
dpoulopoulos committed Jun 17, 2024
1 parent fb8f180 commit 3cfb2fe
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/inventory/group_vars/libvirt/libvirt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
virt_host: boogie
virt_domain_disk_gb: 128
virt_domain_num_vcpus: 4
virt_domain_memory_mb: 16384
virt_domain_net_bridge: br0
5 changes: 5 additions & 0 deletions ansible/inventory/host_vars/boogie/boogie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ansible will SSH into managed machines as this user
ansible_user: root

# Local user on the control machine
user: root
35 changes: 35 additions & 0 deletions ansible/inventory/hosts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
all:
hosts:
boogie:
node1:
ansible_host: 192.168.20.100
node2:
ansible_host: 192.168.20.101
node3:
ansible_host: 192.168.20.102
node4:
ansible_host: 192.168.20.103
node5:
ansible_host: 192.168.29.104
children:
libvirt:
hosts:
node1:
virt_domain_name: node1
virt_domain_net_macaddress: 52:54:00:DD:B9:81
node2:
virt_domain_name: node2
virt_domain_net_macaddress: 52:54:00:0A:B8:82
node3:
virt_domain_name: node3
virt_domain_net_macaddress: 52:54:00:2E:AB:32
node4:
virt_domain_name: node4
virt_domain_net_macaddress: 52:54:00:19:F2:EF
node5:
virt_domain_name: node5
virt_domain_net_macaddress: 52:54:00:6C:BA:E1
admin:
hosts:
boogie:

0 comments on commit 3cfb2fe

Please sign in to comment.