]> xn--ix-yja.es Git - alex.git/commitdiff
Use default minimal Incus config instead of a faulty one
authoralex <alex@pdp7.net>
Sun, 6 Oct 2024 18:19:20 +0000 (20:19 +0200)
committeralexpdp7 <alex@corcoles.net>
Sun, 6 Oct 2024 18:21:21 +0000 (20:21 +0200)
personal_infra/puppet/modules/incus/manifests/init.pp
personal_infra/puppet/site/hideo.mad.int.pdp7.net.pp

index 7791ad99669b28330f449c25e3be5bea7799fa87..1d30a403d81842496a74de41cf218ca11cf96ebb 100644 (file)
@@ -1,4 +1,4 @@
-class incus($network_device) {
+class incus {
   file {'/etc/apt/keyrings/zabbly.asc':
     content => @(EOT)
     -----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -70,45 +70,7 @@ class incus($network_device) {
   ->
   package {'incus':}
 
-  file {'/etc/incus.puppet':
-    content => @("EOT")
-    config: {}
-    networks:
-    - config:
-        ipv4.address: auto
-        ipv6.address: auto
-      description: ""
-      name: incusbr0
-      type: ""
-      project: default
-    storage_pools:
-    - config: {}
-      description: ""
-      name: default
-      driver: dir
-    profiles:
-    - config: {}
-      description: ""
-      devices:
-        eth0:
-          name: $network_device
-          network: incusbr0
-          type: nic
-        root:
-          path: /
-          pool: default
-          type: disk
-      name: default
-    projects: []
-    cluster: null
-    | EOT
-    ,
-  }
-
-  exec {'/usr/bin/incus admin init --preseed </etc/incus.puppet':
-    require => [
-      File['/etc/incus.puppet'],
-      Package['incus'],
-    ],
+  exec {'/usr/bin/incus admin init --minimal':
+    require => Package['incus'],
   }
 }
index 3b027cbc83336fe95062506f9897014656b02bf0..033c910fcbd2a7a60776b9a68b7136498ef7cdf0 100644 (file)
@@ -1,7 +1,5 @@
 node 'hideo.mad.int.pdp7.net' {
   class {'workstation':}
-  class {'incus':
-    network_device => 'wlp3s0',
-  }
+  class {'incus':}
   package {['zfs-dkms', 'sanoid']:}
 }