Merge pull request #356 from TheHADILP/ansible-otc

Added Ansible T-Pot Deployment on Open Telekom Cloud
This commit is contained in:
Marco Ochse
2019-05-13 17:28:57 +02:00
committed by GitHub
23 changed files with 699 additions and 0 deletions

View File

@ -692,6 +692,11 @@ fuBANNER "Set hostname"
hostnamectl set-hostname $myHOST
sed -i 's#127.0.1.1.*#127.0.1.1\t'"$myHOST"'#g' /etc/hosts
# Prevent cloud-init from overwriting our new hostname
if [ -f '/etc/cloud/cloud.cfg' ]; then
sed -i 's/preserve_hostname.*/preserve_hostname: true/g' /etc/cloud/cloud.cfg
fi
# Let's patch cockpit.socket, sshd_config
fuBANNER "Adjust ports"
mkdir -p /etc/systemd/system/cockpit.socket.d