diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-10-30 17:41:51 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-10-30 17:41:51 -0400 |
commit | ea569edffc529ae2d88a25757c22b9034d2788de (patch) | |
tree | 80e2afce4732d75ac01a1bee03d36e00d8051792 /cloudinit/CloudConfig | |
parent | ed672bb70d07de292a01bd41ed3b02770fb5748b (diff) | |
download | vyos-cloud-init-ea569edffc529ae2d88a25757c22b9034d2788de.tar.gz vyos-cloud-init-ea569edffc529ae2d88a25757c22b9034d2788de.zip |
add a warning if there is no known way to enable puppet service.
Diffstat (limited to 'cloudinit/CloudConfig')
-rw-r--r-- | cloudinit/CloudConfig/cc_puppet.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/CloudConfig/cc_puppet.py b/cloudinit/CloudConfig/cc_puppet.py index 3dc40873..c635d1f5 100644 --- a/cloudinit/CloudConfig/cc_puppet.py +++ b/cloudinit/CloudConfig/cc_puppet.py @@ -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']) |