Merge "Allow user override of beat install locations"
This commit is contained in:
commit
2cf9962119
@ -12,7 +12,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Install Auditbeat
|
- name: Install Auditbeat
|
||||||
hosts: hosts
|
hosts: "{{ groups['auditbeat'] | default(groups['hosts']) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Install Filebeat
|
- name: Install Filebeat
|
||||||
hosts: hosts
|
hosts: "{{ groups['filebeat'] | default(groups['hosts']) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
@ -16,17 +16,20 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
connection: local
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add hosts to dynamic inventory group
|
- name: Configure deployment group when Heartbeat group not specified
|
||||||
group_by:
|
block:
|
||||||
key: heatbeat_deployment_targets
|
- name: Add hosts to dynamic inventory group
|
||||||
parents: kibana
|
group_by:
|
||||||
when:
|
key: heartbeat_deployment_targets
|
||||||
- inventory_hostname in groups['kibana'][:3]
|
parents: kibana
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['kibana'][:3]
|
||||||
|
when: groups['heartbeat'] is not defined
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Install Heartbeat
|
- name: Install Heartbeat
|
||||||
hosts: heatbeat_deployment_targets
|
hosts: "{{ groups['heartbeat'] | default(groups['heartbeat_deployment_targets'] | default([])) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
@ -16,29 +16,32 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
connection: local
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add hosts to dynamic inventory group
|
- name: Configure deployment group when Journalbeat group not specified
|
||||||
group_by:
|
block:
|
||||||
key: journalbeat_deployment_containers
|
- name: Add hosts to dynamic inventory group
|
||||||
parents: all_journalbeat_deployments
|
group_by:
|
||||||
when:
|
key: journalbeat_deployment_containers
|
||||||
- openstack_release is defined and
|
parents: all_journalbeat_deployments
|
||||||
openstack_release is version('18.0.0', 'lt')
|
when:
|
||||||
- physical_host is defined and
|
- openstack_release is defined and
|
||||||
physical_host != inventory_hostname
|
openstack_release is version('18.0.0', 'lt')
|
||||||
|
- physical_host is defined and
|
||||||
|
physical_host != inventory_hostname
|
||||||
|
|
||||||
- name: Add hosts to dynamic inventory group
|
- name: Add hosts to dynamic inventory group
|
||||||
group_by:
|
group_by:
|
||||||
key: journalbeat_deployment_hosts
|
key: journalbeat_deployment_hosts
|
||||||
parents: all_journalbeat_deployments
|
parents: all_journalbeat_deployments
|
||||||
|
when:
|
||||||
|
- physical_host is undefined or
|
||||||
|
physical_host == inventory_hostname
|
||||||
when:
|
when:
|
||||||
- physical_host is undefined or
|
- groups['journalbeat'] is not defined
|
||||||
physical_host == inventory_hostname
|
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Install Journalbeat
|
- name: Install Journalbeat
|
||||||
hosts: all_journalbeat_deployments
|
hosts: "{{ groups['journalbeat'] | default(groups['all_journalbeat_deployments']) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
@ -11,8 +11,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Install Metricsbeat
|
- name: Install Metricbeat
|
||||||
hosts: all
|
# The nested defaults are required as ansible doesn't short-circuit in its default filter
|
||||||
|
hosts: "{{ groups['metricbeat'] | default( (groups['hosts'] | default([])) + (groups['all_containers'] | default([]))) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Install Packetbeat
|
- name: Install Packetbeat
|
||||||
hosts: hosts
|
hosts: "{{ groups['packetbeat'] | default(groups['hosts']) }}"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
haproxy_ssl: false
|
haproxy_ssl: false
|
||||||
|
Loading…
Reference in New Issue
Block a user