mirror of https://github.com/ceph/ceph-ansible.git
create the task to install and configure the agent
Signed-off-by: Alfredo Deza <adeza@redhat.com>pull/539/head
parent
2d0993d4c7
commit
2fd5ab18ac
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
- include: pre_requisite.yml
|
||||||
|
|
||||||
|
- include: start_agent.yml
|
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
- name: install dependencies
|
||||||
|
apt:
|
||||||
|
pkg: calamari-server
|
||||||
|
state: present
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
|
tags:
|
||||||
|
- package-install
|
||||||
|
|
||||||
|
- name: install dependencies
|
||||||
|
yum:
|
||||||
|
name: rhscon-agent
|
||||||
|
state: present
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
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
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: enable and start the agent
|
||||||
|
service:
|
||||||
|
name: salt-minion
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
Loading…
Reference in New Issue