Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos
Commits
bcb3b5ff
Commit
bcb3b5ff
authored
May 12, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/kvm: allow input parameters to be either bool or strings
parent
f48347f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
software/kvm/buildout.hash.cfg
software/kvm/buildout.hash.cfg
+1
-1
software/kvm/instance-kvm.cfg.jinja2
software/kvm/instance-kvm.cfg.jinja2
+6
-6
No files found.
software/kvm/buildout.hash.cfg
View file @
bcb3b5ff
...
...
@@ -19,7 +19,7 @@ md5sum = b36b6b3ccb15758d99f3b6258b141db9
[template-kvm]
filename = instance-kvm.cfg.jinja2
md5sum = f
015c14f34dc9f5290188db11f11b4df
md5sum = f
b4d76a83ff7c2d0f205d52fb314a9ee
[template-kvm-cluster]
filename = instance-kvm-cluster.cfg.jinja2.in
...
...
software/kvm/instance-kvm.cfg.jinja2
View file @
bcb3b5ff
{% set additional_frontend = slapparameter_dict.get('frontend-additional-instance-guid') %}
{% set enable_http = s
lapparameter_dict.get('enable-http-server', False)
-%}
{% set use_tap = s
lapparameter_dict.get('use-tap', True)
-%}
{% set use_nat = s
lapparameter_dict.get('use-nat', True)
-%}
{% set wipe_disk = s
lapparameter_dict.get('wipe-disk-ondestroy', False)
-%}
{% set nat_restrict = s
lapparameter_dict.get('nat-restrict-mode', False)
-%}
{% set enable_http = s
tr(slapparameter_dict.get('enable-http-server', False)).lower() == 'true'
-%}
{% set use_tap = s
tr(slapparameter_dict.get('use-tap', True)).lower() == 'true'
-%}
{% set use_nat = s
tr(slapparameter_dict.get('use-nat', True)).lower() == 'true'
-%}
{% set wipe_disk = s
tr(slapparameter_dict.get('wipe-disk-ondestroy', False)).lower() == 'true'
-%}
{% set nat_restrict = s
tr(slapparameter_dict.get('nat-restrict-mode', False)).lower() == 'true'
-%}
{% set name = slapparameter_dict.get('name', 'localhost') -%}
{% set disable_ansible_promise = s
lapparameter_dict.get('disable-ansible-promise', True)
-%}
{% set disable_ansible_promise = s
tr(slapparameter_dict.get('disable-ansible-promise', True)).lower() == 'true'
-%}
{% set instance_type = slapparameter_dict.get('type', 'standalone') -%}
{% set nat_rule_list = slapparameter_dict.get('nat-rules', '22 80 443') -%}
{% set disk_device_path = slapparameter_dict.get('disk-device-path', None) -%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment