create the task to install and configure the agent

Signed-off-by: Alfredo Deza <adeza@redhat.com>
pull/539/head
Alfredo Deza 2016-02-12 15:37:06 -05:00
parent 2d0993d4c7
commit 2fd5ab18ac
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
- include: pre_requisite.yml
- include: start_agent.yml

View File

@ -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

View File

@ -0,0 +1,6 @@
---
- name: enable and start the agent
service:
name: salt-minion
state: started
enabled: yes