forked from hitachienergy/epiphany
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase yum lock timeout (workaround) (hitachienergy#1879)
* common: add yum lock_timeout (fix) * docker: add yum lock_timeout (fix) * elasticsearch: add yum lock_timeout (fix) * elasticsearch_curator: add yum lock_timeout (fix) * filebeat: add yum lock_timeout (fix) * firewall: add yum lock_timeout (fix) * grafana: add yum lock_timeout (fix) * kafka: add yum lock_timeout (fix) * kibana: add yum lock_timeout (fix) * kubernetes_common: add yum lock_timeout (fix) * logstash: add yum lock_timeout (fix) * opendistro_for_elasticsearch: add yum lock_timeout (fix) * postgresql: add yum lock_timeout (fix) * repository: add yum lock_timeout (fix) * upgrade: add yum lock_timeout (fix) * zookeeper: add yum lock_timeout (fix) * group_vars: make yum_lock_timeout configurable * Update 0.10 changelog * group_vars: coding-style adjustment
- Loading branch information
Showing
44 changed files
with
241 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
core/src/epicli/data/common/ansible/playbooks/roles/elasticsearch/tasks/Debian.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
--- | ||
# splitted to separate tasks to make it work on Debian/Ubuntu: | ||
# https://github.com/elastic/elasticsearch/issues/33607#issue-359124678 | ||
|
||
- name: Install Elasticsearch prerequisites | ||
apt: | ||
name: | ||
- openjdk-8-jre-headless | ||
update_cache: true | ||
state: present | ||
|
||
- name: Install Elasticsearch package | ||
apt: | ||
name: | ||
- elasticsearch-oss={{ specification.elasticsearch_version }} | ||
state: present | ||
register: install_elasticsearch_package | ||
register: install_elasticsearch_package |
3 changes: 2 additions & 1 deletion
3
core/src/epicli/data/common/ansible/playbooks/roles/elasticsearch/tasks/RedHat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
- name: Install Elasticsearch package | ||
yum: | ||
name: | ||
- java-1.8.0-openjdk-headless | ||
- elasticsearch-oss-{{ specification.elasticsearch_version }} | ||
update_cache: yes | ||
update_cache: true | ||
state: present | ||
exclude: elasticsearch-oss-7* # v7 is installed by opendistro_for_elasticsearch role | ||
register: install_elasticsearch_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
core/src/epicli/data/common/ansible/playbooks/roles/elasticsearch_curator/tasks/Debian.yml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
core/src/epicli/data/common/ansible/playbooks/roles/elasticsearch_curator/tasks/RedHat.yml
This file was deleted.
Oops, something went wrong.
14 changes: 12 additions & 2 deletions
14
...li/data/common/ansible/playbooks/roles/elasticsearch_curator/tasks/install-es-curator.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
--- | ||
# This file is meant to be also used by upgrade playbook | ||
|
||
- name: Install Elasticsearch Curator ({{ ansible_os_family }}) | ||
include_tasks: "{{ ansible_os_family }}.yml" | ||
- name: Install Elasticsearch-Curator package | ||
package: | ||
name: "{{ _packages[ansible_os_family] }}" | ||
state: present | ||
vars: | ||
_packages: | ||
Debian: | ||
- elasticsearch-curator={{ specification.curator_version }} | ||
RedHat: | ||
- elasticsearch-curator-{{ specification.curator_version }} | ||
module_defaults: | ||
yum: { lock_timeout: "{{ yum_lock_timeout }}" } |
19 changes: 0 additions & 19 deletions
19
core/src/epicli/data/common/ansible/playbooks/roles/filebeat/tasks/Debian.yml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
core/src/epicli/data/common/ansible/playbooks/roles/filebeat/tasks/RedHat.yml
This file was deleted.
Oops, something went wrong.
32 changes: 30 additions & 2 deletions
32
...data/common/ansible/playbooks/roles/filebeat/tasks/install-filebeat-as-system-service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
--- | ||
# This file is meant to be also used by upgrade playbook | ||
|
||
- name: Install Filebeat ({{ ansible_os_family }}) | ||
include_tasks: "{{ ansible_os_family }}.yml" | ||
- name: Install Filebeat package | ||
package: | ||
name: "{{ _packages[ansible_os_family] }}" | ||
state: present | ||
vars: | ||
_packages: | ||
Debian: | ||
- filebeat={{ filebeat_version }} | ||
RedHat: | ||
- filebeat-{{ filebeat_version }} | ||
register: install_filebeat_package | ||
module_defaults: | ||
yum: { lock_timeout: "{{ yum_lock_timeout }}" } | ||
|
||
- name: Install Auditd package | ||
package: | ||
name: "{{ _packages[ansible_os_family] }}" | ||
state: present | ||
vars: | ||
_packages: | ||
Debian: | ||
- auditd | ||
RedHat: | ||
- audit | ||
register: install_auditd_package | ||
until: install_auditd_package is success | ||
retries: 3 # Installing auditd sometimes fails in post-inst: https://bugs.launchpad.net/ubuntu/+source/auditd/+bug/1848330 | ||
delay: 1 | ||
module_defaults: | ||
yum: { lock_timeout: "{{ yum_lock_timeout }}" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...src/epicli/data/common/ansible/playbooks/roles/firewall/tasks/RedHat/install-firewall.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: Install firewalld package | ||
package: | ||
yum: | ||
name: firewalld | ||
state: present | ||
state: present |
9 changes: 6 additions & 3 deletions
9
core/src/epicli/data/common/ansible/playbooks/roles/firewall/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
- name: Include installation tasks ({{ ansible_os_family }}) | ||
include_tasks: "{{ ansible_os_family }}/install-firewall.yml" | ||
- name: Execute OS-specific tasks (firewall) | ||
block: | ||
- include_tasks: "{{ ansible_os_family }}/install-firewall.yml" | ||
module_defaults: | ||
yum: { lock_timeout: "{{ yum_lock_timeout }}" } | ||
|
||
- name: Include configuration tasks | ||
include_tasks: configure-firewall.yml | ||
include_tasks: configure-firewall.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
core/src/epicli/data/common/ansible/playbooks/roles/kibana/tasks/Debian.yml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
core/src/epicli/data/common/ansible/playbooks/roles/kibana/tasks/RedHat.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...i/data/common/ansible/playbooks/roles/kubernetes_common/tasks/install-packages-Debian.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.