add a warning if there is no known way to enable puppet service.
This commit is contained in:
parent
699127c013
commit
e0037112eb
@ -94,6 +94,8 @@ def handle(name,cfg,cloud,log,args):
|
|||||||
subprocess.check_call(['/bin/systemctl', 'enable', 'puppet.service'])
|
subprocess.check_call(['/bin/systemctl', 'enable', 'puppet.service'])
|
||||||
elif os.path.exists('/sbin/chkconfig'):
|
elif os.path.exists('/sbin/chkconfig'):
|
||||||
subprocess.check_call(['/sbin/chkconfig', 'puppet', 'on'])
|
subprocess.check_call(['/sbin/chkconfig', 'puppet', 'on'])
|
||||||
|
else:
|
||||||
|
log.warn("Do not know how to enable puppet service on this system")
|
||||||
# Start puppetd
|
# Start puppetd
|
||||||
subprocess.check_call(['service', 'puppet', 'start'])
|
subprocess.check_call(['service', 'puppet', 'start'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user