From e95035f61f9989ef25fcc3c3464aeddebb79bec7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 5 Dec 2022 16:30:27 +0100 Subject: cloud/install: some more more tests for edis --- inventory/host_vars/ch-testvm-edis.yml | 36 +++++++++++++++++++++++++++++ roles/cloud/install/tasks/edis-kvm.yml | 17 +++++++++++--- roles/cloud/post-install/tasks/edis-kvm.yml | 2 +- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/inventory/host_vars/ch-testvm-edis.yml b/inventory/host_vars/ch-testvm-edis.yml index 8ee9bfa1..e059d9e8 100644 --- a/inventory/host_vars/ch-testvm-edis.yml +++ b/inventory/host_vars/ch-testvm-edis.yml @@ -5,3 +5,39 @@ install: credentials: email: equinox@chaos-at-home.org password: "{{ vault_edis_api_password }}" + image_publish: + host: ch-mimas + path: /srv/storage/pub + base_url: https://pub.chaos-at-home.org + disks: + primary: /dev/vda + +network: + nameservers: + - 1.1.1.1 + - 1.1.1.1 + - 2606:4700:4700::1111 + domain: "{{ host_domain }}" + primary: &_network_primary_ + name: ens3 + address: 149.154.152.204/24 + gateway: 149.154.152.1 + address6: 2a03:f80:ed15:bb55::1/48 + gateway6: 2a03:f80:ed15::1 + interfaces: + - *_network_primary_ + +## /etc/network/interfaces from orig install +# +# auto ens3 +# iface ens3 inet static +# address 149.154.152.204 +# netmask 255.255.255.0 +# gateway 149.154.152.1 +# dns-nameservers 1.1.1.1 1.1.1.1 2606:4700:4700::1111 +# mtu 1500 +# +# up ip r a 2a03:f80:ed15::/48 dev ens3 +# up ip -6 addr add 2a03:f80:ed15:bb55::1/48 dev ens3 +# up ip -6 r a ::/0 via 2a03:f80:ed15::1 +# diff --git a/roles/cloud/install/tasks/edis-kvm.yml b/roles/cloud/install/tasks/edis-kvm.yml index 2b29cb01..d51a9305 100644 --- a/roles/cloud/install/tasks/edis-kvm.yml +++ b/roles/cloud/install/tasks/edis-kvm.yml @@ -1,9 +1,20 @@ --- # https://documenter.getpostman.com/view/14802249/TzkyNLMQ#intro -## TODO: actually implement this -## - generate installer ISO -## - upload iso to public reachable server... (which one ???) + ## TODO: allow other installer variants +- name: generate host specific installer iso + delegate_to: localhost + vars: + installer_base_path: "{{ global_cache_dir }}/debian-installer" + installer_keyrings_path: "{{ global_files_dir }}/common/keyrings" + import_role: + name: installer/debian/iso + +- name: upload installer iso to publishing host + delegate_to: "{{ install.cloud.image_publish.host }}" + copy: + src: "{{ iso_install_target_dir }}/{{ install_hostname }}.iso" + dest: "{{ install.cloud.image_publish.path }}" - name: generate auth sessions from API delegate_to: localhost diff --git a/roles/cloud/post-install/tasks/edis-kvm.yml b/roles/cloud/post-install/tasks/edis-kvm.yml index 3d855567..eb91eb94 100644 --- a/roles/cloud/post-install/tasks/edis-kvm.yml +++ b/roles/cloud/post-install/tasks/edis-kvm.yml @@ -1,2 +1,2 @@ --- -# nothing to do here.. +# TODO: configure network interfaces (IPv6!) -- cgit v1.2.3