Skip to content

Commit

Permalink
improved alpine master
Browse files Browse the repository at this point in the history
  • Loading branch information
flesueur committed Jan 28, 2022
1 parent 6dc0697 commit 73d746f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions masters/alpine/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ cd `dirname $0`

apk update
apk upgrade

apk add iproute2-ss openssh-server iptables nftables
rc-update add sshd

# update password root/root
chpasswd << EOF
root:root
EOF

#login ssh avec mot de passe
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/" /etc/ssh/sshd_config
3 changes: 2 additions & 1 deletion templates/hosts/alpine/nodhcp/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ cd `dirname $0`
if [ ! -f /etc/network/keepdhcp ]
then
sed -i "s/dhcp/manual/" /etc/network/interfaces
echo "domain $domain\nsearch $domain\nnameserver $ns" > /etc/resolv.conf
fi

echo -e "domain $domain\nsearch $domain\nnameserver $ns" > /etc/resolv.conf

0 comments on commit 73d746f

Please sign in to comment.