Add gate config
This patch adds gerrit configuration as well as an ansible-lint gate job. Change-Id: I1585516e8caf5db82cbab6fd34e29c9fc219f85f
This commit is contained in:
parent
369ac53a5a
commit
3076482fda
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.tox/
|
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/ansible-role-thales-hsm.git
|
@ -39,7 +39,7 @@
|
|||||||
args:
|
args:
|
||||||
creates: /opt/nfast/sbin/install
|
creates: /opt/nfast/sbin/install
|
||||||
|
|
||||||
- name: run installer
|
- name: run installer # noqa 306
|
||||||
shell: echo "1" | /opt/nfast/sbin/install
|
shell: echo "1" | /opt/nfast/sbin/install
|
||||||
args:
|
args:
|
||||||
creates: /opt/nfast/kmdata
|
creates: /opt/nfast/kmdata
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
script: "{{ role_path }}/files/add_ips.py --config-dir /opt/nfast/kmdata/{{ thales_hsm_config_location }}/config --ips {{ thales_client_ips }}"
|
script: "{{ role_path }}/files/add_ips.py --config-dir /opt/nfast/kmdata/{{ thales_hsm_config_location }}/config --ips {{ thales_client_ips }}"
|
||||||
|
|
||||||
- name: push new config to the HSM and check that it was successful
|
- name: push new config to the HSM and check that it was successful
|
||||||
shell: "/opt/nfast/bin/cfg-pushnethsm -a {{thales_hsm_ip_address}} /opt/nfast/kmdata/{{thales_hsm_config_location}}/config/config.new && sleep 5 && diff /opt/nfast/kmdata/{{thales_hsm_config_location}}/config/config /opt/nfast/kmdata/{{thales_hsm_config_location}}/config/config.new"
|
shell: "/opt/nfast/bin/cfg-pushnethsm -a {{ thales_hsm_ip_address }} /opt/nfast/kmdata/{{ thales_hsm_config_location }}/config/config.new && sleep 5 && diff /opt/nfast/kmdata/{{ thales_hsm_config_location }}/config/config /opt/nfast/kmdata/{{ thales_hsm_config_location }}/config/config.new" # noqa 204
|
||||||
register: result
|
register: result
|
||||||
until: result.rc == 0
|
until: result.rc == 0
|
||||||
retries: 10
|
retries: 10
|
||||||
|
1
test-requirements.txt
Normal file
1
test-requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ansible-lint
|
11
tox.ini
Normal file
11
tox.ini
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[tox]
|
||||||
|
minversion = 2.0
|
||||||
|
envlist = linters
|
||||||
|
skipdist = true
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
|
[testenv:linters]
|
||||||
|
# TODO(redrobot): Don't ignore 301
|
||||||
|
commands = ansible-lint -x 301 {toxinidir}
|
11
zuul.d/layout.yaml
Normal file
11
zuul.d/layout.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- project:
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-linters
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- openstack-tox-linters
|
||||||
|
post:
|
||||||
|
jobs:
|
||||||
|
- publish-openstack-python-branch-tarball
|
Loading…
x
Reference in New Issue
Block a user