7e7c6230cb
Fixes bug 1605228, where if the user installs epel-relase from the Centos7 default packages rather than from the latest rpm online packages the latest epel-release from the rpm installs on top of it but does not provide newer packages. But that's not what you care about, the big change that comes with this bugfix is a refactoring of every playbook that uses EPEL to all call a single role which both installs epel and setups a handler to cleanup epel when the set of roles is done. This unifies and cleans up what was previously two ways of installing EPEL, two ways of disabling it all duplicating across more than half a dozen roles. Some of of which used the epel_rpm variable some of which did not. The resulting combined role still uses the rpm command and as such inherits some hackiness in an effort to keep everything working as it was before just with better organization. This has been tested with very playbook modified here against my own cloud. Don't consider this final since trying to install every single one of these to a single virtual undercloud generated lots of other problems, but none of them failed on EPEL or package related issues. Change-Id: Ic592a97875a9ec783519f618260713277589c83e
39 lines
822 B
YAML
39 lines
822 B
YAML
---
|
|
#
|
|
# Generic Playbook to install collectd on generic machine types, use tags to seperate machine type:
|
|
#
|
|
# Examples:
|
|
#
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="guest"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="graphite"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal,guest"
|
|
#
|
|
|
|
- hosts: baremetal
|
|
remote_user: root
|
|
vars:
|
|
config_type: baremetal
|
|
roles:
|
|
- epel
|
|
- collectd-generic
|
|
tags: baremetal
|
|
|
|
- hosts: guest
|
|
remote_user: root
|
|
vars:
|
|
config_type: guest
|
|
roles:
|
|
- epel
|
|
- collectd-generic
|
|
tags: guest
|
|
|
|
- hosts: graphite
|
|
remote_user: root
|
|
vars:
|
|
config_type: graphite
|
|
roles:
|
|
- epel
|
|
- collectd-generic
|
|
tags: graphite
|