add a warning if there is no known way to enable puppet service.

This commit is contained in:
Scott Moser 2011-10-30 17:41:51 -04:00
parent 699127c013
commit e0037112eb

View File

@ -94,6 +94,8 @@ def handle(name,cfg,cloud,log,args):
subprocess.check_call(['/bin/systemctl', 'enable', 'puppet.service'])
elif os.path.exists('/sbin/chkconfig'):
subprocess.check_call(['/sbin/chkconfig', 'puppet', 'on'])
else:
log.warn("Do not know how to enable puppet service on this system")
# Start puppetd
subprocess.check_call(['service', 'puppet', 'start'])