]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
initial paste from micah
authorAntoine Beaupre <anarcat@koumbit.org>
Wed, 24 Jun 2009 17:53:23 +0000 (13:53 -0400)
committerAntoine Beaupre <anarcat@koumbit.org>
Wed, 24 Jun 2009 17:53:23 +0000 (13:53 -0400)
manifests/init.pp [new file with mode: 0644]

diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..e3b0e60
--- /dev/null
@@ -0,0 +1,71 @@
+class reprepro {
+
+  package {
+    "reprepro":
+      ensure => '3.9.2-1~bpo40+1';
+
+    "inoticoming":
+      ensure => '0.2.0-1~bpo40+1';
+  }
+
+  group { "reprepro":
+    ensure => "present",
+  }
+
+
+  file {
+    "/srv/reprepro":
+    ensure => directory,
+    mode => 0771, owner => root, group => reprepro;
+
+    "/srv/reprepro/conf":
+    ensure => directory,
+    mode => 0770, owner => root, group => reprepro;
+
+    "/srv/reprepro/db":
+    ensure => directory,
+    mode => 0770, owner => root, group => reprepro;
+
+    "/srv/reprepro/dists":
+    ensure => directory,
+    mode => 0775, owner => root, group => reprepro;
+
+    "/srv/reprepro/pool":
+    ensure => directory,
+    mode => 0775, owner => root, group => reprepro;
+
+    "/srv/reprepro/incoming":
+    ensure => directory,
+    mode => 0775, owner => root, group => reprepro;
+
+    "/srv/reprepro/logs":
+    ensure => directory,
+    mode => 0775, owner => root, group => reprepro;
+
+    "/srv/reprepro/tmp":
+    ensure => directory,
+    mode => 0775, owner => root, group => reprepro;
+
+    "/srv/reprepro/conf/distributions":
+    mode => 0664, owner => root, group => reprepro,
+    source => "$fileserver/reprepro/distributions";
+
+    "/srv/reprepro/conf/uploaders":
+    mode => 0660, owner => root, group => reprepro,
+    source => "$fileserver/reprepro/uploaders";
+
+    "/srv/reprepro/conf/incoming":
+    mode => 0664, owner => root, group => reprepro,
+    source => "$fileserver/reprepro/incoming";
+
+    "/srv/reprepro/index.html":
+    mode => 0664, owner => root, group => reprepro,
+    source => "$fileserver/reprepro/index.html";
+  }
+
+# TODO: additional things this class could do
+# setup inotincoming cronjob
+# ensure it stays running
+# setup needeed lines in apache site config file
+
+}