Move away from yum
Latest versions of CentOS and RHEL already have YUM deprecated and future versions would drop support. This commit moves browbeat to use the package module instead of yum. Package module will select DNF if it is available on the system rather than yum. Change-Id: I5892fd6209e3be7f3cb69bcfe3df54726043354a
This commit is contained in:
parent
74a9509be9
commit
280ac8dbda
@ -18,7 +18,7 @@
|
||||
- repo
|
||||
tasks:
|
||||
- name: Install at
|
||||
yum:
|
||||
package:
|
||||
name: at
|
||||
become: true
|
||||
|
||||
|
@ -9,7 +9,9 @@
|
||||
ignore_errors: True
|
||||
|
||||
- name: Install Crudini if it is not there
|
||||
yum: name=crudini state=present
|
||||
package:
|
||||
name: crudini
|
||||
state: present
|
||||
when: crudini.rc == 1
|
||||
|
||||
- name: Get selinux mode
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
- name: Install httpd
|
||||
yum:
|
||||
package:
|
||||
name: httpd
|
||||
state: present
|
||||
become: true
|
||||
|
@ -4,14 +4,14 @@
|
||||
#
|
||||
|
||||
- name: Install collectd rpms
|
||||
yum:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items: "{{collectd_packages[config_type]}}"
|
||||
|
||||
- name: Install package that provides semanage
|
||||
yum:
|
||||
package:
|
||||
name: policycoreutils-python
|
||||
state: present
|
||||
become: true
|
||||
|
@ -20,7 +20,9 @@
|
||||
when: install_curator_tool
|
||||
|
||||
- name: Install curator and python-setuptools
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- python-elasticsearch-curator
|
||||
|
@ -13,7 +13,9 @@
|
||||
become: true
|
||||
|
||||
- name: Install elasticsearch and openjdk
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- elasticsearch
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Handler to clean up EPEL whenever it is used
|
||||
#
|
||||
- name: remove_epel
|
||||
yum:
|
||||
package:
|
||||
name: epel-release
|
||||
state: absent
|
||||
ignore_errors: true
|
||||
|
@ -4,7 +4,9 @@
|
||||
#
|
||||
|
||||
- name: Remove old EPEL
|
||||
yum: name=epel-release state=absent
|
||||
package:
|
||||
name: epel-release
|
||||
state: absent
|
||||
become: true
|
||||
|
||||
# The fedoraproject CDN has problems sometimes, this will keep trying
|
||||
@ -21,7 +23,9 @@
|
||||
|
||||
# Same as above but with the Centos CDN
|
||||
- name: Check for EPEL repo
|
||||
yum: "name={{ epel7_rpm }} state=present"
|
||||
package:
|
||||
name: "{{ epel7_rpm }}"
|
||||
state: present
|
||||
become: true
|
||||
register: install_result
|
||||
until: install_result is success
|
||||
|
@ -20,7 +20,9 @@
|
||||
when: (logging_backend != 'fluentd')
|
||||
|
||||
- name: Install filebeat rpms
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- filebeat
|
||||
@ -63,7 +65,9 @@
|
||||
when: (logging_backend != 'fluentd')
|
||||
|
||||
- name: Install rsyslogd for fluentd
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- rsyslog
|
||||
|
@ -24,7 +24,9 @@
|
||||
become: True
|
||||
|
||||
- name: Install grafana RPM
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- grafana
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
- name: Install graphite rpms
|
||||
yum:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
|
@ -28,7 +28,9 @@
|
||||
no_log: true
|
||||
|
||||
- name: Install local rsyslogd for fluentd
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- rsyslog
|
||||
@ -48,7 +50,9 @@
|
||||
when: rsyslog_updated != 0
|
||||
|
||||
- name: Install kibana rpms
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- kibana
|
||||
|
@ -13,7 +13,9 @@
|
||||
become: true
|
||||
|
||||
- name: Install logstash rpms
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- logstash
|
||||
|
@ -4,7 +4,9 @@
|
||||
#
|
||||
|
||||
- name: Install nginx, httpd-tools, httplib2, libsemanage-python
|
||||
yum: name={{ item }} state=present
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
- nginx
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Installs rsyslog packages, used with other rsyslog roles
|
||||
|
||||
- name: Install rsyslog and rsyslog-elasticsearch
|
||||
yum:
|
||||
package:
|
||||
name: "{{item}}"
|
||||
state: present
|
||||
become: true
|
||||
@ -19,7 +19,7 @@
|
||||
# We can't just add the repo and do an upgrade do to irresolvable
|
||||
# deps involving some rsyslog components have other package names
|
||||
- name: Remove 7.x rsyslog packages
|
||||
yum:
|
||||
package:
|
||||
name: "{{item}}"
|
||||
state: absent
|
||||
become: true
|
||||
@ -46,7 +46,7 @@
|
||||
when: install_rsyslog|failed
|
||||
|
||||
- name: Install rsyslog 8 from external repo
|
||||
yum:
|
||||
package:
|
||||
name: "{{item}}"
|
||||
state: present
|
||||
disablerepo: "*"
|
||||
|
@ -90,7 +90,7 @@
|
||||
become: true
|
||||
|
||||
- name: Install selinux utils
|
||||
yum:
|
||||
package:
|
||||
name: policycoreutils-python
|
||||
state: present
|
||||
become: true
|
||||
|
@ -1,6 +1,8 @@
|
||||
---
|
||||
- name: Install StatsD
|
||||
yum: name=statsd state=present
|
||||
package:
|
||||
name: statsd
|
||||
state: present
|
||||
become: True
|
||||
|
||||
- name: Create StatsD configuration folder
|
||||
|
Loading…
Reference in New Issue
Block a user