Add new tabs and core count in setup

This commit is contained in:
Mike Reeves
2018-11-26 15:39:03 -05:00
parent 94e2f6c199
commit d5f91c794b
2 changed files with 10 additions and 7 deletions

View File

@@ -6,8 +6,9 @@ TYPE=$1
NAME=$2
IPADDRESS=$3
CPUS=$4
MANINT=$5
MONINT=$6
UID=$5
MANINT=$6
MONINT=$7
if grep -q $IPADDRESS "/opt/so/saltstack/pillar/data/$1.sls"; then
@@ -16,7 +17,8 @@ else
echo " $NAME:" >> /opt/so/saltstack/pillar/data/$1.sls
echo " ip: $IPADDRESS" >> /opt/so/saltstack/pillar/data/$1.sls
echo " manint: $MANINT" >> /opt/so/saltstack/pillar/data/$1.sls
echo " totalcpus: $CPUS"
echo " totalcpus: $CPUS" >> /opt/so/saltstack/pillar/data/$1.sls
echo " guid: $UID" >> /opt/so/saltstack/pillar/data/$1.sls
if [ $TYPE == 'sensorstab' ]; then
echo " monint: $MONINT" >> /opt/so/saltstack/pillar/data/$1.sls
fi