#version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512 # Use network installation #url --url="http://qafiler.bos.redhat.com/redhat/nightly/latest-RHEL-7/compose/Server/x86_64/os/" # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=eth0 --noipv6 --activate network --hostname=freeipa.sgallagh.redhat.com # Root password: "redhat" rootpw --iscrypted $6$jJ9T6NrbdFdg8XUd$OxxiYdlzlqdEg7vkNxkiT2D.yqWBRMo/7jmV.CYj3i78U9W.JPpTJ5gF6W1lfAXA.I0NVsNR4UkkhvRXCziNC1 # System timezone timezone America/New_York --isUtc # System bootloader configuration bootloader --location=mbr --boot-drive=vda autopart --type=lvm # Partition clearing information clearpart --none --initlabel # === OpenLMI-specific enhancements === services --enabled=tog-pegasus,slpd,http selinux --permissive # Open CIMOM and SLP ports firewall --service=wbem-https --port=427:tcp,427:udp # Reboot automatically when install completes reboot %packages @core freeipa-server bind-dyndb-ldap %end %post #Create repo pointing to the nightlies cat << EOF > /etc/yum.repos.d/nightlies.repo [Server] name=Server baseurl=http://download.englab.brq.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server/x86_64/os enabled=1 gpgcheck=0 skip_if_unavailable=1 [Server-optional] name=Server-optional baseurl=http://download.englab.brq.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server-optional/x86_64/os enabled=1 gpgcheck=0 skip_if_unavailable=1 [Server-debuginfo] name=Server-debuginfo baseurl=http://download.englab.brq.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server/x86_64/debug/tree enabled=1 gpgcheck=0 skip_if_unavailable=1 [Server-optional-debuginfo] name=Server-optional-debuginfo baseurl=http://download.englab.brq.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server-optional/x86_64/debug/tree enabled=1 gpgcheck=0 skip_if_unavailable=1 EOF # Install FreeIPA # Add public IPv4 address to /etc/hosts IPADDR=`/usr/sbin/ip addr show dev em1 |/usr/bin/grep "inet[^6]"|/usr/bin/awk -F " " '{print $2}'|/usr/bin/awk -F "/" '{print $1}'` #echo "$IPADDR freeipa.sgallagh.redhat.com" >> /etc/hosts # Install the server in unattended mode /usr/sbin/ipa-server-install \ --setup-dns \ -r FREEIPA.SGALLAGH.REDHAT.COM \ -d freeipa.sgallagh.redhat.com \ -p redhat \ -a redhat \ --hostname=freeipa.sgallagh.redhat.com \ --ip-address=$IPADDR \ --ssh-trust-dns \ --forwarder=192.168.200.1 \ --no-reverse \ --no-host-dns \ -U %end