From d5bf6ad6096103a25789d4f80bdf2c65476c19a6 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 27 May 2014 10:52:17 -0400 Subject: [PATCH] Import puppet-yum project Adds a new yum module which can be used to manage individual yum::repo's with puppet. This approach uses reposync and createrepo to provide a lightweight HTTP based local Yum repo syncing mechanism. The resulting directories are hosted in /srv/yum_repos/ via Apache. This will be useful for TripleO where we heavily leverage Fedora Yum repos for disk image building. Tested on a Centos 6.5 host machine. Change-Id: Ice268e404df7c7608a5cb733ea65050e705ff2ab --- modules/gerritbot/files/gerritbot_channel_config.yaml | 2 ++ .../files/gerrit/acls/openstack-infra/puppet-yum.config | 9 +++++++++ modules/openstack_project/files/review.projects.yaml | 3 +++ modules/openstack_project/files/zuul/layout.yaml | 8 ++++++++ 4 files changed, 22 insertions(+) create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-infra/puppet-yum.config diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml index a8ebd689c9..1e49ec2a75 100644 --- a/modules/gerritbot/files/gerritbot_channel_config.yaml +++ b/modules/gerritbot/files/gerritbot_channel_config.yaml @@ -36,6 +36,7 @@ openstack-infra: - openstack-infra/puppet-dashboard - openstack-infra/puppet-storyboard - openstack-infra/puppet-vcsrepo + - openstack-infra/puppet-yum - openstack-infra/pypi-mirror - openstack-infra/release-tools - openstack-infra/releasestatus @@ -679,6 +680,7 @@ openstack-merges: - openstack-infra/puppet-dashboard - openstack-infra/puppet-storyboard - openstack-infra/puppet-vcsrepo + - openstack-infra/puppet-yum - openstack-infra/pypi-mirror - openstack-infra/releasestatus - openstack-infra/reviewday diff --git a/modules/openstack_project/files/gerrit/acls/openstack-infra/puppet-yum.config b/modules/openstack_project/files/gerrit/acls/openstack-infra/puppet-yum.config new file mode 100644 index 0000000000..ce648b382a --- /dev/null +++ b/modules/openstack_project/files/gerrit/acls/openstack-infra/puppet-yum.config @@ -0,0 +1,9 @@ +[access "refs/heads/*"] + label-Code-Review = -2..+2 group openstack-ci-core + label-Workflow = -1..+1 group openstack-ci-core + abandon = group openstack-ci-core +[receive] + requireChangeId = true + requireContributorAgreement = true +[submit] + mergeContent = true diff --git a/modules/openstack_project/files/review.projects.yaml b/modules/openstack_project/files/review.projects.yaml index f553f529f0..fe5be2565e 100644 --- a/modules/openstack_project/files/review.projects.yaml +++ b/modules/openstack_project/files/review.projects.yaml @@ -155,6 +155,9 @@ group: openstack-ci - project: openstack-infra/puppet-vcsrepo group: openstack-ci +- project: openstack-infra/puppet-yum + group: openstack-ci + upstream: git://github.com/dprince/puppet-yum.git - project: openstack-infra/pypi-mirror group: openstack-ci upstream: git://github.com/openstack-infra/jeepyb.git diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 0786a10e1f..fd1e3da86d 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -3163,6 +3163,14 @@ projects: gate: - noop + - name: openstack-infra/puppet-yum + check: + - gate-config-puppet-lint + - gate-config-puppet-syntax + gate: + - gate-config-puppet-lint + - gate-config-puppet-syntax + - name: openstack-infra/pypi-mirror check: - gate-pypi-mirror-pep8