fe28973675
Implements: blueprint kube-neutron-container Previously, only the neutron-server service was functional. This patch adds support the the rest of the neutron services need by Nova instances to function. The linux-bridge agent is used instead of the OVS agent to realize network abstractions. This is because the ovs-agent package will install the kernel module version of OVS instead of the userspace version. Additionally, the OVS userspace code is still very experimental and reduces performance. Requires: https://github.com/larsks/heat-kubernetes/pull/8 Change-Id: I5ef34ddeb48d4954934571a928cc82ae7f3a0f20
13 lines
359 B
Bash
13 lines
359 B
Bash
#!/bin/bash
|
|
|
|
# Neutron uses rootwrap which requires a tty for sudo.
|
|
# Since the container is running in daemon mode, a tty
|
|
# is not present and requiretty must be commented out.
|
|
if [ ! -f /var/run/sudo-modified ]; then
|
|
chmod 0640 /etc/sudoers
|
|
sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers
|
|
chmod 0440 /etc/sudoers
|
|
fi
|
|
|
|
touch /var/run/sudo-modified
|