summaryrefslogtreecommitdiffstats
path: root/scripts/install-selfsign.sh
blob: 809f6ecc65248be314524623780e5da159de230f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -x

IP_ADDRESS=`ifconfig eth0 | grep "inet " | awk '{print $2}'`
FORWARDER=`grep nameserver /etc/resolv.conf | awk '{print $2;}'`

ipa-server-install\
  -d\
  -U\
  -r REDHAT.COM\
  -n redhat.com\
  -p Secret123\
  -a Secret123\
  --selfsign\
  --setup-dns\
  --forwarder $FORWARDER\
  --no-ntp