Commit c6dee247 authored by Boxiang Sun's avatar Boxiang Sun

kvm: port fixup

parent 35cf7722
...@@ -19,7 +19,7 @@ md5sum = abd8493f35e153a5984ed22c8fe49792 ...@@ -19,7 +19,7 @@ md5sum = abd8493f35e153a5984ed22c8fe49792
[template-kvm] [template-kvm]
filename = instance-kvm.cfg.jinja2 filename = instance-kvm.cfg.jinja2
md5sum = 900faa43cd9bb599aa7be0cdc64531bf md5sum = 780332c37e5b7ad4f799bab417685fe9
[template-kvm-cluster] [template-kvm-cluster]
filename = instance-kvm-cluster.cfg.jinja2.in filename = instance-kvm-cluster.cfg.jinja2.in
......
...@@ -668,12 +668,18 @@ context = ...@@ -668,12 +668,18 @@ context =
raw docroot {{ novnc_location }} raw docroot {{ novnc_location }}
raw mime {{ nginx_mime }} raw mime {{ nginx_mime }}
[kvm-nginx-port]
recipe = slapos.cookbook:free_port
minimum = 6080
maximum = 6100
ip = {{ partition_ipv6 }}
[nginx-params] [nginx-params]
path-pid = ${directory:run}/nginx.pid path-pid = ${directory:run}/nginx.pid
path-error-log = ${directory:log}/nginx-error.log path-error-log = ${directory:log}/nginx-error.log
path-access-log = ${directory:log}/nginx-access.log path-access-log = ${directory:log}/nginx-access.log
ip = ${slap-network-information:global-ipv6} ip = ${slap-network-information:global-ipv6}
port = 6080 port = ${kvm-nginx-port:port}
websocket-ip = ${kvm-parameter-dict:vnc-ip} websocket-ip = ${kvm-parameter-dict:vnc-ip}
websocket-port = ${kvm-parameter-dict:vnc-websocket-port} websocket-port = ${kvm-parameter-dict:vnc-websocket-port}
websocket-path = websockify websocket-path = websockify
...@@ -1081,6 +1087,12 @@ md5sum = {{ bootstrap_script_url[1] }} ...@@ -1081,6 +1087,12 @@ md5sum = {{ bootstrap_script_url[1] }}
name = vm-bootstrap name = vm-bootstrap
log = ${directory:public}/ansible/vm-bootstrap.log log = ${directory:public}/ansible/vm-bootstrap.log
[kvm-slapos-parameter-port]
recipe = slapos.cookbook:free_port
minimum = 8081
maximum = 8101
ip = {{ partition_ipv6 }}
[slap-parameter] [slap-parameter]
# Default values if not specified # Default values if not specified
frontend-software-type = RootSoftwareInstance frontend-software-type = RootSoftwareInstance
...@@ -1131,7 +1143,7 @@ external-disk = {} ...@@ -1131,7 +1143,7 @@ external-disk = {}
# Help to get some configuration files into the vm from http # Help to get some configuration files into the vm from http
enable-http-server = False enable-http-server = False
httpd-port = 8081 httpd-port = ${kvm-slapos-parameter-port:port}
# for auto config, the public key file will be available in the VM via url http://10.0.2.100/authorized_key if use-nat = True # for auto config, the public key file will be available in the VM via url http://10.0.2.100/authorized_key if use-nat = True
authorized-key = authorized-key =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment