Skip to content

tonyli71/ipa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipa

ipa on RHEL atomic Host

run ipa-server on RHEL Atomic Host

docker pull tonyli71/ipa-server

mkdir /var/lib/ipa-data chcon -t svirt_sandbox_file_t /var/lib/ipa-data

as ipa-server will act as ntpd server we will stop host's chronyd to make 123 not been used

service chronyd stop chkconfig chronyd off

docker run –name ipa-server-container -ti -e IPA_SERVER_IP=192.168.0.250 -h ipa.tli.redhat.com -e PASSWORD=redhat123 -v /var/lib/ipa-data:/data -p 53:53/udp -p 53:53 -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 -p 123:123/udp -p 7389:7389 -p 9443:9443 -p 9444:9444 -p 9445:9445 –cap-add SYS_TIME ipa-server

IPA_SERVER_IP shoud be your RHEL Atomic Host pubic ip address ( such as 192.168.0.250 )

set static ip address on the ip-server container

docker run --privileged --name ipa-server -ti -e IPA_SERVER_IP=10.128.0.11 -e PASSWORD=redhat123 -v /var/lib/ipa-data:/data -p 53:53/udp -p 53:53 -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 -p 123:123/udp -p 7389:7389 -p 9443:9443 -p 9444:9444 -p 9445:9445 --dns 8.8.8.8 -e FORWARDER=127.0.0.1 -e ETH0_IP=10.128.0.252 -h ipa.tli.redhat.com ipa-server

how to use

option 1:

docker attach ipa-server

change your ipa-server contaniner password for ssh login passwd

option 2:

ssh 10.128.0.252 ( your ipa server priv ip address ) use option 1 you had set password

kinit admin

ipa dnsrecord-add tli.redhat.com rhel7repos --a-rec 192.168.0.250 ipa dnsrecord-del tli.redhat.com rhel7repos --a-rec 192.168.0.250

ipa dnsrecord-add tli.redhat.com registry --a-rec 192.168.0.250 ipa dnsrecord-del tli.redhat.com registry --a-rec 192.168.0.250

ipa dnsrecord-add rhos.tli.redhat.com foreman --a-rec 192.168.0.200 --a-create-reverse ipa dnsrecord-del rhos.tli.redhat.com foreman --a-rec 192.168.0.218

option 3:

use browser access and use your ipa-server

How to build the ipa-server image

please change the local.repo file and point to correct yum local repo . :)

About

ipa on RHEL atomic Host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published