From f72512d8387b93eaf9c5bb7956361ad16e40376e Mon Sep 17 00:00:00 2001 From: Thomas Hervé Date: Wed, 5 Sep 2012 15:17:21 +0200 Subject: Add RUN=1 to the default file --- cloudinit/config/cc_landscape.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cloudinit/config/cc_landscape.py') diff --git a/cloudinit/config/cc_landscape.py b/cloudinit/config/cc_landscape.py index 906a6ff7..d351d941 100644 --- a/cloudinit/config/cc_landscape.py +++ b/cloudinit/config/cc_landscape.py @@ -31,6 +31,7 @@ from cloudinit.settings import PER_INSTANCE frequency = PER_INSTANCE LSC_CLIENT_CFG_FILE = "/etc/landscape/client.conf" +LS_DEFAULT_FILE = "/etc/default/landscape-client" distros = ['ubuntu'] @@ -78,6 +79,8 @@ def handle(_name, cfg, cloud, log, _args): util.write_file(lsc_client_fn, contents.getvalue()) log.debug("Wrote landscape config file to %s", lsc_client_fn) + util.write_file(LS_DEFAULT_FILE, "RUN=1\n") + def merge_together(objs): """ -- cgit v1.2.3