Merge "Remove all iptables rules that are set in base image"
This commit is contained in:
@@ -117,8 +117,8 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "vanilla" ]; then
|
||||
export HIVE_VERSION=${HIVE_VERSION:-"0.11.0"}
|
||||
|
||||
ubuntu_elements_sequence="base vm ubuntu hadoop swift_hadoop oozie mysql hive"
|
||||
fedora_elements_sequence="base vm fedora hadoop swift_hadoop oozie mysql hive"
|
||||
centos_elements_sequence="vm rhel hadoop swift_hadoop oozie mysql hive redhat-lsb"
|
||||
fedora_elements_sequence="base vm fedora hadoop swift_hadoop oozie mysql hive disable-firewall"
|
||||
centos_elements_sequence="vm rhel hadoop swift_hadoop oozie mysql hive redhat-lsb disable-firewall"
|
||||
|
||||
# Workaround for https://bugs.launchpad.net/diskimage-builder/+bug/1204824
|
||||
# https://bugs.launchpad.net/sahara/+bug/1252684
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
install-packages which
|
||||
|
||||
if which systemctl; then
|
||||
systemctl disable firewalld
|
||||
fi
|
||||
|
||||
@@ -23,14 +23,9 @@ function firstboot_common()
|
||||
sleep 1
|
||||
done
|
||||
chown -R $user:$user /home/$user
|
||||
|
||||
#TODO: configure iptables (https://bugs.launchpad.net/sahara/+bug/1195744)
|
||||
iptables -F
|
||||
;;
|
||||
CentOS )
|
||||
chown -R cloud-user:cloud-user /home/cloud-user
|
||||
service iptables stop
|
||||
chkconfig iptables off
|
||||
;;
|
||||
* )
|
||||
echo "Unknown distro: $distro. Exiting."
|
||||
|
||||
Reference in New Issue
Block a user