From 6e689b12fcdaa65c09eed57dc80f747a19828b5b Mon Sep 17 00:00:00 2001
From: Julia Kreger <juliaashleykreger@gmail.com>
Date: Mon, 11 May 2015 14:23:05 -0400
Subject: [PATCH] Add bifrost to OpenStack

Request to add bifrost repository and testing configuration.

Change-Id: I5c113058316f5a0d5069e3a21684a359f4203ddf
Depends-On: I2552803a1da44312a0e8879629036a23d89e2e2a
---
 gerrit/acls/openstack/bifrost.config | 14 ++++++++++++++
 gerrit/projects.yaml                 |  5 +++++
 gerritbot/channels.yaml              |  1 +
 jenkins/jobs/bifrost.yaml            | 13 +++++++++++++
 zuul/layout.yaml                     |  8 ++++++++
 5 files changed, 41 insertions(+)
 create mode 100644 gerrit/acls/openstack/bifrost.config
 create mode 100644 jenkins/jobs/bifrost.yaml

diff --git a/gerrit/acls/openstack/bifrost.config b/gerrit/acls/openstack/bifrost.config
new file mode 100644
index 0000000000..05c8e9510f
--- /dev/null
+++ b/gerrit/acls/openstack/bifrost.config
@@ -0,0 +1,14 @@
+[access "refs/heads/*"]
+abandon = group bifrost-core
+label-Code-Review = -2..+2 group bifrost-core
+label-Workflow = -1..+1 group bifrost-core
+
+[access "refs/tags/*"]
+pushSignedTag = group ironic-release
+
+[receive]
+requireChangeId = true
+requireContributorAgreement = true
+
+[submit]
+mergeContent = true
diff --git a/gerrit/projects.yaml b/gerrit/projects.yaml
index 4dd323338e..0f4aa35a2e 100755
--- a/gerrit/projects.yaml
+++ b/gerrit/projects.yaml
@@ -734,6 +734,11 @@
     and management of secrets, including in OpenStack environments.
 - project: openstack/barbican-specs
   description: Blueprints for the barbican project
+- project: openstack/bifrost
+  description: Ansible roles and playbooks to enable a standalone Ironic install
+  upstream: git://github.com/juliakreger/bifrost.git
+  groups:
+    - ironic
 - project: openstack/castellan
   description: Generic Key Manager interface for OpenStack
 - project: openstack/ceilometer
diff --git a/gerritbot/channels.yaml b/gerritbot/channels.yaml
index 5334c0201c..9bd4a1a2de 100644
--- a/gerritbot/channels.yaml
+++ b/gerritbot/channels.yaml
@@ -633,6 +633,7 @@ openstack-ironic:
       - openstack/ironic-lib
       - openstack/ironic-specs
       - openstack/ironic-python-agent
+      - openstack/bifrost
       - openstack/python-ironicclient
       - openstack/coreos-image-builder
       - stackforge/pyghmi
diff --git a/jenkins/jobs/bifrost.yaml b/jenkins/jobs/bifrost.yaml
new file mode 100644
index 0000000000..3c6df2b4dd
--- /dev/null
+++ b/jenkins/jobs/bifrost.yaml
@@ -0,0 +1,13 @@
+- job:
+    name: 'gate-bifrost'
+    node: 'bare-trusty'
+
+    builders:
+      - link-logs
+      - net-info
+      - gerrit-git-prep
+      - shell: |
+          scripts/test-bifrost.sh
+
+    publishers:
+      - console-log
diff --git a/zuul/layout.yaml b/zuul/layout.yaml
index 440ea1d832..f0a6234bdf 100755
--- a/zuul/layout.yaml
+++ b/zuul/layout.yaml
@@ -1394,6 +1394,14 @@ projects:
       - name: merge-check
       - name: openstack-specs-jobs
 
+  - name: openstack/bifrost
+    template:
+      - name: merge-check
+    check:
+      - gate-bifrost
+    gate:
+      - gate-bifrost
+
   - name: openstack/ceilometer
     template:
       - name: merge-check