mirror of https://github.com/ceph/ceph-ansible.git
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
parent
8dcc8d1434
commit
b3a71eeb08
|
@ -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
|
||||
|
|
|
@ -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: []
|
|
@ -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
|
|
@ -75,6 +75,7 @@
|
|||
roles:
|
||||
- ceph-defaults
|
||||
- ceph-validate
|
||||
- ceph-infra
|
||||
|
||||
|
||||
- hosts: mons
|
||||
|
|
Loading…
Reference in New Issue