summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks/post_deploy_overcloud.yml
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-07-24 11:21:06 -0400
committerTim Rozet <trozet@redhat.com>2018-07-24 15:40:40 -0400
commiteafc77d7fdc0f3f418941b3ac20a1dcc9180589b (patch)
tree1631fb7fe220e57ca21374e1d3787388db676d5d /lib/ansible/playbooks/post_deploy_overcloud.yml
parent3af3e7faee935ed403ea52ba5de4e2b9d9b41178 (diff)
Open port 8101 on controllers for karaf
By default 8101 (karaf shell) is blocked on controllers. In Apex we advertise in our user guide (and tools scripts) the ability to connect to karaf shell. It is also required to run CSIT. This patch opens the port when ODL is deployed. Change-Id: Ib3ece41f19607bafc329d9de390cf774766a26cd Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/ansible/playbooks/post_deploy_overcloud.yml')
-rw-r--r--lib/ansible/playbooks/post_deploy_overcloud.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_overcloud.yml b/lib/ansible/playbooks/post_deploy_overcloud.yml
index 212d2cfa..372aea49 100644
--- a/lib/ansible/playbooks/post_deploy_overcloud.yml
+++ b/lib/ansible/playbooks/post_deploy_overcloud.yml
@@ -75,3 +75,18 @@
when:
- sdn == 'opendaylight'
- "'controller' in ansible_hostname"
+ - name: Open port 8101 (karaf shell) for ODL
+ iptables:
+ chain: INPUT
+ action: insert
+ protocol: tcp
+ destination_port: 8101
+ jump: ACCEPT
+ rule_num: 1
+ become: yes
+ when:
+ - sdn == 'opendaylight'
+ - "'controller' in ansible_hostname"
+ - name: save iptables
+ command: service iptables save
+ become: yes