summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-06-24 13:53:23 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2009-06-24 13:53:23 -0400
commit0e8242550cb29229a1f46bd7d5005cbe592cfd8c (patch)
treea23125f4d7b511d0b185b7142ae2ababf59220b2 /manifests/init.pp
downloadpuppet-reprepro-0e8242550cb29229a1f46bd7d5005cbe592cfd8c.tar.gz
puppet-reprepro-0e8242550cb29229a1f46bd7d5005cbe592cfd8c.tar.bz2
initial paste from micah
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp71
1 files changed, 71 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..e3b0e60
--- /dev/null
+++ b/manifests/init.pp
@@ -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
+
+}