diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:06:09 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-23 15:06:09 +0000 |
commit | 94e021f7c2b864b28586047406a3733b6842c2d2 (patch) | |
tree | 068e69b43ef23deb04da79ea3834f2525c91053f /modules/buildsystem/templates | |
parent | 4a4ee5ee392952af0765c4910b40b9de0fbe349a (diff) | |
download | puppet-94e021f7c2b864b28586047406a3733b6842c2d2.tar puppet-94e021f7c2b864b28586047406a3733b6842c2d2.tar.gz puppet-94e021f7c2b864b28586047406a3733b6842c2d2.tar.bz2 puppet-94e021f7c2b864b28586047406a3733b6842c2d2.tar.xz puppet-94e021f7c2b864b28586047406a3733b6842c2d2.zip |
Remove buildsystem::config
Update repoctl config to use infos from buildsystem::var::distros
instead of buildsystem::config.
Diffstat (limited to 'modules/buildsystem/templates')
-rw-r--r-- | modules/buildsystem/templates/repoctl.conf | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/modules/buildsystem/templates/repoctl.conf b/modules/buildsystem/templates/repoctl.conf index e72d4c4e..9bd60836 100644 --- a/modules/buildsystem/templates/repoctl.conf +++ b/modules/buildsystem/templates/repoctl.conf @@ -2,6 +2,21 @@ bootstrap_root = scope.lookupvar('buildsystem::var::repository::bootstrap_root') mirror_root = scope.lookupvar('buildsystem::var::repository::mirror_root') distribdir = scope.lookupvar('buildsystem::var::repository::distribdir') +distros = scope.lookupvar('buildsystem::var::distros::distros') +arches = {} +distrosections = {} +sectionsrepos = {} +distros.each{|distroname, distro| + distro['medias'].each{|medianame, media| + distrosections[medianame] = 1 + media['repos'].each{|reponame, repo| + sectionsrepos[reponame] = 1 + } + } + distro['arch'].each{|arch| + arches[arch] = 1 + } +} -%> dryrun=echo if [ -z $SUDO_USER ] @@ -16,10 +31,10 @@ rootdir=<%= bootstrap_root %> finalrootdir=<%= mirror_root %> distribdir=$rootdir/<%= distribdir %> finaldistribdir=$finalrootdir/<%= distribdir %> -distroreleases='<%= distroreleases.flatten.join(' ') -%>' -distrosections='<%= distrosections.flatten.join(' ') -%>' -sectionsrepos='<%= sectionsrepos.flatten.join(' ') -%>' -arches='<%= arches.flatten.join(' ') -%>' +distroreleases='<%= distros.keys.sort.join(' ') -%>' +distrosections='<%= distrosections.keys.sort.join(' ') -%>' +sectionsrepos='<%= sectionsrepos.keys.sort.join(' ') -%>' +arches='<%= arches.keys.sort.join(' ') -%>' mirror_rsync_options="-v --delete -alH" timestampfile="mageia_timestamp" sha1sumfile="mageia_sha1sum" |