]> xn--ix-yja.es Git - alex.git/commitdiff
Add weed.h1.int.pdp7.net
authoralex <alex@pdp7.net>
Thu, 14 Mar 2024 15:14:59 +0000 (16:14 +0100)
committeralex <alex@pdp7.net>
Thu, 14 Mar 2024 15:15:15 +0000 (16:15 +0100)
personal_infra/puppet/modules/seaweedfs/manifests/init.pp [new file with mode: 0644]
personal_infra/puppet/site/weed.h1.int.pdp7.net.pp [new file with mode: 0644]

diff --git a/personal_infra/puppet/modules/seaweedfs/manifests/init.pp b/personal_infra/puppet/modules/seaweedfs/manifests/init.pp
new file mode 100644 (file)
index 0000000..9c598c7
--- /dev/null
@@ -0,0 +1,24 @@
+class seaweedfs {
+    file {'/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:koalillo:seaweedfs.repo':
+      content => @(EOT)
+      [copr:copr.fedorainfracloud.org:koalillo:seaweedfs]
+      name=Copr repo for seaweedfs owned by koalillo
+      baseurl=https://download.copr.fedorainfracloud.org/results/koalillo/seaweedfs/rhel-9-$basearch/
+      type=rpm-md
+      skip_if_unavailable=True
+      gpgcheck=1
+      gpgkey=https://download.copr.fedorainfracloud.org/results/koalillo/seaweedfs/pubkey.gpg
+      repo_gpgcheck=0
+      enabled=1
+      enabled_metadata=1
+      | EOT
+      ,
+    }
+    ->
+    package {'seaweedfs':}
+    ->
+    service {'weed':
+        ensure => running,
+        enable => true,
+    }
+}
diff --git a/personal_infra/puppet/site/weed.h1.int.pdp7.net.pp b/personal_infra/puppet/site/weed.h1.int.pdp7.net.pp
new file mode 100644 (file)
index 0000000..7929380
--- /dev/null
@@ -0,0 +1,3 @@
+node 'weed.h1.int.pdp7.net' {
+  class {'seaweedfs':}
+}