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
Ekaterina
slapos
Commits
f1dc2bd9
Commit
f1dc2bd9
authored
Oct 15, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use newer 'service' path.
Requires slapos.core 0.32.2
parent
e9aaddc1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
software/kvm/instance-kvm.cfg
software/kvm/instance-kvm.cfg
+32
-32
software/kvm/software.cfg
software/kvm/software.cfg
+3
-3
No files found.
software/kvm/instance-kvm.cfg
View file @
f1dc2bd9
...
@@ -17,46 +17,46 @@ eggs-directory = ${buildout:eggs-directory}
...
@@ -17,46 +17,46 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
offline = true
[
root
directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
etc = $${buildout:directory}/etc
bin = $${buildout:directory}/bin
bin = $${buildout:directory}/bin
srv = $${buildout:directory}/srv
srv = $${buildout:directory}/srv
var = $${buildout:directory}/var
var = $${buildout:directory}/var
scripts = $${:etc}/run
[basedirectory]
services = $${:etc}/service
recipe = slapos.cookbook:mkdirectory
promises = $${:etc}/promise
services = $${rootdirectory:etc}/run
novnc-conf = $${:etc}/novnc
promises = $${rootdirectory:etc}/promise
run = $${:var}/run
novnc-conf = $${rootdirectory:etc}/novnc
ca-dir = $${:srv}/ssl
run = $${rootdirectory:var}/run
ca-dir = $${rootdirectory:srv}/ssl
[create-mac]
[create-mac]
recipe = slapos.cookbook:generate.mac
recipe = slapos.cookbook:generate.mac
storage-path = $${
root
directory:srv}/mac
storage-path = $${directory:srv}/mac
[gen-passwd]
[gen-passwd]
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
storage-path = $${
root
directory:srv}/passwd
storage-path = $${directory:srv}/passwd
bytes = 4
bytes = 4
[kvm-instance]
[kvm-instance]
# XXX-Cedric: change "KVM" recipe to simple "create wrappers". No need for this
# Specific code
recipe = slapos.cookbook:kvm
recipe = slapos.cookbook:kvm
vnc-ip = $${slap-network-information:local-ipv4}
vnc-ip = $${slap-network-information:local-ipv4}
vnc-port = 5901
vnc-port = 5901
nbd-ip = $${slap-parameter:nbd_ip}
nbd-ip = $${slap-parameter:nbd_ip}
nbd-port = $${slap-parameter:nbd_port}
nbd-port = $${slap-parameter:nbd_port}
tap = $${slap-network-information:network-interface}
tap = $${slap-network-information:network-interface}
disk-path = $${
root
directory:srv}/virtual.qcow2
disk-path = $${directory:srv}/virtual.qcow2
disk-size = 10
disk-size = 10
socket-path = $${
root
directory:var}/qmp_socket
socket-path = $${directory:var}/qmp_socket
pid-path = $${
base
directory:run}/pid_file
pid-path = $${directory:run}/pid_file
smp-count = 1
smp-count = 1
ram-size = 1024
ram-size = 1024
mac-address = $${create-mac:mac-address}
mac-address = $${create-mac:mac-address}
runner-path = $${
base
directory:services}/kvm
runner-path = $${directory:services}/kvm
controller-path = $${
basedirectory:service
s}/kvm_controller
controller-path = $${
directory:script
s}/kvm_controller
shell-path = ${dash:location}/bin/dash
shell-path = ${dash:location}/bin/dash
qemu-path = ${kvm:location}/bin/qemu-system-x86_64
qemu-path = ${kvm:location}/bin/qemu-system-x86_64
qemu-img-path = ${kvm:location}/bin/qemu-img
qemu-img-path = ${kvm:location}/bin/qemu-img
...
@@ -64,7 +64,7 @@ passwd = $${gen-passwd:passwd}
...
@@ -64,7 +64,7 @@ passwd = $${gen-passwd:passwd}
[kvm-promise]
[kvm-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = $${
base
directory:promises}/vnc_promise
path = $${directory:promises}/vnc_promise
hostname = $${kvm-instance:vnc-ip}
hostname = $${kvm-instance:vnc-ip}
port = $${kvm-instance:vnc-port}
port = $${kvm-instance:vnc-port}
...
@@ -83,15 +83,15 @@ ssl-cert-path = $${ca-novnc:cert-file}
...
@@ -83,15 +83,15 @@ ssl-cert-path = $${ca-novnc:cert-file}
[websockify-sighandler]
[websockify-sighandler]
recipe = slapos.cookbook:signalwrapper
recipe = slapos.cookbook:signalwrapper
wrapper-path = $${
base
directory:services}/websockify
wrapper-path = $${directory:services}/websockify
wrapped-path = $${novnc-instance:path}
wrapped-path = $${novnc-instance:path}
[certificate-authority]
[certificate-authority]
recipe = slapos.cookbook:certificate_authority
recipe = slapos.cookbook:certificate_authority
openssl-binary = ${openssl:location}/bin/openssl
openssl-binary = ${openssl:location}/bin/openssl
ca-dir = $${
base
directory:ca-dir}
ca-dir = $${directory:ca-dir}
requests-directory = $${cadirectory:requests}
requests-directory = $${cadirectory:requests}
wrapper = $${
base
directory:services}/certificate_authority
wrapper = $${directory:services}/certificate_authority
ca-private = $${cadirectory:private}
ca-private = $${cadirectory:private}
ca-certs = $${cadirectory:certs}
ca-certs = $${cadirectory:certs}
ca-newcerts = $${cadirectory:newcerts}
ca-newcerts = $${cadirectory:newcerts}
...
@@ -99,30 +99,30 @@ ca-crl = $${cadirectory:crl}
...
@@ -99,30 +99,30 @@ ca-crl = $${cadirectory:crl}
[cadirectory]
[cadirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
requests = $${
base
directory:ca-dir}/requests/
requests = $${directory:ca-dir}/requests/
private = $${
base
directory:ca-dir}/private/
private = $${directory:ca-dir}/private/
certs = $${
base
directory:ca-dir}/certs/
certs = $${directory:ca-dir}/certs/
newcerts = $${
base
directory:ca-dir}/newcerts/
newcerts = $${directory:ca-dir}/newcerts/
crl = $${
base
directory:ca-dir}/crl/
crl = $${directory:ca-dir}/crl/
[ca-novnc]
[ca-novnc]
<= certificate-authority
<= certificate-authority
recipe = slapos.cookbook:certificate_authority.request
recipe = slapos.cookbook:certificate_authority.request
key-file = $${
base
directory:novnc-conf}/novnc.key
key-file = $${directory:novnc-conf}/novnc.key
cert-file = $${
base
directory:novnc-conf}/novnc.crt
cert-file = $${directory:novnc-conf}/novnc.crt
executable = $${
root
directory:bin}/novnc
executable = $${directory:bin}/novnc
wrapper = $${
root
directory:bin}/websockify
wrapper = $${directory:bin}/websockify
[novnc-promise]
[novnc-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = $${
base
directory:promises}/novnc_promise
path = $${directory:promises}/novnc_promise
hostname = $${novnc-instance:ip}
hostname = $${novnc-instance:ip}
port = $${novnc-instance:port}
port = $${novnc-instance:port}
[kvm-monitor]
[kvm-monitor]
recipe = slapos.cookbook:generic.slapmonitor
recipe = slapos.cookbook:generic.slapmonitor
db-path = $${
root
directory:srv}/slapmonitor_database
db-path = $${directory:srv}/slapmonitor_database
[request-slave-frontend]
[request-slave-frontend]
...
@@ -154,7 +154,7 @@ url = $${request-slave-frontend:connection-url}/vnc_auto.html?host=$${request-sl
...
@@ -154,7 +154,7 @@ url = $${request-slave-frontend:connection-url}/vnc_auto.html?host=$${request-sl
[frontend-promise]
[frontend-promise]
recipe = slapos.cookbook:check_url_available
recipe = slapos.cookbook:check_url_available
path = $${
base
directory:promises}/frontend_promise
path = $${directory:promises}/frontend_promise
url = $${publish-kvm-frontend-connection-information:url}
url = $${publish-kvm-frontend-connection-information:url}
dash_path = ${dash:location}/bin/dash
dash_path = ${dash:location}/bin/dash
curl_path = ${curl:location}/bin/curl
curl_path = ${curl:location}/bin/curl
...
...
software/kvm/software.cfg
View file @
f1dc2bd9
...
@@ -119,7 +119,7 @@ command =
...
@@ -119,7 +119,7 @@ command =
[template-kvm]
[template-kvm]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm.cfg
url = ${:_profile_base_location_}/instance-kvm.cfg
md5sum = 6
aaa9b6ef059a2ed2f022834151086ab
md5sum = 6
8478e759138a42f09518d01da548b8a
output = ${buildout:directory}/template-kvm.cfg
output = ${buildout:directory}/template-kvm.cfg
mode = 0644
mode = 0644
...
...
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