Merge "Add ansible role for running puppet"

This commit is contained in:
Jenkins 2015-02-25 14:38:59 +00:00 committed by Gerrit Code Review
commit 7dea1be045
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 use-storyboard: true
description: Tech community metrics dash of the OpenStack community based on the Metrics Grimoire toolset description: Tech community metrics dash of the OpenStack community based on the Metrics Grimoire toolset
upstream: git://github.com/Bitergia/openstack-dashboard.git 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 - project: openstack-infra/askbot-theme
use-storyboard: true use-storyboard: true
groups: groups:

View File

@ -8,6 +8,7 @@ openstack-infra:
- openstack-dev/hacking - openstack-dev/hacking
- openstack-dev/pbr - openstack-dev/pbr
- openstack-dev/specs-cookiecutter - openstack-dev/specs-cookiecutter
- openstack-infra/ansible-puppet
- openstack-infra/askbot-theme - openstack-infra/askbot-theme
- openstack-infra/bugdaystats - openstack-infra/bugdaystats
- openstack-infra/devstack-gate - 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 #!/bin/bash -xe
sudo scripts/gate-check-commit.sh 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: - builder:
name: ruby-191-prep name: ruby-191-prep
builders: builders:

View File

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

View File

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