make k3s values avaiable as build property
This commit is contained in:
parent
7ee5088b44
commit
3f38e910c1
1 changed files with 9 additions and 0 deletions
|
@ -61,16 +61,25 @@ class ProvsK3sMixin(DevopsBuild):
|
|||
super().__init__(project, config)
|
||||
provs_k3s_mixin_config = config['ProvsK3sMixin']
|
||||
self.fqdn = provs_k3s_mixin_config['fqdn']
|
||||
self.put('fqdn', self.fqdn)
|
||||
self.provision_user = provs_k3s_mixin_config['provision_user']
|
||||
self.put('provision_user', self.provision_user)
|
||||
self.ipv4 = provs_k3s_mixin_config['ipv4']
|
||||
self.put('ipv4', self.ipv4)
|
||||
self.ipv6 = provs_k3s_mixin_config['ipv6']
|
||||
self.put('ipv6', self.ipv6)
|
||||
self.letsencrypt_email = provs_k3s_mixin_config['letsencrypt_email']
|
||||
self.put('letsencrypt_email', self.letsencrypt_email)
|
||||
self.letsencrypt_endpoint = provs_k3s_mixin_config['letsencrypt_endpoint']
|
||||
self.put('letsencrypt_endpoint', self.letsencrypt_endpoint)
|
||||
self.echo = provs_k3s_mixin_config['echo']
|
||||
self.put('echo', self.echo)
|
||||
self.k3s_config_template_text = provs_k3s_mixin_config['k3s_config_template']
|
||||
self.k3s_config_template = Template(
|
||||
provs_k3s_mixin_config['k3s_config_template'])
|
||||
self.put('k3s_config_template', self.k3s_config_template)
|
||||
self.app_filename_to_provision = provs_k3s_mixin_config['app_filename_to_provision']
|
||||
self.put('app_filename_to_provision', self.app_filename_to_provision)
|
||||
|
||||
def update_runtime_config(self, fqdn, ipv4, ipv6=None):
|
||||
self.fqdn = fqdn
|
||||
|
|
Loading…
Reference in a new issue