Merge "Add ansible role for running puppet"
This commit is contained in:
commit
7dea1be045
13
gerrit/acls/openstack-infra/ansible-system.config
Normal file
13
gerrit/acls/openstack-infra/ansible-system.config
Normal 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
|
@ -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:
|
||||
|
@ -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
|
||||
|
19
jenkins/jobs/ansible-role-jobs.yaml
Normal file
19
jenkins/jobs/ansible-role-jobs.yaml
Normal 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'
|
@ -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:
|
||||
|
@ -1910,6 +1910,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'
|
||||
|
@ -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
|
||||
@ -3150,6 +3156,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
|
||||
|
Loading…
Reference in New Issue
Block a user