diff --git a/openappstack/cluster.py b/openappstack/cluster.py index 51cf07f4f49b1fbd28d0bfae6677acd08cc9f4a6..a3927bd8743b01527ccdd53e3db227075569c879 100644 --- a/openappstack/cluster.py +++ b/openappstack/cluster.py @@ -41,6 +41,9 @@ class Cluster: self.domain = None # By default, use Let's Encrypt's live environment self.acme_staging = False + # Let the auto-update mechanism (flux) follow a cluster-local git repo, + # not one hosted on open.greenhost.net. + self.local_flux = True # Set this to False if the data needs to be (re)loaded from file self.data_loaded = False # Load data from inventory.yml and settings.yml @@ -147,6 +150,7 @@ class Cluster: settings['domain'] = self.domain settings['admin_email'] = 'admin@{0}'.format(self.domain) settings['acme_staging'] = self.acme_staging + settings['local_flux'] = self.local_flux settings['cluster_dir'] = self.cluster_dir file_contents = yaml.safe_dump(settings, default_flow_style=False)