From 74a2cdd0ec4e31cf99a386d3b956ae5dbaee2b85 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 1 Jul 2021 14:24:05 +0300 Subject: [PATCH] Add integrated linters test Change-Id: Id0de75860060474ce470bcf17b4204fa0604c29d --- examples/playbook.yml | 35 ++++++++++++++++++++++++++--------- zuul.d/project.yaml | 1 + 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/examples/playbook.yml b/examples/playbook.yml index 02a6cd5..f9467bc 100644 --- a/examples/playbook.yml +++ b/examples/playbook.yml @@ -1,10 +1,27 @@ -.. code-block:: yaml +--- - - name: Create a systemd unit file for ServiceX - hosts: localhost - become: true - roles: - - role: "systemd_service" - systemd_services: - - service_name: ServiceX - config_overrides: {} +- name: Create a systemd unit file for ServiceX + hosts: localhost + become: true + roles: + - role: "systemd_service" + systemd_services: + - service_name: "test oneshot service1" + config_overrides: + Unit: + Description: Test oneshot service + After: network-online.target + Wants: network-online.target + Service: + RemainAfterExit: yes + service_type: oneshot + execstarts: + - "/bin/bash -c 'echo start1'" + - "/bin/bash -c 'echo start2'" + execstops: + - "/bin/bash -c 'echo stop1'" + - "/bin/bash -c 'echo stop2'" + enabled: yes + state: started + systemd_tempd_prefix: openstack + systemd_lock_path: /var/lock/networking diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 6f43369..7e93cb3 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -15,6 +15,7 @@ - project: templates: + - openstack-ansible-linters-jobs - openstack-ansible-role-jobs - openstack-ansible-deploy-aio_metal-jobs - openstack-ansible-deploy-aio_distro_metal-jobs