Add ansible role for running puppet

Rather than embedding ansible roles inside of puppet modules (which is
mildly more than passing strange) make the ansible role a standalone
role that can be published to ansible galaxy.

Change-Id: I79a5a21278a1268e0e0011a874ff29c6980fd334
This commit is contained in:
Monty Taylor 2015-02-22 22:54:18 -05:00
parent 62870818d4
commit 66eaf7473b
7 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[access "refs/heads/*"]
abandon = group infra-core
label-Code-Review = -2..+2 group infra-core
label-Workflow = -1..+1 group infra-core
[access "refs/tags/*"]
pushSignedTag = group infra-core
[receive]
requireChangeId = true
[submit]
mergeContent = true

View File

@ -53,6 +53,13 @@
use-storyboard: true
description: Tech community metrics dash of the OpenStack community based on the Metrics Grimoire toolset
upstream: git://github.com/Bitergia/openstack-dashboard.git
- project: openstack-infra/ansible-puppet
use-storyboard: true
upstream: git://gitorious.org/mordred-temp/ansible-puppet.git
acl-config: /home/gerrit2/acls/openstack-infra/ansible-system.config
description: Ansible role for running puppet
groups:
- openstack-ci
- project: openstack-infra/askbot-theme
use-storyboard: true
groups:

View File

@ -8,6 +8,7 @@ openstack-infra:
- openstack-dev/hacking
- openstack-dev/pbr
- openstack-dev/specs-cookiecutter
- openstack-infra/ansible-puppet
- openstack-infra/askbot-theme
- openstack-infra/bugdaystats
- openstack-infra/devstack-gate

View File

@ -0,0 +1,19 @@
- job-template:
name: 'gate-{name}-ansible-lint'
node: '{node}'
builders:
- ansible-prep
- ansible-lint-prep
- revoke-sudo
- gerrit-git-prep
- ansible-syntax
- ansible-lint
publishers:
- console-log
- job-group:
name: 'ansible-lint-jobs'
jobs:
- 'gate-{name}-ansible-lint'

View File

@ -162,6 +162,35 @@
#!/bin/bash -xe
sudo scripts/gate-check-commit.sh
- builder:
name: ansible-prep
builders:
- shell: |
#!/bin/bash -xe
sudo -H pip install -U ansible
- builder:
name: ansible-syntax
builders:
- shell: |
#!/bin/bash -xe
cd tests
ansible-playbook --syntax-check -i inventory test.yml -e rolename=$(basename $(dirname $(pwd)))
- builder:
name: ansible-lint-prep
builders:
- shell: |
#!/bin/bash -xe
sudo -H pip install ansible-lint
- builder:
name: ansible-lint
builders:
- shell: |
#!/bin/bash -xe
ansible-lint **/*.yml
- builder:
name: ruby-191-prep
builders:

View File

@ -1915,6 +1915,14 @@
# Section: OpenStack infrastructure projects
########################################################################
- project:
name: ansible-puppet
node: 'bare-precise || bare-trusty'
tarball-site: tarballs.openstack.org
jobs:
- ansible-lint-jobs
- project:
name: bugdaystats
node: 'bare-precise || bare-trusty'

View File

@ -464,6 +464,12 @@ project-templates:
gate:
- noop
- name: ansible-lint-jobs
check:
- gate-{name}-ansible-lint
gate:
- gate-{name}-ansible-lint
- name: puppet-beaker-jobs
check:
- gate-{name}-puppet-beaker-rspec
@ -3145,6 +3151,11 @@ projects:
- name: merge-check
- name: noop-jobs
- name: openstack-infra/ansible-puppet
template:
- name: merge-check
- name: ansible-lint-jobs
- name: openstack-infra/askbot-theme
template:
- name: merge-check