aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-04-05 21:44:15 +0000
committerNicolas Vigier <boklm@mageia.org>2012-04-05 21:44:15 +0000
commitb8a99f82811461e81fb08ee4939af73e642961ce (patch)
treecfe91378588cb2b0e2fed1e3ab99e98534e9d5e5 /modules
parent2808e491d7d933fb1e6826bb697f8d05cd5b5c3c (diff)
downloadpuppet-b8a99f82811461e81fb08ee4939af73e642961ce.tar
puppet-b8a99f82811461e81fb08ee4939af73e642961ce.tar.gz
puppet-b8a99f82811461e81fb08ee4939af73e642961ce.tar.bz2
puppet-b8a99f82811461e81fb08ee4939af73e642961ce.tar.xz
puppet-b8a99f82811461e81fb08ee4939af73e642961ce.zip
add repoctl class
Diffstat (limited to 'modules')
-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