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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos
Commits
85e6f0aa
Commit
85e6f0aa
authored
Feb 28, 2020
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kvm: use switch-softwaretype instead of softwaretype
parent
9d6738e2
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
55 additions
and
28 deletions
+55
-28
software/kvm/buildout.hash.cfg
software/kvm/buildout.hash.cfg
+6
-6
software/kvm/instance-kvm-cluster.cfg.jinja2.in
software/kvm/instance-kvm-cluster.cfg.jinja2.in
+8
-0
software/kvm/instance-kvm-export.cfg.jinja2
software/kvm/instance-kvm-export.cfg.jinja2
+5
-0
software/kvm/instance-kvm-import.cfg.jinja2.in
software/kvm/instance-kvm-import.cfg.jinja2.in
+5
-0
software/kvm/instance-kvm.cfg.jinja2
software/kvm/instance-kvm.cfg.jinja2
+8
-0
software/kvm/instance-nbd.cfg.jinja2
software/kvm/instance-nbd.cfg.jinja2
+4
-5
software/kvm/instance.cfg.in
software/kvm/instance.cfg.in
+12
-9
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+2
-2
stack/resilient/pbsready-export.cfg.in
stack/resilient/pbsready-export.cfg.in
+1
-6
stack/resilient/pbsready.cfg.in
stack/resilient/pbsready.cfg.in
+4
-0
No files found.
software/kvm/buildout.hash.cfg
View file @
85e6f0aa
...
@@ -15,15 +15,15 @@
...
@@ -15,15 +15,15 @@
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
a236b719aaac61ac342ada0ce569151a
md5sum =
c9d4356b5148ed8ff8c4f3da63c137ce
[template-kvm]
[template-kvm]
filename = instance-kvm.cfg.jinja2
filename = instance-kvm.cfg.jinja2
md5sum =
82188df85015cdc4146dfb90d30170db
md5sum =
0db4ed796808b892a2e8a0aea704b13e
[template-kvm-cluster]
[template-kvm-cluster]
filename = instance-kvm-cluster.cfg.jinja2.in
filename = instance-kvm-cluster.cfg.jinja2.in
md5sum =
2e743132ba4e001f784791311df9ba6a
md5sum =
6f4c60f4366728021a6e438ad3dc6956
[template-kvm-resilient]
[template-kvm-resilient]
filename = instance-kvm-resilient.cfg.jinja2
filename = instance-kvm-resilient.cfg.jinja2
...
@@ -31,7 +31,7 @@ md5sum = 7de5756f59ef7d823cd8ed33e6d15230
...
@@ -31,7 +31,7 @@ md5sum = 7de5756f59ef7d823cd8ed33e6d15230
[template-kvm-import]
[template-kvm-import]
filename = instance-kvm-import.cfg.jinja2.in
filename = instance-kvm-import.cfg.jinja2.in
md5sum =
97a8ff8a5891678274b14481dfc5214c
md5sum =
bd7e5db872b0dbe7716ec49c3907c401
[template-kvm-import-script]
[template-kvm-import-script]
filename = template/kvm-import.sh.jinja2
filename = template/kvm-import.sh.jinja2
...
@@ -39,7 +39,7 @@ md5sum = cd0008f1689dfca9b77370bc4d275b70
...
@@ -39,7 +39,7 @@ md5sum = cd0008f1689dfca9b77370bc4d275b70
[template-kvm-export]
[template-kvm-export]
filename = instance-kvm-export.cfg.jinja2
filename = instance-kvm-export.cfg.jinja2
md5sum =
00ce5e6da3c833d9d9d1825311f11a81
md5sum =
f12df4256eb5bd31a01c0ddc4b3897bb
[template-kvm-export-script]
[template-kvm-export-script]
filename = template/kvm-export.sh.jinja2
filename = template/kvm-export.sh.jinja2
...
@@ -47,7 +47,7 @@ md5sum = b617d64de73de1eed518185f310bbc82
...
@@ -47,7 +47,7 @@ md5sum = b617d64de73de1eed518185f310bbc82
[template-nbd]
[template-nbd]
filename = instance-nbd.cfg.jinja2
filename = instance-nbd.cfg.jinja2
md5sum =
90a0d4d79601fc1a2f7ea870d6439fc5
md5sum =
6ea26f88252bf899c966d0f5675e7176
[template-ansible-promise]
[template-ansible-promise]
filename = template/ansible-promise.in
filename = template/ansible-promise.in
...
...
software/kvm/instance-kvm-cluster.cfg.jinja2.in
View file @
85e6f0aa
...
@@ -19,6 +19,14 @@ config-{{ name }} = {{ dumps(value) }}
...
@@ -19,6 +19,14 @@ config-{{ name }} = {{ dumps(value) }}
{% endif -%}
{% endif -%}
{% endmacro -%}
{% endmacro -%}
[slap-network-information]
global-ipv6 = {{ ipv6 }}
[slap-parameter]
{% for k, v in slapparameter_dict.items() -%}
{{ k }} = {{ v }}
{% endfor -%}
[request-common]
[request-common]
recipe = slapos.cookbook:request
recipe = slapos.cookbook:request
software-url = ${slap-connection:software-release-url}
software-url = ${slap-connection:software-release-url}
...
...
software/kvm/instance-kvm-export.cfg.jinja2
View file @
85e6f0aa
...
@@ -20,6 +20,11 @@ parts +=
...
@@ -20,6 +20,11 @@ parts +=
# monitor parts
# monitor parts
monitor-base
monitor-base
[slap-parameter]
{% for k, v in slapparameter_dict.items() -%}
{{ k }} = {{ v }}
{% endfor -%}
# Create the exporter executable, which is a simple shell script
# Create the exporter executable, which is a simple shell script
[exporter]
[exporter]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/kvm/instance-kvm-import.cfg.jinja2.in
View file @
85e6f0aa
...
@@ -12,6 +12,11 @@ parts +=
...
@@ -12,6 +12,11 @@ parts +=
extends =
extends =
{{ pbsready_import_template }}
{{ pbsready_import_template }}
[slap-parameter]
{% for k, v in slapparameter_dict.items() -%}
{{ k }} = {{ v }}
{% endfor -%}
[resilient-publish-connection-parameter]
[resilient-publish-connection-parameter]
monitor-base-url = ${monitor-publish-parameters:monitor-base-url}
monitor-base-url = ${monitor-publish-parameters:monitor-base-url}
monitor-url = ${monitor-publish-parameters:monitor-url}
monitor-url = ${monitor-publish-parameters:monitor-url}
...
...
software/kvm/instance-kvm.cfg.jinja2
View file @
85e6f0aa
...
@@ -31,6 +31,10 @@
...
@@ -31,6 +31,10 @@
{% do extends_list.append(template_monitor) -%}
{% do extends_list.append(template_monitor) -%}
{% do extends_list.append(logrotate_cfg) -%}
{% do extends_list.append(logrotate_cfg) -%}
[slap-network-information]
local-ipv4 = {{ slap_configuration['ipv4-random'] }}
global-ipv6 = {{ slap_configuration['ipv6-random'] }}
[directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc
etc = ${buildout:directory}/etc
...
@@ -749,6 +753,10 @@ data-to-vm =
...
@@ -749,6 +753,10 @@ data-to-vm =
# Change keyboard layout language (Change to en-us if you face some bad bihaviors)
# Change keyboard layout language (Change to en-us if you face some bad bihaviors)
keyboard-layout-language = fr
keyboard-layout-language = fr
{% for k, v in slapparameter_dict.items() -%}
{{ k }} = {{ v }}
{% endfor -%}
#############################
#############################
#
#
# Instanciate kvm (Buildout Section)
# Instanciate kvm (Buildout Section)
...
...
software/kvm/instance-nbd.cfg.jinja2
View file @
85e6f0aa
...
@@ -9,9 +9,8 @@ parts =
...
@@ -9,9 +9,8 @@ parts =
onetimeupload-promise
onetimeupload-promise
publish-connection-information
publish-connection-information
extends = {{ template_monitor }}
extends = {{ template_monitor }}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
{% set ipv6 = slap_configuration['ipv6-random'] -%}
offline = true
[rootdirectory]
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
...
@@ -27,7 +26,7 @@ watched-services = ${rootdirectory:etc}/service
...
@@ -27,7 +26,7 @@ watched-services = ${rootdirectory:etc}/service
[nbd-instance]
[nbd-instance]
recipe = slapos.cookbook:nbdserver
recipe = slapos.cookbook:nbdserver
ip =
${slap-network-information:global-ipv6
}
ip =
{{ ipv6 }
}
port = 1024
port = 1024
image-path = ${onetimeupload-instance:image-path}
image-path = ${onetimeupload-instance:image-path}
qemu-path = {{ qemu_nbd_executable_location }}
qemu-path = {{ qemu_nbd_executable_location }}
...
@@ -55,7 +54,7 @@ bytes = 24
...
@@ -55,7 +54,7 @@ bytes = 24
[onetimeupload-instance]
[onetimeupload-instance]
recipe = slapos.cookbook:onetimeupload
recipe = slapos.cookbook:onetimeupload
ip =
${slap-network-information:global-ipv6
}
ip =
{{ ipv6 }
}
port = {{ slapparameter_dict.get('otu-port', 8080) }}
port = {{ slapparameter_dict.get('otu-port', 8080) }}
image-path = ${rootdirectory:srv}/cdrom.iso
image-path = ${rootdirectory:srv}/cdrom.iso
log-path = ${rootdirectory:log}/onetimeupload.log
log-path = ${rootdirectory:log}/onetimeupload.log
...
...
software/kvm/instance.cfg.in
View file @
85e6f0aa
...
@@ -8,18 +8,21 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
...
@@ -8,18 +8,21 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
extends = ${template-resilient-templates:output}
extends = ${template-resilient-templates:output}
[switch_softwaretype]
[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:s
witch-s
oftwaretype
default = $${:kvm}
default = $${:kvm}
kvm-cluster =
$${dynamic-template-kvm-cluster:rendered}
kvm-cluster =
dynamic-template-kvm-cluster:rendered
kvm =
$${dynamic-template-kvm:rendered}
kvm =
dynamic-template-kvm:rendered
nbd =
$${dynamic-template-nbd:rendered}
nbd =
dynamic-template-nbd:rendered
kvm-resilient =
$${dynamic-template-kvm-resilient:rendered}
kvm-resilient =
dynamic-template-kvm-resilient:rendered
kvm-import =
$${dynamic-template-kvm-import:rendered}
kvm-import =
dynamic-template-kvm-import:rendered
kvm-export =
$${dynamic-template-kvm-export:rendered}
kvm-export =
dynamic-template-kvm-export:rendered
frozen = ${instance-frozen:output}
frozen = instance-frozen:rendered
pull-backup = ${template-pull-backup:output}
pull-backup = template-pull-backup:rendered
# BBB
RootSoftwareInstance = $${:default}
# XXX - If this configuration is not generated by slapgrid, use empty values
# XXX - If this configuration is not generated by slapgrid, use empty values
[storage-configuration]
[storage-configuration]
...
...
stack/resilient/buildout.hash.cfg
View file @
85e6f0aa
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# not need these here).
# not need these here).
[pbsready]
[pbsready]
filename = pbsready.cfg.in
filename = pbsready.cfg.in
md5sum =
5e0dcd4c290f0b46cb2d316dc1c9c011
md5sum =
66331047b7dbf2513c5726d5d1647320
[pbsready-import]
[pbsready-import]
filename = pbsready-import.cfg.in
filename = pbsready-import.cfg.in
...
@@ -22,7 +22,7 @@ md5sum = d813c43ed00eff868fb13bc75b045336
...
@@ -22,7 +22,7 @@ md5sum = d813c43ed00eff868fb13bc75b045336
[pbsready-export]
[pbsready-export]
filename = pbsready-export.cfg.in
filename = pbsready-export.cfg.in
md5sum = 2
e804e06b5203c3f127c31a1704c48bd
md5sum = 2
b0c71b085cfe8017f28098c160b1f49
[template-pull-backup]
[template-pull-backup]
filename = instance-pull-backup.cfg.in
filename = instance-pull-backup.cfg.in
...
...
stack/resilient/pbsready-export.cfg.in
View file @
85e6f0aa
...
@@ -39,7 +39,7 @@ name = exporter
...
@@ -39,7 +39,7 @@ name = exporter
title = Dumping ${slap-parameter:namebase}
title = Dumping ${slap-parameter:namebase}
executable = ${exporter:wrapper}
executable = ${exporter:wrapper}
wrapper = ${rootdirectory:bin}/exporter
wrapper = ${rootdirectory:bin}/exporter
notify =
${slap-parameter:notify
}
notify =
{{ slapparameter_dict.get('notify', '') }
}
pidfile = ${resilient-directory:pid}/${:name}.pid
pidfile = ${resilient-directory:pid}/${:name}.pid
max-run = 3
max-run = 3
...
@@ -85,8 +85,3 @@ recipe = slapos.cookbook:random.time
...
@@ -85,8 +85,3 @@ recipe = slapos.cookbook:random.time
recipe = slapos.cookbook:publish-early
recipe = slapos.cookbook:publish-early
-init =
-init =
resiliency-backup-periodicity gen-resiliency-backup-periodicity:time
resiliency-backup-periodicity gen-resiliency-backup-periodicity:time
[slap-parameter]
# In cron.d format (i.e things like */15 * * * * are accepted).
resiliency-backup-periodicity =
notify =
\ No newline at end of file
stack/resilient/pbsready.cfg.in
View file @
85e6f0aa
...
@@ -22,6 +22,10 @@ parts +=
...
@@ -22,6 +22,10 @@ parts +=
extends =
extends =
${monitor2-template:rendered}
${monitor2-template:rendered}
[slap-network-information]
local-ipv4 = $${slap-configuration:ipv4-random}
global-ipv6 = $${slap-configuration:ipv6-random}
#----------------
#----------------
#--
#--
#-- Creation of all needed directories.
#-- Creation of all needed directories.
...
...
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