ceph-infra: add new role ceph-infra

this role manages ceph infra services such as ntp, firewall, ...

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3215/head
Guillaume Abrioux 2018-10-05 15:42:52 +02:00 committed by mergify[bot]
parent 8dcc8d1434
commit b3a71eeb08
7 changed files with 38 additions and 18 deletions

View File

@ -23,18 +23,6 @@
tags:
- package-install
- name: include_tasks "misc/ntp_debian.yml"
include_tasks: "misc/ntp_debian.yml"
when:
- ansible_os_family == 'Debian'
- ntp_service_enabled
- name: include_tasks "misc/ntp_rpm.yml"
include_tasks: "misc/ntp_rpm.yml"
when:
- ansible_os_family in ['RedHat', 'Suse']
- ntp_service_enabled
- name: get ceph version
command: ceph --version
changed_when: false
@ -53,12 +41,6 @@
tags:
- always
- name: include_tasks misc/configure_firewall_rpm.yml
include_tasks: misc/configure_firewall_rpm.yml
when:
- configure_firewall
- ansible_os_family in ['RedHat', 'Suse']
- name: include facts_mon_fsid.yml
include_tasks: facts_mon_fsid.yml
run_once: true

View File

@ -0,0 +1,19 @@
---
galaxy_info:
author: Guillaume Abrioux
description: Handles ceph infra requirements (ntp, firewall, ...)
license: Apache
min_ansible_version: 2.3
platforms:
- name: Ubuntu
versions:
- xenial
- name: EL
versions:
- 7
- name: opensuse
versions:
- 42.3
categories:
- system
dependencies: []

View File

@ -0,0 +1,18 @@
---
- name: include_tasks configure_firewall_rpm.yml
include_tasks: configure_firewall_rpm.yml
when:
- configure_firewall
- ansible_os_family in ['RedHat', 'Suse']
- name: include_tasks "ntp_debian.yml"
include_tasks: "ntp_debian.yml"
when:
- ansible_os_family == 'Debian'
- ntp_service_enabled
- name: include_tasks "ntp_rpm.yml"
include_tasks: "ntp_rpm.yml"
when:
- ansible_os_family in ['RedHat', 'Suse']
- ntp_service_enabled

View File

@ -75,6 +75,7 @@
roles:
- ceph-defaults
- ceph-validate
- ceph-infra
- hosts: mons