From 4ccb2e7fd4828fd49b41feda5bd77123806f9b22 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@openstack.org>
Date: Mon, 12 Aug 2013 15:24:00 -0700
Subject: [PATCH] Add nodepool project

Change-Id: I433c794b53e26a34bb78e7ac198d1fc7b39e501c
---
 .../files/gerritbot_channel_config.yaml          |  1 +
 .../gerrit/acls/openstack-infra/nodepool.config  | 14 ++++++++++++++
 .../jenkins_job_builder/config/projects.yaml     | 11 +++++++++++
 modules/openstack_project/files/zuul/layout.yaml | 16 ++++++++++++++++
 .../templates/review.projects.yaml.erb           |  2 ++
 5 files changed, 44 insertions(+)
 create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-infra/nodepool.config

diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml
index 68c2c741de..90c3ae49e1 100644
--- a/modules/gerritbot/files/gerritbot_channel_config.yaml
+++ b/modules/gerritbot/files/gerritbot_channel_config.yaml
@@ -21,6 +21,7 @@ openstack-infra:
       - openstack-infra/jenkins-job-builder
       - openstack-infra/lodgeit
       - openstack-infra/meetbot
+      - openstack-infra/nodepool
       - openstack-infra/nose-html-output
       - openstack-infra/odsreg
       - openstack-infra/publications
diff --git a/modules/openstack_project/files/gerrit/acls/openstack-infra/nodepool.config b/modules/openstack_project/files/gerrit/acls/openstack-infra/nodepool.config
new file mode 100644
index 0000000000..4284167863
--- /dev/null
+++ b/modules/openstack_project/files/gerrit/acls/openstack-infra/nodepool.config
@@ -0,0 +1,14 @@
+[access "refs/for/refs/*"]
+        pushMerge = group openstack-ci-core
+[access "refs/heads/*"]
+        label-Code-Review = -2..+2 group openstack-ci-core
+        label-Approved = +0..+1 group openstack-ci-core
+[access "refs/tags/*"]
+        create = group openstack-ci-core
+        pushTag = group openstack-ci-core
+[project]
+        state = active
+[receive]
+        requireChangeId = true
+[submit]
+        mergeContent = true
diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
index a4fe89b1b3..6bd035019d 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
@@ -445,6 +445,17 @@
       - api-jobs
 
 
+- project:
+    name: nodepool
+    github-org: openstack-infra
+    node: precise
+    tarball-site: tarballs.openstack.org
+
+    jobs:
+      - python-jobs
+      - pypi-jobs
+
+
 - project:
     name: nose-html-output
     github-org: openstack-infra
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 0939d98634..98ff1aa536 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -249,6 +249,22 @@ projects:
     gate:
       - gate-noop
 
+  - name: openstack-infra/nodepool
+    check:
+      - gate-noop
+    gate:
+      - gate-noop
+    post:
+      - nodepool-branch-tarball
+    pre-release:
+      - nodepool-tarball
+    release:
+      - nodepool-tarball:
+        - nodepool-pypi-upload:
+          - post-mirror-python26
+          - post-mirror-python27
+          - post-mirror-python33
+
   - name: openstack-infra/nose-html-output
     check:
       - gate-noop
diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb
index a70bab6aca..a1601a91d3 100644
--- a/modules/openstack_project/templates/review.projects.yaml.erb
+++ b/modules/openstack_project/templates/review.projects.yaml.erb
@@ -37,6 +37,8 @@
 - project: openstack-infra/jenkins-job-builder
 - project: openstack-infra/lodgeit
 - project: openstack-infra/meetbot
+- project: openstack-infra/nodepool
+  description: Manage a pool of nodes for a distributed test infrastructure
 - project: openstack-infra/nose-html-output
 - project: openstack-infra/publications
   description: "OpenStack Infra Team conference presentations and papers"