Add SUSE support
This change adds SUSE 42.3 support to the elastic telemetry solutions. Change-Id: Ibe93ea0d1ead9e7fe6da16d89989cfe5ade0f43e Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
8db0238749
commit
bf6a8d85e7
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ apm_server_distro_packages }}"
|
name: "{{ apm_server_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
17
elk_metrics_6x/roles/elastic_apm_server/vars/suse.yml
Normal file
17
elk_metrics_6x/roles/elastic_apm_server/vars/suse.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
apm_server_distro_packages:
|
||||||
|
- apm-server
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ auditbeat_distro_packages }}"
|
name: "{{ auditbeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
18
elk_metrics_6x/roles/elastic_auditbeat/vars/suse.yml
Normal file
18
elk_metrics_6x/roles/elastic_auditbeat/vars/suse.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
auditbeat_distro_packages:
|
||||||
|
- audit-audispd-plugins
|
||||||
|
- auditbeat
|
@ -34,7 +34,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ curator_distro_packages }}"
|
name: "{{ curator_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
tags:
|
tags:
|
||||||
- package_install
|
- package_install
|
||||||
|
|
||||||
|
17
elk_metrics_6x/roles/elastic_curator/vars/suse.yml
Normal file
17
elk_metrics_6x/roles/elastic_curator/vars/suse.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
curator_distro_packages:
|
||||||
|
- python-virtualenv
|
@ -121,8 +121,8 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ elastic_distro_packages }}"
|
name: "{{ elastic_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
install_recommends: yes
|
install_recommends: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -170,3 +170,15 @@
|
|||||||
dest: "/etc/{{ service_name }}/jvm.options"
|
dest: "/etc/{{ service_name }}/jvm.options"
|
||||||
- src: "templates/logrotate.j2"
|
- src: "templates/logrotate.j2"
|
||||||
dest: "/etc/logrotate.d/{{ service_name }}"
|
dest: "/etc/logrotate.d/{{ service_name }}"
|
||||||
|
|
||||||
|
- name: Ensure host can resolve itself
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
regexp: '^{{ item }}'
|
||||||
|
line: '{{ item }} {{ ansible_hostname }} {{ ansible_fqdn }}'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
with_items:
|
||||||
|
- "127.0.2.1"
|
||||||
|
- "{{ ansible_host }}"
|
||||||
|
17
elk_metrics_6x/roles/elastic_dependencies/vars/suse.yml
Normal file
17
elk_metrics_6x/roles/elastic_dependencies/vars/suse.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
elastic_distro_packages:
|
||||||
|
- java-1_8_0-openjdk
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ filebeat_distro_packages }}"
|
name: "{{ filebeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
17
elk_metrics_6x/roles/elastic_filebeat/vars/suse.yml
Normal file
17
elk_metrics_6x/roles/elastic_filebeat/vars/suse.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
filebeat_distro_packages:
|
||||||
|
- filebeat
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ heartbeat_distro_packages }}"
|
name: "{{ heartbeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
17
elk_metrics_6x/roles/elastic_heartbeat/vars/suse.yml
Normal file
17
elk_metrics_6x/roles/elastic_heartbeat/vars/suse.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
heartbeat_distro_packages:
|
||||||
|
- heartbeat-elastic
|
@ -40,7 +40,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ journalbeat_distro_packages }}"
|
name: "{{ journalbeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
19
elk_metrics_6x/roles/elastic_journalbeat/vars/suse.yml
Normal file
19
elk_metrics_6x/roles/elastic_journalbeat/vars/suse.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
journalbeat_distro_packages:
|
||||||
|
- gcc
|
||||||
|
- git
|
||||||
|
- systemd-devel
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ kibana_distro_packages }}"
|
name: "{{ kibana_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -52,7 +52,7 @@
|
|||||||
- name: Drop Nginx default conf file
|
- name: Drop Nginx default conf file
|
||||||
template:
|
template:
|
||||||
src: "nginx_default.j2"
|
src: "nginx_default.j2"
|
||||||
dest: "/etc/nginx/sites-available/default"
|
dest: "{{ kibana_nginx_vhost_path }}/default"
|
||||||
notify:
|
notify:
|
||||||
- Enable and restart services
|
- Enable and restart services
|
||||||
|
|
||||||
|
21
elk_metrics_6x/roles/elastic_kibana/vars/suse.yml
Normal file
21
elk_metrics_6x/roles/elastic_kibana/vars/suse.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
kibana_nginx_vhost_path: /etc/nginx/vhosts.d
|
||||||
|
kibana_distro_packages:
|
||||||
|
- apache2-utils
|
||||||
|
- kibana
|
||||||
|
- nginx
|
||||||
|
- python-passlib
|
@ -13,6 +13,7 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
|
kibana_nginx_vhost_path: /etc/nginx/sites-available
|
||||||
kibana_distro_packages:
|
kibana_distro_packages:
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
- kibana
|
- kibana
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ logstash_distro_packages }}"
|
name: "{{ logstash_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
18
elk_metrics_6x/roles/elastic_logstash/vars/suse.yml
Normal file
18
elk_metrics_6x/roles/elastic_logstash/vars/suse.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
logstash_distro_packages:
|
||||||
|
- logrotate
|
||||||
|
- logstash
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ metricbeat_distro_packages }}"
|
name: "{{ metricbeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -180,14 +180,7 @@
|
|||||||
- name: Drop nginx stats site config
|
- name: Drop nginx stats site config
|
||||||
template:
|
template:
|
||||||
src: nginx-status.conf.j2
|
src: nginx-status.conf.j2
|
||||||
dest: /etc/nginx/sites-available/nginx-status.conf
|
dest: "{{ metricbeat_nginx_vhost_path }}/nginx-status.conf"
|
||||||
when: nginx_enabled
|
|
||||||
|
|
||||||
- name: Enable nginx stats site
|
|
||||||
file:
|
|
||||||
src: /etc/nginx/sites-available/nginx-status.conf
|
|
||||||
dest: /etc/nginx/sites-enabled/nginx-status.conf
|
|
||||||
state: link
|
|
||||||
register: nginx_status
|
register: nginx_status
|
||||||
when: nginx_enabled
|
when: nginx_enabled
|
||||||
|
|
||||||
|
18
elk_metrics_6x/roles/elastic_metricbeat/vars/suse.yml
Normal file
18
elk_metrics_6x/roles/elastic_metricbeat/vars/suse.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
metricbeat_nginx_vhost_path: /etc/nginx/vhosts.d
|
||||||
|
metricbeat_distro_packages:
|
||||||
|
- metricbeat
|
@ -13,5 +13,6 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
|
metricbeat_nginx_vhost_path: /etc/nginx/sites-enabled
|
||||||
metricbeat_distro_packages:
|
metricbeat_distro_packages:
|
||||||
- metricbeat
|
- metricbeat
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ packetbeat_distro_packages }}"
|
name: "{{ packetbeat_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: true
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
18
elk_metrics_6x/roles/elastic_packetbeat/vars/suse.yml
Normal file
18
elk_metrics_6x/roles/elastic_packetbeat/vars/suse.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
packetbeat_distro_packages:
|
||||||
|
- tcpdump
|
||||||
|
- packetbeat
|
@ -15,3 +15,6 @@
|
|||||||
|
|
||||||
# List of PPA repositories used on ubuntu based systems
|
# List of PPA repositories used on ubuntu based systems
|
||||||
elastic_repo_ppas: []
|
elastic_repo_ppas: []
|
||||||
|
|
||||||
|
# List of packages to install
|
||||||
|
elastic_repo_distro_packages: []
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: add Elastic search public GPG key
|
||||||
|
rpm_key:
|
||||||
|
state: "{{ elastic_repo.state }}"
|
||||||
|
key: "{{ elastic_repo.key_url }}"
|
||||||
|
register: _zypp_task
|
||||||
|
until: _zypp_task is success
|
||||||
|
retries: 3
|
||||||
|
delay: 2
|
||||||
|
tags:
|
||||||
|
- package_install
|
||||||
|
|
||||||
|
# Force refresh of a repository
|
||||||
|
- name: add elk repo to zypper sources list
|
||||||
|
zypper_repository:
|
||||||
|
name: "elastic"
|
||||||
|
repo: "{{ elastic_repo.repo }}"
|
||||||
|
state: "{{ elastic_repo.state }}"
|
||||||
|
runrefresh: yes
|
||||||
|
register: _zypp_task
|
||||||
|
until: _zypp_task is success
|
||||||
|
retries: 3
|
||||||
|
delay: 2
|
||||||
|
tags:
|
||||||
|
- package_install
|
@ -29,7 +29,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ elastic_repo_distro_packages }}"
|
name: "{{ elastic_repo_distro_packages }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _apt_task
|
register: _apt_task
|
||||||
until: _apt_task is success
|
until: _apt_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
20
elk_metrics_6x/roles/elastic_repositories/vars/suse.yml
Normal file
20
elk_metrics_6x/roles/elastic_repositories/vars/suse.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# elk apt repo
|
||||||
|
elastic_repo:
|
||||||
|
repo: 'https://artifacts.elastic.co/packages/6.x/yum'
|
||||||
|
state: "{{ ((elk_package_state | default('present')) == 'absent') | ternary('absent', 'present') }}"
|
||||||
|
key_url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
@ -36,4 +36,4 @@
|
|||||||
|
|
||||||
- name: Set retention keys fact
|
- name: Set retention keys fact
|
||||||
set_fact:
|
set_fact:
|
||||||
elastic_beat_retention_policy_keys: "{{ elastic_beat_retention_policy_hosts.keys() }}"
|
elastic_beat_retention_policy_keys: "{{ elastic_beat_retention_policy_hosts.keys() | list }}"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ elasticsearch_distro_packages }}"
|
name: "{{ elasticsearch_distro_packages }}"
|
||||||
state: "{{ elk_package_state | default('present') }}"
|
state: "{{ elk_package_state | default('present') }}"
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _package_task
|
register: _package_task
|
||||||
until: _package_task is success
|
until: _package_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
|
18
elk_metrics_6x/roles/elasticsearch/vars/suse.yml
Normal file
18
elk_metrics_6x/roles/elasticsearch/vars/suse.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2018, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
elasticsearch_distro_packages:
|
||||||
|
- logrotate
|
||||||
|
- elasticsearch
|
@ -19,17 +19,26 @@
|
|||||||
|
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
|
|
||||||
|
vars:
|
||||||
|
disto_packages:
|
||||||
|
zypper:
|
||||||
|
- nodejs6
|
||||||
|
apt:
|
||||||
|
- nodejs
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add nodejs 6.x source
|
- name: Add nodejs 6.x source
|
||||||
shell: "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -"
|
shell: "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -"
|
||||||
|
when:
|
||||||
|
- ansible_pkg_mgr == 'apt'
|
||||||
|
|
||||||
- name: Install nodejs
|
- name: Install nodejs
|
||||||
apt:
|
package:
|
||||||
name: nodejs
|
name: "{{ disto_packages[ansible_pkg_mgr] }}"
|
||||||
state: "present"
|
state: "present"
|
||||||
update_cache: yes
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
register: _apt_task
|
register: _pkg_task
|
||||||
until: _apt_task is success
|
until: _pkg_task is success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
@ -30,12 +30,21 @@
|
|||||||
# parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
# parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||||
# nodeset: centos-7
|
# nodeset: centos-7
|
||||||
# voting: false
|
# voting: false
|
||||||
#
|
|
||||||
# - job:
|
- job:
|
||||||
# name: "openstack-ansible-ops:elk_metrics_6x-opensuse-423"
|
name: "openstack-ansible-ops:elk_metrics_6x-opensuse-423"
|
||||||
# parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||||
# nodeset: opensuse-423
|
nodeset: opensuse-423
|
||||||
# voting: false
|
voting: false
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: "openstack-ansible-ops:elk_metrics_6x-opensuse-423-clustered"
|
||||||
|
parent: "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||||
|
nodeset: opensuse-423
|
||||||
|
voting: false
|
||||||
|
vars:
|
||||||
|
osa_test_repo: "openstack/openstack-ansible-ops"
|
||||||
|
test_clustered_elk: true
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: "openstack-ansible-ops:elk_metrics_6x-ubuntu-trusty"
|
name: "openstack-ansible-ops:elk_metrics_6x-ubuntu-trusty"
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
- openstack-ansible-role-jobs
|
- openstack-ansible-role-jobs
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
- "openstack-ansible-ops:elk_metrics_6x-opensuse-423"
|
||||||
|
- "openstack-ansible-ops:elk_metrics_6x-opensuse-423-clustered"
|
||||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-trusty"
|
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-trusty"
|
||||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-xenial"
|
||||||
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic"
|
- "openstack-ansible-ops:elk_metrics_6x-ubuntu-bionic"
|
||||||
|
Loading…
Reference in New Issue
Block a user