forked from fultonj/tripleo-ceph-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mistral-ceph-ansible.yaml
46 lines (45 loc) · 1.33 KB
/
mistral-ceph-ansible.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
version: '2.0'
mistral-ceph-ansible:
type: direct
input:
- monitor_interface
tasks:
mon_firewall: # this needs to be done in heat/puppet instead
action: ansible
input:
hosts: 'mons'
module: iptables
module_args: 'chain=INPUT protocol=tcp destination_port=6789 jump=ACCEPT'
remote_user: heat-admin
become: true
become_user: root
publish:
output: <% task(mon_firewall).result %>
on-success: osd_firewall
osd_firewall: # this needs to be done in heat/puppet instead
action: ansible
input:
hosts: 'osds'
module: iptables
module_args: 'chain=INPUT protocol=tcp destination_port=6800:7300 jump=ACCEPT'
remote_user: heat-admin
become: true
become_user: root
publish:
output: <% task(osd_firewall).result %>
on-success: print_args
print_args:
action: std.echo output=<% $.monitor_interface %>
on-success: ceph_install
ceph_install:
action: ansible-playbook
input:
playbook: /tmp/ceph-ansible/site.yml
remote_user: heat-admin
become: true
become_user: root
# skip_tags: package-install
extra_vars: '{"monitor_interface":"<% $.monitor_interface %>"}'
publish:
output: <% task(ceph_install).result %>