Skip to content

Commit

Permalink
Fix Xenial noninteractive apt installs
Browse files Browse the repository at this point in the history
In Xenial -y is required with DEBIAN_FRONTEND=noninteractive, otherwise
the script prompts for confirmation and aborts because its not reading
from an interactive terminal.

Connects rcbops/u-suk-dev#825
  • Loading branch information
hughsaunders committed Dec 16, 2016
1 parent 2a85295 commit b80790c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ if [[ "${DEPLOY_OA}" == "yes" ]]; then
ansible neutron_agent -m command \
-a '/sbin/iptables -t mangle -A POSTROUTING -p tcp --sport 8000 -j CHECKSUM --checksum-fill'
ansible neutron_agent -m shell \
-a 'DEBIAN_FRONTEND=noninteractive apt-get install iptables-persistent'
-a 'DEBIAN_FRONTEND=noninteractive apt-get -y install iptables-persistent'
fi

# setup openstack
Expand Down

0 comments on commit b80790c

Please sign in to comment.