Skip to content

Commit

Permalink
refactor hosts example file as a test inventory directory
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Katharina Brechtel <[email protected]>
  • Loading branch information
mkbrechtel committed May 18, 2024
1 parent 405903c commit 329fb10
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 110 deletions.
110 changes: 0 additions & 110 deletions ansible/hosts.yaml.example

This file was deleted.

6 changes: 6 additions & 0 deletions test/inventory/group_vars/all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ceph_fsid: "e2850e1f-7aab-472e-b6b1-824e19a75071"
ceph_rbd_cache: "2048Mi"
ceph_rbd_cache_max: "1792Mi"
ceph_rbd_cache_target: "1536Mi"
incus_name: "baremetal"
ovn_name: "baremetal"
43 changes: 43 additions & 0 deletions test/inventory/group_vars/baremetal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
ansible_connection: incus
ansible_incus_remote: local
ansible_user: root
ansible_become: no
ansible_incus_project: dev-incus-deploy
ceph_roles:
- client
- osd
incus_roles:
- cluster
- ui
incus_init:
network:
LOCAL:
type: macvlan
local_config:
parent: enp5s0
UPLINK:
type: physical
config:
ipv4.gateway: "172.31.254.1/24"
ipv6.gateway: "fd00:1e4d:637d:1234::1/64"
ipv4.ovn.ranges: "172.31.254.10-172.31.254.254"
dns.nameservers: "1.1.1.1,1.0.0.1"
local_config:
parent: enp6s0
default:
type: ovn
config:
network: UPLINK
default: true
storage:
local:
driver: zfs
local_config:
source: "/dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_incus_disk3"
remote:
driver: ceph
local_config:
source: "incus_{{ incus_name }}"
default: true
ovn_roles:
- host
12 changes: 12 additions & 0 deletions test/inventory/host_vars/server01.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ceph_roles:
- client
- mon
- mds
- mgr
- osd
ceph_disks:
- data: nvme-QEMU_NVMe_Ctrl_incus_disk1
- data: nvme-QEMU_NVMe_Ctrl_incus_disk2
ovn_roles:
- central
- host
12 changes: 12 additions & 0 deletions test/inventory/host_vars/server02.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ceph_roles:
- client
- mon
- mds
- mgr
- osd
ceph_disks:
- data: nvme-QEMU_NVMe_Ctrl_incus_disk1
- data: nvme-QEMU_NVMe_Ctrl_incus_disk2
ovn_roles:
- central
- host
12 changes: 12 additions & 0 deletions test/inventory/host_vars/server03.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ceph_roles:
- client
- mon
- mds
- mgr
- osd
ceph_disks:
- data: nvme-QEMU_NVMe_Ctrl_incus_disk1
- data: nvme-QEMU_NVMe_Ctrl_incus_disk2
ovn_roles:
- central
- host
7 changes: 7 additions & 0 deletions test/inventory/host_vars/server04.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ceph_disks:
- data: nvme-QEMU_NVMe_Ctrl_incus_disk1
- data: nvme-QEMU_NVMe_Ctrl_incus_disk2
ceph_roles:
- client
- osd
- rgw
7 changes: 7 additions & 0 deletions test/inventory/host_vars/server05.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ceph_disks:
- data: nvme-QEMU_NVMe_Ctrl_incus_disk1
- data: nvme-QEMU_NVMe_Ctrl_incus_disk2
ceph_roles:
- client
- osd
- rgw
6 changes: 6 additions & 0 deletions test/inventory/hosts.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[baremetal]
server01
server02
server03
server04
server05

0 comments on commit 329fb10

Please sign in to comment.