aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/repoctl.pp22
-rw-r--r--modules/buildsystem/templates/repoctl.conf22
2 files changed, 44 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/repoctl.pp b/modules/buildsystem/manifests/repoctl.pp
new file mode 100644
index 00000000..3f52b79d
--- /dev/null
+++ b/modules/buildsystem/manifests/repoctl.pp
@@ -0,0 +1,22 @@
+class buildsystem::repoctl {
+ include buildsystem::config
+
+ $distroreleases = [$buildsystem::config::dev_distros,
+ $buildsystem::config::stable_distros]
+ $distrosections = $buildsystem::config::distrosections
+ $sectionsrepos = $buildsystem::config::sectionsrepos
+ $arches = $buildsystem::config::architectures
+
+ package{'repoctl':
+ ensure => installed,
+ }
+
+ file {'/etc/repoctl.conf':
+ ensure => present,
+ mode => 644,
+ owner => root,
+ group => root,
+ content => template('buildsystem/repoctl.conf'),
+ require => Package['repoctl'],
+ }
+}
diff --git a/modules/buildsystem/templates/repoctl.conf b/modules/buildsystem/templates/repoctl.conf
new file mode 100644
index 00000000..a538fcde
--- /dev/null
+++ b/modules/buildsystem/templates/repoctl.conf
@@ -0,0 +1,22 @@
+dryrun=echo
+if [ -z $SUDO_USER ]
+then
+ requestuser="$USER"
+else
+ requestuser="$SUDO_USER"
+fi
+lockdir=/var/lib/repoctl/locks
+hdlistsdir=/var/lib/repoctl/hdlists
+rootdir=/distrib/bootstrap
+finalrootdir=/distrib/mirror
+distribdir=$rootdir/distrib
+finaldistribdir=$finalrootdir/distrib
+distroreleases='<%= distroreleases.flatten.join(' ') -%>'
+distrosections='<%= distrosections.flatten.join(' ') -%>'
+sectionsrepos='<%= sectionsrepos.flatten.join(' ') -%>'
+arches='<%= arches.flatten.join(' ') -%>'
+mirror_rsync_options="-v --delete -alH"
+timestampfile="mageia_timestamp"
+sha1sumfile="mageia_sha1sum"
+sha1sumsigfile="mageia_sha1sum.gpg"
+sign_mirror_sha1sum=/bin/true