Compare commits
4 Commits
e0b431452c
...
ba9b005829
Author | SHA1 | Date | |
---|---|---|---|
ba9b005829 | |||
eb35e7aecb | |||
2f139d1b45 | |||
be57b5e7d1 |
@ -9,6 +9,7 @@ packages:
|
|||||||
- python3
|
- python3
|
||||||
- xen-hypervisor
|
- xen-hypervisor
|
||||||
- xen-hypervisor-common
|
- xen-hypervisor-common
|
||||||
|
- xen-system-amd64
|
||||||
- xen-utils
|
- xen-utils
|
||||||
- xen-tools
|
- xen-tools
|
||||||
- qemu-system-x86
|
- qemu-system-x86
|
||||||
|
@ -4,3 +4,9 @@
|
|||||||
dest: "/etc/ganeti/instance-debootstrap/variants/{{ item.name }}.conf"
|
dest: "/etc/ganeti/instance-debootstrap/variants/{{ item.name }}.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
loop: "{{ instance_debootstrap }}"
|
loop: "{{ instance_debootstrap }}"
|
||||||
|
|
||||||
|
- name: List variants
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: etc-ganeti-instance-debootstrap-variants.list.j2
|
||||||
|
dest: "/etc/ganeti/instance-debootstrap/variants.list"
|
||||||
|
mode: "0644"
|
||||||
|
@ -15,3 +15,8 @@
|
|||||||
regex: "RAPI_ARGS=.*"
|
regex: "RAPI_ARGS=.*"
|
||||||
line: RAPI_ARGS="-b 0.0.0.0 --require-authentication"
|
line: RAPI_ARGS="-b 0.0.0.0 --require-authentication"
|
||||||
path: /etc/default/ganeti
|
path: /etc/default/ganeti
|
||||||
|
|
||||||
|
- name: Clear VNC password
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/ganeti/vnc-cluster-password
|
||||||
|
mode: "0644"
|
@ -34,6 +34,6 @@
|
|||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: debootstrap.yml
|
file: debootstrap.yml
|
||||||
|
|
||||||
- name: Configure RAPI
|
- name: Configure Ganeti
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: rapi.yml
|
file: ganeti.yml
|
||||||
|
@ -85,3 +85,16 @@
|
|||||||
notify:
|
notify:
|
||||||
- update initramfs
|
- update initramfs
|
||||||
- reboot
|
- reboot
|
||||||
|
|
||||||
|
- name: "Get latest Xen version"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: bash -c 'find /usr/lib -type d -name "xen-*" | sort -r | head -1'
|
||||||
|
register: latest_xen
|
||||||
|
changed_when: false
|
||||||
|
failed_when: latest_xen.rc != 0
|
||||||
|
|
||||||
|
- name: "Link Xen to latest version"
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: link
|
||||||
|
src: "{{ latest_xen.stdout }}"
|
||||||
|
dest: /usr/lib/xen
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
{% for variant in instance_debootstrap %}
|
||||||
|
{{ variant.name }}
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue
Block a user