forked from fultonj/tripleo-ceph-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmistral-tendrl.yaml
executable file
·39 lines (38 loc) · 1.08 KB
/
mistral-tendrl.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
---
version: '2.0'
mistral-tendrl:
type: direct
input:
- key
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=<% $.key %>
on-success: ceph_install
ceph_install:
action: std.echo output="Call Tendrl! "
publish:
output: <% task(ceph_install).result %>