I am trying to set up a few ks.cfg files and would like to do the following:
Begin File:
thisHost=myhostname
thisDomain=mydomain.com
thisFQDN=$thisHost.$thisDomain
thisIP=192.168.1.15
thisNetMask=255.255.255.0
thisGateway=192.168.1.1
thisNameServer=192.168.1.1
.
.
.
[snip]
.
.
.
network --bootproto=static --device=eno16780032 --hostname=$thisHost --ip=$thisIP --netmask=$thisNetMask --gateway=$thisGateway --nameserver=$thisNameServer --noipv6 --activate
.
.
.
[snip]
.
.
.
%post
.
.
.
cat >> /etc/hosts <<HOSTS
$thisIP $thisFQDN $thisHost
HOSTS
Is this a possibility?
I would just like to set these values in one easy to see place...