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
|
- name: Create working directory
|
||||||
file:
|
file:
|
||||||
path: "{{atos_client_working_dir}}"
|
path: "{{ atos_client_working_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Download ATOS client ISO
|
- name: Download ATOS client ISO
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{atos_client_iso_location}}"
|
url: "{{ atos_client_iso_location }}"
|
||||||
dest: "{{atos_client_working_dir}}/{{atos_client_iso_name}}"
|
dest: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Mount the iso for ATOS
|
- name: Mount the iso for ATOS
|
||||||
mount:
|
mount:
|
||||||
path: /mnt/atos_iso
|
path: /mnt/atos_iso
|
||||||
src: "{{atos_client_working_dir}}/{{atos_client_iso_name}}"
|
src: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||||
fstype: iso9660
|
fstype: iso9660
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|
||||||
@ -37,7 +37,7 @@
|
|||||||
dest: /etc/proteccio/proteccio.rc
|
dest: /etc/proteccio/proteccio.rc
|
||||||
content: |
|
content: |
|
||||||
[PROTECCIO]
|
[PROTECCIO]
|
||||||
IPaddr={{atos_hsm_ip_address}}
|
IPaddr={{ atos_hsm_ip_address }}
|
||||||
SSL=1
|
SSL=1
|
||||||
SrvCert=server_cert.crt
|
SrvCert=server_cert.crt
|
||||||
|
|
||||||
@ -50,21 +50,21 @@
|
|||||||
|
|
||||||
- name: Get the client cert
|
- name: Get the client cert
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{atos_client_cert_location}}"
|
url: "{{ atos_client_cert_location }}"
|
||||||
dest: /etc/proteccio/proteccio_client.crt
|
dest: /etc/proteccio/proteccio_client.crt
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Get the client key
|
- name: Get the client key
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{atos_client_key_location}}"
|
url: "{{ atos_client_key_location }}"
|
||||||
dest: /etc/proteccio/proteccio_client.key
|
dest: /etc/proteccio/proteccio_client.key
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Get the server cert
|
- name: Get the server cert
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{atos_server_cert_location}}"
|
url: "{{ atos_server_cert_location }}"
|
||||||
dest: /etc/proteccio/server_cert.crt
|
dest: /etc/proteccio/server_cert.crt
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: run nethsmstatus to confirm connection
|
- name: run nethsmstatus to confirm connection # noqa 301
|
||||||
command: nethsmstatus
|
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…
x
Reference in New Issue
Block a user