Compare commits
2 Commits
ca334ee303
...
ca310e6c13
Author | SHA1 | Date | |
---|---|---|---|
ca310e6c13 | |||
5383a9fac3 |
@ -5,9 +5,11 @@ packages:
|
||||
- zfs-dkms
|
||||
- zfsutils-linux
|
||||
- ganeti
|
||||
- ganeti-instance-debootstrap
|
||||
- drbd-utils
|
||||
- socat
|
||||
- python3
|
||||
- qemu-system-x86
|
||||
- systemd-resolved # needs to be the last one
|
||||
# breaks dns resolution until
|
||||
# systemd-networkd is configured
|
||||
@ -44,3 +46,10 @@ zpool_dev: /dev/vdc
|
||||
vg_name: xenvg
|
||||
pvs:
|
||||
- /dev/vdb
|
||||
|
||||
# ganeti
|
||||
instance_debootstrap:
|
||||
- name: default
|
||||
arch: amd64
|
||||
suite: bookworm
|
||||
extra_pkgs: "acpi-support-base,udev,linux-image-amd64,sudo,vim,grub-pc,openssh-server"
|
||||
|
@ -1,9 +1,11 @@
|
||||
[nodes]
|
||||
192.168.50.20
|
||||
192.168.50.21
|
||||
192.168.50.22
|
||||
|
||||
[master]
|
||||
192.168.50.20
|
||||
|
||||
[workers]
|
||||
192.168.50.21
|
||||
192.168.50.22
|
||||
|
6
roles/node/tasks/debootstrap.yml
Normal file
6
roles/node/tasks/debootstrap.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- name: Generate debootstrap configs
|
||||
ansible.builtin.template:
|
||||
src: etc-ganeti-instance-debootstrap-variants.j2
|
||||
dest: "/etc/ganeti/instance-debootstrap/variants/{{ item.name }}.conf"
|
||||
mode: "0644"
|
||||
loop: "{{ instance_debootstrap }}"
|
0
roles/node/tasks/instance_debootstrap
Normal file
0
roles/node/tasks/instance_debootstrap
Normal file
@ -25,3 +25,7 @@
|
||||
- name: Exchange keys
|
||||
ansible.builtin.include_tasks:
|
||||
file: keys.yml
|
||||
|
||||
- name: Configure debootstrap
|
||||
ansible.builtin.include_tasks:
|
||||
file: debootstrap.yml
|
||||
|
@ -0,0 +1,3 @@
|
||||
ARCH={{ item.arch }}
|
||||
SUITE={{ item.suite }}
|
||||
EXTRA_PKGS="{{ item.extra_pkgs }}"
|
@ -33,9 +33,9 @@
|
||||
creates: /var/log/ganeti/extstorage
|
||||
register: create_log_directory_result
|
||||
|
||||
- name: Create lvm wrappers
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/share/ganeti/extstorage/zfs/install/3-lvm-wrappers.sh
|
||||
chdir: /usr/share/ganeti/extstorage/zfs/install/
|
||||
register: lvm_wrappers_result
|
||||
changed_when: lvm_wrappers_result.rc == 0
|
||||
# - name: Create lvm wrappers
|
||||
# ansible.builtin.command:
|
||||
# cmd: /usr/share/ganeti/extstorage/zfs/install/3-lvm-wrappers.sh
|
||||
# chdir: /usr/share/ganeti/extstorage/zfs/install/
|
||||
# register: lvm_wrappers_result
|
||||
# changed_when: lvm_wrappers_result.rc == 0
|
||||
|
Loading…
Reference in New Issue
Block a user