jenkins.client for day1
Change-Id: I4b6a96730851c46b666332374d0d45432d1e2f17
diff --git a/config-drive/master_config.sh b/config-drive/master_config.sh
index cb727d7..93a0a39 100644
--- a/config-drive/master_config.sh
+++ b/config-drive/master_config.sh
@@ -69,11 +69,17 @@
chown -R git:www-data /home/repo/mcp-ci/pipeline-library/*
fi
+ssh-keyscan cfg01 > /var/lib/jenkins/.ssh/known_hosts
+
salt-call saltutil.refresh_pillar
salt-call saltutil.sync_all
salt-call state.sls linux.network,linux,openssh,salt
salt-call state.sls maas.cluster,maas.region,reclass
-ssh-keyscan cfg01 > /var/lib/jenkins/.ssh/known_hosts
+pillar=`salt-call pillar.data jenkins:client`
+
+if [[ $pillar == *"job"* ]]; then
+ salt-call state.sls jenkins.client
+fi
reboot