Give error if puppetmaster does not have domainname when running bootstrap-server.sh.
This commit is contained in:
parent
9691ca3977
commit
e491a66ef4
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
hostname -f | fgrep "." > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "error, command 'hostname -f' does not return domainname"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p /etc/puppet/manifests
|
||||
if [ ! -s /etc/puppet/manifests/site.pp ]; then
|
||||
echo "" > /etc/puppet/manifests/site.pp
|
||||
|
|
Loading…
Add table
Reference in a new issue