Adds a job to test ELK using a clustered setup
This job will created an ELK cluster using nspawn containers. Change-Id: I11eefee65cf738b9915ccab9c0470538ef1b2cec Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
79c3a3cf93
commit
c1b2a863ca
@ -28,8 +28,7 @@
|
||||
ANSIBLE_LOG_PATH: "/tmp/elk-metrics-6x-logs/ansible-elk-test.log"
|
||||
|
||||
vars:
|
||||
# inventory_file: "inventory/test-{{ (ansible_service_mgr == 'systemd') | ternary('container', 'metal') }}-inventory.yml"
|
||||
inventory_file: "inventory/test-metal-inventory.yml"
|
||||
inventory_file: "inventory/test-{{ (contianer_inventory | bool) | ternary('container', 'metal') }}-inventory.yml"
|
||||
|
||||
pre_tasks:
|
||||
- name: Create swap file
|
||||
|
@ -42,6 +42,10 @@
|
||||
when:
|
||||
- osa_test_repo is not defined
|
||||
|
||||
- name: Set inventory for test
|
||||
set_fact:
|
||||
contianer_inventory: "{{ test_clustered_elk | default(false) | bool }}"
|
||||
|
||||
post_tasks:
|
||||
- name: Ensure the log directory exists
|
||||
file:
|
||||
|
@ -23,6 +23,7 @@
|
||||
- ^elk_metrics_6x/.*
|
||||
vars:
|
||||
osa_test_repo: "openstack/openstack-ansible-ops"
|
||||
test_clustered_elk: false
|
||||
|
||||
# - job:
|
||||
# name: "openstack-ansible-ops:elk_metrics_6x-centos-7"
|
||||
@ -46,4 +47,21 @@
|
||||
name: "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic"
|
||||
parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||
nodeset: ubuntu-bionic
|
||||
voting: true
|
||||
|
||||
- job:
|
||||
name: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial-clustered"
|
||||
parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||
voting: false
|
||||
vars:
|
||||
osa_test_repo: "openstack/openstack-ansible-ops"
|
||||
test_clustered_elk: true
|
||||
|
||||
- job:
|
||||
name: "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic-clustered"
|
||||
parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||
nodeset: ubuntu-bionic
|
||||
voting: false
|
||||
vars:
|
||||
osa_test_repo: "openstack/openstack-ansible-ops"
|
||||
test_clustered_elk: true
|
||||
|
@ -20,6 +20,8 @@
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-trusty"
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic"
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial-clustered"
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic-clustered"
|
||||
gate:
|
||||
jobs:
|
||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||
|
Loading…
Reference in New Issue
Block a user