#!/bin/bash sudo dnf install -y freeipa-server freeipa-server-dns sssd-dbus mod_lookup_identity mod_authnz_pam haveged nmap-ncat nano pamtester bash-completion sudo systemctl enable haveged sudo sh -c "echo 'PS1=\"[\u@\h]\\\\$ \"' >> /etc/profile" sudo sh -c "echo 'PS1=\"[\h]\\\\$ \"' >> /etc/bashrc" sudo sh -c "echo '192.168.33.10 server.ipademo.local' >> /etc/hosts" sudo sh -c "echo '192.168.33.11 replica.ipademo.local' >> /etc/hosts" sudo sh -c "echo '192.168.33.20 client.ipademo.local' >> /etc/hosts" sudo rm -f /etc/httpd/conf.d/welcome.conf sudo sh -c "cat >/usr/share/httpd/app.py" </etc/httpd/conf.d/app.conf" < ServerName client.ipademo.local WSGIScriptAlias / /usr/share/httpd/app.py Require all granted EOF