Implement Keystone environment deployments

This commit is contained in:
2026-05-13 16:11:23 +01:00
parent 65d3142d03
commit aa680b25fd
175 changed files with 10258 additions and 740 deletions

View File

@@ -34,7 +34,7 @@ apt update
apt_wait
apt upgrade -y
apt_wait
apt install unzip curl fail2ban ufw -y
apt install unzip curl fail2ban ufw whois ca-certificates gnupg lsb-release -y
# No password logins
sed -i "/PasswordAuthentication yes/d" /etc/ssh/sshd_config
@@ -52,7 +52,8 @@ if [ ! -d /root/.ssh ]; then
fi
# Set The Hostname If Necessary
echo "[!hostname!]" > /etc/hostname sed -i 's/127\.0\.0\.1.*localhost/127.0.0.1 [!hostname!].localdomain [!hostname!] localhost/' /etc/hosts
echo "[!hostname!]" > /etc/hostname
sed -i 's/127\.0\.0\.1.*localhost/127.0.0.1 [!hostname!].localdomain [!hostname!] localhost/' /etc/hosts
hostname [!hostname!]
# Setup Keystone User
@@ -87,7 +88,9 @@ service ssh restart
# Setup Keystone Home Directory Permissions
chown -R keystone:keystone /home/keystone
chmod -R 755 /home/keystone
chmod 700 /home/keystone/.ssh/id_rsa
chmod 700 /home/keystone/.ssh
chmod 600 /home/keystone/.ssh/authorized_keys
chmod 600 /home/keystone/.ssh/id_ed25519
# Setup UFW Firewall
ufw allow 22
@@ -126,7 +129,7 @@ echo \
apt-get update
apt_wait
apt-get -y install docker-ce docker-ce-cli containerd.io
apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
apt_wait
# Add keystone user to the docker group
usermod -aG docker keystone
@@ -151,4 +154,4 @@ APT::Periodic::Unattended-Upgrade "1";
EOF
# Callback that the server is installed
curl --insecure --data "server_id=[!server_id!]" [!callback!]
curl --insecure --data "server_id=[!server_id!]" [!callback!]