1 *** bootstrap_admin_node.sh.orig Mon May 30 06:31:38 2016
2 --- bootstrap_admin_node.sh Mon May 30 06:35:11 2016
8 if [[ "$showmenu" == "yes" || "$showmenu" == "YES" ]]; then
11 # Give user 15 seconds to enter fuelmenu or else continue
17 + ### OPNFV addition BEGIN
19 + for script in /opt/opnfv/bootstrap/pre.d/*.sh
21 + echo "Pre script: $script" >> /root/pre.log 2>&1
22 + $script >> /root/pre.log 2>&1
25 + ### OPNFV addition END
28 + systemctl enable sshd
29 + systemctl start sshd
31 if [[ "$showmenu" == "yes" || "$showmenu" == "YES" ]]; then
34 # Give user 15 seconds to enter fuelmenu or else continue
41 # Enable online base MOS repos (security, updates) if we run an ISO installation
42 ! [ -f /etc/fuel_build_id ] && \
43 ! yum-config-manager --enable mos${FUEL_RELEASE}-security mos${FUEL_RELEASE}-updates --save
45 if [ ! -f "${ASTUTE_YAML}" ]; then
46 echo ${fuelmenu_fail_message}
51 + # OPNFV: Disabled to speedup installation in offline env.
52 # Enable online base MOS repos (security, updates) if we run an ISO installation
53 ! #[ -f /etc/fuel_build_id ] && \
54 ! # yum-config-manager --enable mos${FUEL_RELEASE}-security mos${FUEL_RELEASE}-updates --save
56 if [ ! -f "${ASTUTE_YAML}" ]; then
57 echo ${fuelmenu_fail_message}
60 [ ! -f /etc/fuel_build_id ] && \
61 sed -i "s|127.0.0.1:8080/ubuntu/x86_64|mirror.fuel-infra.org/mos-repos/ubuntu/${FUEL_RELEASE}|g" "${ASTUTE_YAML}"
64 ! systemctl enable sshd
65 ! systemctl start sshd
68 systemctl enable iptables.service
70 [ ! -f /etc/fuel_build_id ] && \
71 sed -i "s|127.0.0.1:8080/ubuntu/x86_64|mirror.fuel-infra.org/mos-repos/ubuntu/${FUEL_RELEASE}|g" "${ASTUTE_YAML}"
73 ! systemctl reload sshd
76 systemctl enable iptables.service
83 + ### OPNFV addition BEGIN
85 + for script in /opt/opnfv/bootstrap/post.d/*.sh
87 + echo "Post script: $script" >> /root/post.log 2>&1
88 + $script >> /root/post.log 2>&1
91 + ### OPNFV addition END
93 if [ "`get_bootstrap_skip`" = "False" ]; then
94 build_ubuntu_bootstrap bs_status || true