
This changeset contains the following (1) Changes to the NFP devstack to support configurator (2) Changes to the NFP diskimage build script to build configurator disk image Change-Id: I1717e07b82073945752549c254ed8a39ce7257ff Implements: blueprint gbp-network-services-framework Co-Authored-By: Deepak S <in.live.in@live.in> Co-Authored-By: ashutosh mishra <mca.ashu4@gmail.com>
12 lines
487 B
Bash
Executable File
12 lines
487 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z "$DIB_PASSWORD" ]; then
|
|
echo "Error during setup password for root"
|
|
exit 1
|
|
fi
|
|
sed -i "s/disable_root: true/disable_root: false/" /etc/cloud/cloud.cfg
|
|
install-packages augeas-tools openssh-server openssh-client
|
|
augtool -s set /files/etc/ssh/sshd_config/PasswordAuthentication yes
|
|
augtool -s set /files/etc/ssh/sshd_config/PermitRootLogin yes
|
|
augtool -s set /files/etc/ssh/ssh_config/PasswordAuthentication yes
|
|
echo -e "$DIB_PASSWORD\n$DIB_PASSWORD\n" | passwd
|