Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / tripleo-firewall.yaml
1 heat_template_version: pike
2
3 description: >
4   TripleO Firewall settings
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   ManageFirewall:
34     default: true
35     description: Whether to manage IPtables rules.
36     type: boolean
37   PurgeFirewallRules:
38     default: false
39     description: Whether IPtables rules should be purged before setting up the new ones.
40     type: boolean
41
42 outputs:
43   role_data:
44     description: Role data for the TripleO firewall settings
45     value:
46       service_name: tripleo_firewall
47       config_settings:
48         tripleo::firewall::manage_firewall: {get_param: ManageFirewall}
49         tripleo::firewall::purge_firewall_rules: {get_param: PurgeFirewallRules}
50       step_config: |
51         include ::tripleo::firewall
52       upgrade_tasks:
53         - name: blank ipv6 rule before activating ipv6 firewall.
54           tags: step3
55           shell: cat /etc/sysconfig/ip6tables > /etc/sysconfig/ip6tables.n-o-upgrade; cat</dev/null>/etc/sysconfig/ip6tables
56           args:
57             creates: /etc/sysconfig/ip6tables.n-o-upgrade