move the ubc-enc2bl01 LVM config to a profile included via hiera using the new LVM...
authorPeter Palfrader <peter@palfrader.org>
Thu, 29 Aug 2019 15:56:31 +0000 (17:56 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 29 Aug 2019 15:56:31 +0000 (17:56 +0200)
hieradata/nodes/ubc-enc2bl01.debian.org.yaml [new file with mode: 0644]
modules/dsa_lvm/manifests/init.pp
modules/profile/manifests/lvm/ganeti2_ubc.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/ubc-enc2bl01.debian.org.yaml b/hieradata/nodes/ubc-enc2bl01.debian.org.yaml
new file mode 100644 (file)
index 0000000..f7e9e4f
--- /dev/null
@@ -0,0 +1,2 @@
+classes:
+  - profile::lvm::ganeti2_ubc
index 6cc7e01..ffac6d6 100644 (file)
@@ -17,7 +17,7 @@ class dsa_lvm {
                                'prokofiev': {
                                        $conffile = 'lvm-prokofiev.conf'
                                }
-                               'ubc-enc2bl01','ubc-enc2bl02','ubc-enc2bl09','ubc-enc2bl10': {
+                               'XXXubc-enc2bl01','ubc-enc2bl02','ubc-enc2bl09','ubc-enc2bl10': {
                                        $conffile = 'lvm-ubc-ganeti2.conf'
                                }
                                'conova-node01','conova-node02': {
diff --git a/modules/profile/manifests/lvm/ganeti2_ubc.pp b/modules/profile/manifests/lvm/ganeti2_ubc.pp
new file mode 100644 (file)
index 0000000..04fe515
--- /dev/null
@@ -0,0 +1,6 @@
+# LVM config for the ~2016 blades that make up ganeti2.ubc.debian.org
+class profile::lvm::ganeti2_ubc {
+  class { 'lvm':
+    global_filter  => '[ "a|^/dev/sda[0-9]*$|", "r/.*/" ]',
+  }
+}