summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-11-19 08:02:05 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-19 08:02:05 +0000
commita5d9a6384c09ff8e84c7e6bfefb9b9202b0c2341 (patch)
tree619d37247db604325ca63421e54733d8ae1d3096 /deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml
parentbe2bef457417df3aabcf371c8c8b9484c955c0f8 (diff)
parent4251f3ca9b4271649f9670468529ba2b077269d0 (diff)
Merge "support FWaaS and VPNaaS"
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml')
-rwxr-xr-xdeploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml b/deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml
new file mode 100755
index 00000000..16624a4c
--- /dev/null
+++ b/deploy/adapters/ansible/roles/neutron-network/tasks/firewall.yml
@@ -0,0 +1,9 @@
+---
+- include_vars: "{{ ansible_os_family }}.yml"
+
+- name: install firewall packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items: firewall_packages
+
+- name: update firewall related conf
+ shell: crudini --set --list /etc/neutron/neutron.conf DEFAULT service_plugins firewall