Add gate config
This patch adds gerrit configuration as well as an ansible-lint gate job. Change-Id: I13b5a6505195591f7d6471ebe151cc8ed03eae75
This commit is contained in:
parent
485a4bb8f7
commit
f6f9c3f3df
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
||||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/ansible-role-atos-hsm.git
|
@ -1,20 +1,20 @@
|
||||
---
|
||||
- name: Create working directory
|
||||
file:
|
||||
path: "{{atos_client_working_dir}}"
|
||||
path: "{{ atos_client_working_dir }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Download ATOS client ISO
|
||||
get_url:
|
||||
url: "{{atos_client_iso_location}}"
|
||||
dest: "{{atos_client_working_dir}}/{{atos_client_iso_name}}"
|
||||
url: "{{ atos_client_iso_location }}"
|
||||
dest: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||
force: no
|
||||
|
||||
- name: Mount the iso for ATOS
|
||||
mount:
|
||||
path: /mnt/atos_iso
|
||||
src: "{{atos_client_working_dir}}/{{atos_client_iso_name}}"
|
||||
src: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||
fstype: iso9660
|
||||
state: mounted
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
dest: /etc/proteccio/proteccio.rc
|
||||
content: |
|
||||
[PROTECCIO]
|
||||
IPaddr={{atos_hsm_ip_address}}
|
||||
IPaddr={{ atos_hsm_ip_address }}
|
||||
SSL=1
|
||||
SrvCert=server_cert.crt
|
||||
|
||||
@ -50,21 +50,21 @@
|
||||
|
||||
- name: Get the client cert
|
||||
get_url:
|
||||
url: "{{atos_client_cert_location}}"
|
||||
url: "{{ atos_client_cert_location }}"
|
||||
dest: /etc/proteccio/proteccio_client.crt
|
||||
force: no
|
||||
|
||||
- name: Get the client key
|
||||
get_url:
|
||||
url: "{{atos_client_key_location}}"
|
||||
url: "{{ atos_client_key_location }}"
|
||||
dest: /etc/proteccio/proteccio_client.key
|
||||
force: no
|
||||
|
||||
- name: Get the server cert
|
||||
get_url:
|
||||
url: "{{atos_server_cert_location}}"
|
||||
url: "{{ atos_server_cert_location }}"
|
||||
dest: /etc/proteccio/server_cert.crt
|
||||
force: no
|
||||
|
||||
- name: run nethsmstatus to confirm connection
|
||||
- name: run nethsmstatus to confirm connection # noqa 301
|
||||
command: nethsmstatus
|
||||
|
1
test-requirements.txt
Normal file
1
test-requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
ansible-lint
|
10
tox.ini
Normal file
10
tox.ini
Normal file
@ -0,0 +1,10 @@
|
||||
[tox]
|
||||
minversion = 2.0
|
||||
envlist = linters
|
||||
skipdist = true
|
||||
|
||||
[testenv]
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:linters]
|
||||
commands = ansible-lint {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…
Reference in New Issue
Block a user