summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp28
1 files changed, 14 insertions, 14 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 7c69680..2fc1bbb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -65,20 +65,15 @@ class reprepro (
ensure => directory,
mode => '0775',
}
- file { "$basedir/conf/distributions":
- ensure => present,
- }
file { "$basedir/conf/uploaders":
mode => '0660', owner => root,
content => template("reprepro/uploaders.erb"),
}
- file { "$basedir/conf/incoming":
- ensure => present,
- }
file { "$basedir/index.html":
mode => '0664', owner => root,
content => template("reprepro/index.html.erb"),
}
+
file { "$basedir/.gnupg":
mode => '0700',
ensure => directory,
@@ -94,7 +89,17 @@ class reprepro (
group => root,
mode => '0755',
}
+ exec { "/usr/local/bin/reprepro-export-key":
+ creates => "$basedir/key.asc",
+ user => reprepro,
+ subscribe => File["$basedir/.gnupg/secring.gpg"],
+ require => File["/usr/local/bin/reprepro-export-key"],
+ }
+
+ file { "$basedir/conf/distributions":
+ ensure => present,
+ }
if $manage_distributions_conf {
File["$basedir/conf/distributions"] {
owner => root,
@@ -116,6 +121,9 @@ class reprepro (
}
}
+ file { "$basedir/conf/incoming":
+ ensure => present,
+ }
if $manage_incoming_conf {
File["$basedir/conf/incoming"] {
mode => '0664',
@@ -178,14 +186,6 @@ class reprepro (
File["$basedir/incoming"] ],
}
- exec {
- "/usr/local/bin/reprepro-export-key":
- creates => "$basedir/key.asc",
- user => reprepro,
- subscribe => File["$basedir/.gnupg/secring.gpg"],
- require => File["/usr/local/bin/reprepro-export-key"],
- }
-
# TODO: setup needeed lines in apache site config file
}