Skip to content

Instantly share code, notes, and snippets.

@chutzimir
Last active August 13, 2021 05:34
Show Gist options
  • Save chutzimir/3d87a356ab15760397b0f421210fa453 to your computer and use it in GitHub Desktop.
Save chutzimir/3d87a356ab15760397b0f421210fa453 to your computer and use it in GitHub Desktop.
Installing FreeIPA using containers
export PASSWORD=$(read -s -p Password:\ ; echo "$REPLY"; echo >&2)
sudo -E podman run --name freeipa -e DEBUG_NO_EXIT=1 -e PASSWORD -ti -h $(hostname -f) --read-only \
-p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 -p 88:88/udp -p 464:464/udp \
-v /var/lib/ipa-data:/data:Z docker.io/freeipa/freeipa-server:centos-8 \
ipa-server-install --no-ntp
export PASSWORD=$(read -s -p Password:\ ; echo "$REPLY"; echo >&2)
sudo -E podman run --name freeipa -e DEBUG_NO_EXIT=1 -e PASSWORD -ti -h $(hostname -f) --read-only \
-p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 -p 88:88/udp -p 464:464/udp \
-v /var/lib/ipa-data:/data:Z docker.io/freeipa/freeipa-server:centos-8 \
ipa-replica-install --no-ntp --server ${master_hostname} --domain ${hostname -f | cut -d. -f2-) --principal admin
sudo podman exec -ti freeipa ipa-ca-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment