feat(infra): SPR backend 08/39508/2
authorpmikus <peter.mikus@protonmail.ch>
Fri, 8 Sep 2023 11:37:58 +0000 (11:37 +0000)
committerPeter Mikus <peter.mikus@protonmail.ch>
Fri, 8 Sep 2023 11:44:27 +0000 (11:44 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: If48902729a8c13b83c97170c12fc43bac624212c

19 files changed:
docs/content/infrastructure/fdio_dc_vexxhost_inventory.md
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.30.yaml
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.31.yaml
fdio.infra.ansible/roles/consul/tasks/main.yaml
fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs-spr.sh
fdio.infra.ansible/vpp_device.yaml
fdio.infra/pxe/docker-dnsmasq/etc/dnsmasq.conf
fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:6c [new file with mode: 0644]
fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:74 [new file with mode: 0644]
fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:78 [new file with mode: 0644]
fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:7a [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/meta-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/user-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/meta-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/user-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/meta-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/user-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/meta-data [new file with mode: 0644]
fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/user-data [new file with mode: 0644]

index a3e6d75..f11ed37 100644 (file)
@@ -88,13 +88,13 @@ Captured inventory data:
  yul1-11-lf-tor-switch | up              | switch         | uplink       | ?              | ?               | ?            | ?            | 3016.11    | u47
  mtl1-6-7050QX-32      | up              | switch         | uplink       | ?              | ?               | ?            | ?            | 3016.11    | u46
  fdio-marvell-dev      | up              | N/A            | dev          | ThunderX-88XX  | N/A             | 10.30.51.38  | 10.30.50.38  | 3016.11    | u45
- s21-nomad             | up              | nomad          | nomad-client | SYS-741GE-TNRT | ??              | 10.30.51.21  | 10.30.50.21  | 3016.11    | u41-u44
- s22-nomad             | up              | nomad          | nomad-client | SYS-741GE-TNRT | ??              | 10.30.51.22  | 10.30.50.22  | 3016.11    | u37-u40
+ s21-nomad             | up              | nomad          | nomad-client | SYS-741GE-TNRT | C7490FL47A50150 | 10.30.51.21  | 10.30.50.21  | 3016.11    | u39-u42
+ s22-nomad             | up              | nomad          | nomad-client | SYS-741GE-TNRT | C7490FL47A50155 | 10.30.51.22  | 10.30.50.22  | 3016.11    | u35-u38
  s78-t38-sut1          | up              | t38            | 3n-icx       | SYS-740GP-TNRT | C7470KL03P50450 | 10.30.51.78  | 10.30.50.78  | 3016.11    | u31-u34
  s79-t38-sut2          | up              | t38            | 3n-icx       | SYS-740GP-TNRT | C7470KL07P50297 | 10.30.51.79  | 10.30.50.79  | 3016.11    | u27-u30
  s80-t38-tg1           | up              | t38            | 3n-icx       | SYS-740GP-TNRT | C7470KL03P50454 | 10.30.51.80  | 10.30.50.80  | 3016.11    | u23-u26
- s30-t15-sut1          | up              | nomad          | nomad-client | SYS-741GE-TNRT | ??              | 10.30.51.30  | 10.30.50.30  | 3016.11    | u19-u22
- s31-t16-sut1          | up              | nomad          | nomad-client | SYS-741GE-TNRT | ??              | 10.30.51.31  | 10.30.50.31  | 3016.11    | u15-u18
+ s30-t15-sut1          | up              | nomad          | nomad-client | SYS-741GE-TNRT | C7490FL47A50154 | 10.30.51.30  | 10.30.50.30  | 3016.11    | u19-u22
+ s31-t16-sut1          | up              | nomad          | nomad-client | SYS-741GE-TNRT | C7490FL47A50149 | 10.30.51.31  | 10.30.50.31  | 3016.11    | u15-u18
  s56-t14-sut1          | up              | t14            | 1n-tx2       | ThunderX2-9980 | N/A             | 10.30.51.71  | 10.30.50.71  | 3016.11    | u13-u14
  s55-t13-sut1          | up              | t13            | 1n-tx2       | ThunderX2-9980 | N/A             | 10.30.51.70  | 10.30.50.70  | 3016.11    | u11-u12
  s62-t34-sut1          | up              | t34            | 3n-alt       | WIWYNN         | 04000059N0SC    | 10.30.51.72  | 10.30.50.72  | 3016.11    | u9-u10
@@ -121,4 +121,4 @@ Captured inventory data:
  s35-t28-sut1  | up              | t28            | 2n-clx         | SYS-7049GP-TRT  | C7470KH37A30509 | 10.32.8.20   | 10.30.55.20  | 3016.12    | u14-u17
  s36-t28-tg1   | up              | t28            | 2n-clx         | SYS-7049GP-TRT  | C7470KH37A30511 | 10.32.8.21   | 10.30.55.21  | 3016.12    | u10-u13
  s37-t29-sut1  | up              | t29            | 2n-clx         | SYS-7049GP-TRT  | C7470KH37A30566 | 10.32.8.22   | 10.30.55.22  | 3016.12    | u6-u9
- s38-t29-tg1   | up              | t29            | 2n-clx         | SYS-7049GP-TRT  | C7470KH37A30506 | 10.32.8.23   | 10.30.55.23  | 3016.12    | u2-u5
\ No newline at end of file
+ s38-t29-tg1   | up              | t29            | 2n-clx         | SYS-7049GP-TRT  | C7470KH37A30506 | 10.32.8.23   | 10.30.55.23  | 3016.12    | u2-u5
index 8c2e764..a02d623 100644 (file)
@@ -63,7 +63,7 @@ nomad_servers:
 # Consul settigs.
 nomad_use_consul: true
 consul_certificates:
-  - src: "{{ file_consul_agent_ca_pem }}"
+  - src: "{{ file_consul_ca_pem }}"
     dest: "{{ consul_ca_file }}"
   - src: "{{ file_consul_server_0_pem }}"
     dest: "{{ consul_cert_file }}"
index 51d7236..606bb47 100644 (file)
@@ -63,7 +63,7 @@ nomad_servers:
 # Consul settigs.
 nomad_use_consul: true
 consul_certificates:
-  - src: "{{ file_consul_agent_ca_pem }}"
+  - src: "{{ file_consul_ca_pem }}"
     dest: "{{ consul_ca_file }}"
   - src: "{{ file_consul_server_0_pem }}"
     dest: "{{ consul_cert_file }}"
index 69678f9..6dd4307 100644 (file)
@@ -80,6 +80,8 @@
     group: "{{ consul_group }}"
     mode: 0755
   with_items:
+    - "{{ consul_config_dir }}"
+    - "{{ consul_ssl_dir }}"
     - "{{ consul_data_dir }}"
     - "{{ nomad_config_dir }}"
     - "{{ nomad_ssl_dir }}"
index 25a9f5d..7be4838 100644 (file)
@@ -22,5 +22,5 @@ PCI_WHITELIST+=($(lspci -Dmmd ':1592:0200' | cut -f1 -d' '))
 
 declare -A PF_INDICES
 # Intel NICs
-PF_INDICES["0000:86:00.0"]=0
-PF_INDICES["0000:af:00.0"]=0
+PF_INDICES["0000:2a:00.0"]=0
+PF_INDICES["0000:3d:00.0"]=0
index dfd0434..2167681 100644 (file)
@@ -18,8 +18,8 @@
       tags: baremetal
     - role: common
       tags: common
-    - role: kernel
-      tags: kernel
+#    - role: kernel
+#      tags: kernel
     - role: intel
       tags: intel
     - role: docker
index 562a59a..eae5a07 100755 (executable)
@@ -37,16 +37,16 @@ dhcp-option=yul1_2,option:dns-server,1.1.1.1
 dhcp-option=yul1_2,option:dns-server,8.8.8.8
 
 # Hosts DHCP settings yul1_1 subnet.
-dhcp-host=?,10.30.51.21,s21-nomad,infinite # eno1
-dhcp-host=?,10.30.51.22,s22-nomad,infinite # eno1
+dhcp-host=7c:c2:55:55:c0:74,10.30.51.21,s21-nomad,infinite # eno1
+dhcp-host=7c:c2:55:55:c0:7a,10.30.51.22,s22-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:5a:6a:d4,10.30.51.23,s23-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:5a:6a:b4,10.30.51.24,s24-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:5a:6b:08,10.30.51.25,s25-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:ac:d9:2e,10.30.51.26,s26-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:8b:55:d8,10.30.51.27,s27-nomad,infinite # eno1
 dhcp-host=ac:1f:6b:8a:8d:0a,10.30.51.28,s28-nomad,infinite # eno1
-dhcp-host=?,10.30.51.30,s30-t15-sut1,infinite # eno1
-dhcp-host=?,10.30.51.31,s31-t16-sut1,infinite # eno1
+dhcp-host=7c:c2:55:55:c0:78,10.30.51.30,s30-t15-sut1,infinite # eno1
+dhcp-host=7c:c2:55:55:c0:6c,10.30.51.31,s31-t16-sut1,infinite # eno1
 dhcp-host=a0:a3:3b:c1:14:28,10.30.51.36,s17-t33-sut1,infinite # enahisic2i0
 dhcp-host=a0:a3:3b:c1:12:fa,10.30.51.37,s18-t33-sut2,infinite # enahisic2i0
 dhcp-host=40:8d:5c:e7:b2:6e,10.30.51.38,fdio-marvell-dev,infinite # enP2p1s0v0
@@ -95,4 +95,4 @@ dhcp-host=ac:1f:6b:ac:d7:56,10.32.8.21,s36-t28-tg1,infinite # eno1
 dhcp-host=ac:1f:6b:ac:d7:ba,10.32.8.22,s37-t29-sut1,infinite # eno1
 dhcp-host=ac:1f:6b:ac:d7:76,10.32.8.23,s38-t29-tg1,infinite # eno1
 dhcp-host=3c:ec:ef:43:a3:ba,10.32.8.24,s60-t210-sut1,infinite # eno1np0
-dhcp-host=3c:ec:ef:46:34:e8,10.32.8.25,s61-t210-tg1,infinite # eno1np0
\ No newline at end of file
+dhcp-host=3c:ec:ef:46:34:e8,10.32.8.25,s61-t210-tg1,infinite # eno1np0
diff --git a/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:6c b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:6c
new file mode 100644 (file)
index 0000000..1b54833
--- /dev/null
@@ -0,0 +1,4 @@
+menuentry "Install s31-t16-sut1" {
+    linux    /casper/ubuntu-jammy-amd64/vmlinuz ip=:::::eno1:dhcp url=https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.1-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/ ---
+    initrd   /casper/ubuntu-jammy-amd64/initrd
+}
diff --git a/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:74 b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:74
new file mode 100644 (file)
index 0000000..4674cf1
--- /dev/null
@@ -0,0 +1,4 @@
+menuentry "Install s21-nomad" {
+    linux    /casper/ubuntu-jammy-amd64/vmlinuz ip=:::::eno1:dhcp url=https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.1-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/ ---
+    initrd   /casper/ubuntu-jammy-amd64/initrd
+}
diff --git a/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:78 b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:78
new file mode 100644 (file)
index 0000000..20a069f
--- /dev/null
@@ -0,0 +1,4 @@
+menuentry "Install s30-t15-sut1" {
+    linux    /casper/ubuntu-jammy-amd64/vmlinuz ip=:::::eno1:dhcp url=https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.1-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/ ---
+    initrd   /casper/ubuntu-jammy-amd64/initrd
+}
diff --git a/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:7a b/fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-7c:c2:55:55:c0:7a
new file mode 100644 (file)
index 0000000..a89d3eb
--- /dev/null
@@ -0,0 +1,4 @@
+menuentry "Install s22-nomad" {
+    linux    /casper/ubuntu-jammy-amd64/vmlinuz ip=:::::eno1:dhcp url=https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.1-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/ ---
+    initrd   /casper/ubuntu-jammy-amd64/initrd
+}
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/meta-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/meta-data
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/user-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:6c/user-data
new file mode 100644 (file)
index 0000000..2a623a8
--- /dev/null
@@ -0,0 +1,120 @@
+#cloud-config
+autoinstall:
+  version: 1
+  apt:
+    geoip: true
+    preserve_sources_list: false
+    primary:
+    - arches: [amd64, i386]
+      uri: http://ca.archive.ubuntu.com/ubuntu
+    - arches: [default]
+      uri: http://ports.ubuntu.com/ubuntu-ports
+  identity:
+    hostname: s31-t16-sut1
+    password: $6$FIsbVDQR$5D0wgufOd2FtnmOiRNsGlgg6Loh.0x3dWSj72DSQnqisSyE9DROfgSgA6s0yxDwz4Jd5SRTXiTKuRYuSQ5POI1
+    realname: localadmin
+    username: localadmin
+  keyboard:
+    layout: us
+    toggle: null
+    variant: ''
+  locale: en_US.UTF-8
+  network:
+    ethernets:
+      eno1:
+        addresses: [ 10.30.51.31/24 ]
+        dhcp4: false
+        gateway4: 10.30.51.1
+        nameservers:
+          addresses: [ 1.1.1.1, 8.8.8.8 ]
+    version: 2
+  packages:
+    - python3
+  refresh-installer:
+    update: no
+  ssh:
+    allow-pw: true
+    authorized-keys: []
+    install-server: true
+  storage:
+    config:
+    - grub_device: false
+      id: disk-sda
+      path: /dev/sda
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - grub_device: false
+      id: disk-sdb
+      path: /dev/sdb
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - device: disk-sda
+      grub_device: true
+      id: partition-0
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      grub_device: true
+      id: partition-1
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - id: format-0
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-0
+    - id: format-1
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-1
+    - device: disk-sda
+      flag: ''
+      grub_device: false
+      id: partition-2
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      flag: ''
+      grub_device: false
+      id: partition-3
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - name: md0
+      raidlevel: raid1
+      devices: [partition-2, partition-3]
+      spare_devices: []
+      preserve: false
+      type: raid
+      id: raid-0
+    - fstype: ext4
+      id: format-2
+      preserve: false
+      type: format
+      volume: raid-0
+    - device: format-2
+      id: mount-1
+      path: /
+      type: mount
+    - device: format-0
+      id: mount-0
+      path: /boot/efi
+      type: mount
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/meta-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/meta-data
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/user-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:74/user-data
new file mode 100644 (file)
index 0000000..b15b9a8
--- /dev/null
@@ -0,0 +1,120 @@
+#cloud-config
+autoinstall:
+  version: 1
+  apt:
+    geoip: true
+    preserve_sources_list: false
+    primary:
+    - arches: [amd64, i386]
+      uri: http://ca.archive.ubuntu.com/ubuntu
+    - arches: [default]
+      uri: http://ports.ubuntu.com/ubuntu-ports
+  identity:
+    hostname: s21-nomad
+    password: $6$FIsbVDQR$5D0wgufOd2FtnmOiRNsGlgg6Loh.0x3dWSj72DSQnqisSyE9DROfgSgA6s0yxDwz4Jd5SRTXiTKuRYuSQ5POI1
+    realname: localadmin
+    username: localadmin
+  keyboard:
+    layout: us
+    toggle: null
+    variant: ''
+  locale: en_US.UTF-8
+  network:
+    ethernets:
+      eno1:
+        addresses: [ 10.30.51.21/24 ]
+        dhcp4: false
+        gateway4: 10.30.51.1
+        nameservers:
+          addresses: [ 1.1.1.1, 8.8.8.8 ]
+    version: 2
+  packages:
+    - python3
+  refresh-installer:
+    update: no
+  ssh:
+    allow-pw: true
+    authorized-keys: []
+    install-server: true
+  storage:
+    config:
+    - grub_device: false
+      id: disk-sda
+      path: /dev/sda
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - grub_device: false
+      id: disk-sdb
+      path: /dev/sdb
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - device: disk-sda
+      grub_device: true
+      id: partition-0
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      grub_device: true
+      id: partition-1
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - id: format-0
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-0
+    - id: format-1
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-1
+    - device: disk-sda
+      flag: ''
+      grub_device: false
+      id: partition-2
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      flag: ''
+      grub_device: false
+      id: partition-3
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - name: md0
+      raidlevel: raid1
+      devices: [partition-2, partition-3]
+      spare_devices: []
+      preserve: false
+      type: raid
+      id: raid-0
+    - fstype: ext4
+      id: format-2
+      preserve: false
+      type: format
+      volume: raid-0
+    - device: format-2
+      id: mount-1
+      path: /
+      type: mount
+    - device: format-0
+      id: mount-0
+      path: /boot/efi
+      type: mount
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/meta-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/meta-data
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/user-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:78/user-data
new file mode 100644 (file)
index 0000000..782f6c0
--- /dev/null
@@ -0,0 +1,120 @@
+#cloud-config
+autoinstall:
+  version: 1
+  apt:
+    geoip: true
+    preserve_sources_list: false
+    primary:
+    - arches: [amd64, i386]
+      uri: http://ca.archive.ubuntu.com/ubuntu
+    - arches: [default]
+      uri: http://ports.ubuntu.com/ubuntu-ports
+  identity:
+    hostname: s30-t15-sut1
+    password: $6$FIsbVDQR$5D0wgufOd2FtnmOiRNsGlgg6Loh.0x3dWSj72DSQnqisSyE9DROfgSgA6s0yxDwz4Jd5SRTXiTKuRYuSQ5POI1
+    realname: localadmin
+    username: localadmin
+  keyboard:
+    layout: us
+    toggle: null
+    variant: ''
+  locale: en_US.UTF-8
+  network:
+    ethernets:
+      eno1:
+        addresses: [ 10.30.51.30/24 ]
+        dhcp4: false
+        gateway4: 10.30.51.1
+        nameservers:
+          addresses: [ 1.1.1.1, 8.8.8.8 ]
+    version: 2
+  packages:
+    - python3
+  refresh-installer:
+    update: no
+  ssh:
+    allow-pw: true
+    authorized-keys: []
+    install-server: true
+  storage:
+    config:
+    - grub_device: false
+      id: disk-sda
+      path: /dev/sda
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - grub_device: false
+      id: disk-sdb
+      path: /dev/sdb
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - device: disk-sda
+      grub_device: true
+      id: partition-0
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      grub_device: true
+      id: partition-1
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - id: format-0
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-0
+    - id: format-1
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-1
+    - device: disk-sda
+      flag: ''
+      grub_device: false
+      id: partition-2
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      flag: ''
+      grub_device: false
+      id: partition-3
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - name: md0
+      raidlevel: raid1
+      devices: [partition-2, partition-3]
+      spare_devices: []
+      preserve: false
+      type: raid
+      id: raid-0
+    - fstype: ext4
+      id: format-2
+      preserve: false
+      type: format
+      volume: raid-0
+    - device: format-2
+      id: mount-1
+      path: /
+      type: mount
+    - device: format-0
+      id: mount-0
+      path: /boot/efi
+      type: mount
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/meta-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/meta-data
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/user-data b/fdio.infra/pxe/docker-nginx/html/ubuntu_jammy_amd64/7c:c2:55:55:c0:7a/user-data
new file mode 100644 (file)
index 0000000..5ea530e
--- /dev/null
@@ -0,0 +1,120 @@
+#cloud-config
+autoinstall:
+  version: 1
+  apt:
+    geoip: true
+    preserve_sources_list: false
+    primary:
+    - arches: [amd64, i386]
+      uri: http://ca.archive.ubuntu.com/ubuntu
+    - arches: [default]
+      uri: http://ports.ubuntu.com/ubuntu-ports
+  identity:
+    hostname: s22-nomad
+    password: $6$FIsbVDQR$5D0wgufOd2FtnmOiRNsGlgg6Loh.0x3dWSj72DSQnqisSyE9DROfgSgA6s0yxDwz4Jd5SRTXiTKuRYuSQ5POI1
+    realname: localadmin
+    username: localadmin
+  keyboard:
+    layout: us
+    toggle: null
+    variant: ''
+  locale: en_US.UTF-8
+  network:
+    ethernets:
+      eno1:
+        addresses: [ 10.30.51.22/24 ]
+        dhcp4: false
+        gateway4: 10.30.51.1
+        nameservers:
+          addresses: [ 1.1.1.1, 8.8.8.8 ]
+    version: 2
+  packages:
+    - python3
+  refresh-installer:
+    update: no
+  ssh:
+    allow-pw: true
+    authorized-keys: []
+    install-server: true
+  storage:
+    config:
+    - grub_device: false
+      id: disk-sda
+      path: /dev/sda
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - grub_device: false
+      id: disk-sdb
+      path: /dev/sdb
+      ptable: gpt
+      preserve: false
+      type: disk
+      wipe: superblock-recursive
+    - device: disk-sda
+      grub_device: true
+      id: partition-0
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      grub_device: true
+      id: partition-1
+      flag: boot
+      number: 1
+      preserve: false
+      size: 536870912
+      type: partition
+      wipe: superblock
+    - id: format-0
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-0
+    - id: format-1
+      fstype: fat32
+      preserve: false
+      type: format
+      volume: partition-1
+    - device: disk-sda
+      flag: ''
+      grub_device: false
+      id: partition-2
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - device: disk-sdb
+      flag: ''
+      grub_device: false
+      id: partition-3
+      number: 2
+      preserve: false
+      size: -1
+      type: partition
+      wipe: superblock
+    - name: md0
+      raidlevel: raid1
+      devices: [partition-2, partition-3]
+      spare_devices: []
+      preserve: false
+      type: raid
+      id: raid-0
+    - fstype: ext4
+      id: format-2
+      preserve: false
+      type: format
+      volume: raid-0
+    - device: format-2
+      id: mount-1
+      path: /
+      type: mount
+    - device: format-0
+      id: mount-0
+      path: /boot/efi
+      type: mount