2016-02-13 04:37:06 +08:00
|
|
|
---
|
2016-02-13 04:54:56 +08:00
|
|
|
- name: determine if node is registered with subscription-manager.
|
|
|
|
command: subscription-manager identity
|
|
|
|
register: subscription
|
|
|
|
changed_when: false
|
2016-11-27 00:35:57 +08:00
|
|
|
always_run: true
|
2016-05-09 22:08:33 +08:00
|
|
|
when: ansible_os_family == 'RedHat'
|
2016-02-13 04:54:56 +08:00
|
|
|
|
2016-02-13 04:37:06 +08:00
|
|
|
- name: install dependencies
|
2016-02-13 04:54:56 +08:00
|
|
|
# XXX Determine what RH repository this will belong to so that it can be
|
|
|
|
# properly checked and errored if the repository is not enabled.
|
2016-11-28 22:16:56 +08:00
|
|
|
package:
|
2016-02-13 04:37:06 +08:00
|
|
|
name: rhscon-agent
|
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- package-install
|
|
|
|
|
|
|
|
- name: create minion.d directory
|
|
|
|
file:
|
|
|
|
path: /etc/salt/minion.d
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: generate agent configuration file
|
|
|
|
template:
|
|
|
|
src: ceph_agent.j2
|
|
|
|
dest: /etc/salt/minion.d/ceph_agent.conf
|