"description":"Url of the backend if it is diferent from url parameter",
"type":"string",
"pattern":"^(http|https|ftp)://"
},
"custom_domain":{
"custom_domain":{
"title":"Custom Domain",
"title":"Custom Domain",
"description":"Custom Domain to use for the website",
"description":"Custom Domain to use for the website",
...
@@ -23,7 +29,6 @@
...
@@ -23,7 +29,6 @@
"type":"string",
"type":"string",
"default":""
"default":""
},
},
"type":{
"type":{
"title":"Backend Type",
"title":"Backend Type",
"description":"Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
"description":"Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
"description":"Text content which will be written in a file data of cluster http server. All VM will be able to download that file via the static URL of cluster HTTP server: https://10.0.2.101/FOLDER_HASH/data.",
"description":"Text content which will be written in a file data of cluster http server. All VM will be able to download that file via the static URL of cluster HTTP server: https://10.0.2.101/FOLDER_HASH/data.",
"type":"string"
"type":"string"
},
},
"enable-monitor":{
"title":"Enable Monitoring on this cluster",
"description":"Deploy monitor instance to this kvm instance. It help to check instance status, log and promise results.",
"type":"boolean",
"default":true
},
"monitor-interface-url":{
"monitor-interface-url":{
"title":"Monitor Web Interface URL",
"title":"Monitor Web Interface URL",
"description":"Give Url of HTML web interface that will be used to render this monitor instance.",
"description":"Give Url of HTML web interface that will be used to render this monitor instance.",
"type":"string",
"type":"string",
"format":"uri"
"format":"uri",
"default":"https://monitor.app.officejs.com"
},
},
"monitor-cors-domains":{
"monitor-cors-domains":{
"title":"Monitor CORS domains",
"title":"Monitor CORS domains",
"description":"List of cors domains separated with space. Needed for ajax query on this monitor instance from a different domain.",
"description":"List of cors domains separated with space. Needed for ajax query on this monitor instance from a different domain.",
"type":"string",
"type":"string",
"default":""
"default":"monitor.app.officejs.com"
},
},
"kvm-partition-dict":{
"kvm-partition-dict":{
"title":"kvm instances definition",
"title":"kvm instances definition",
...
@@ -377,11 +384,11 @@
...
@@ -377,11 +384,11 @@
"description":"Text content which will be written in a file 'data' of http server of this virtual machine instance. The file will be available via URL: http://10.0.2.100/data in the VM.",
"description":"Text content which will be written in a file 'data' of http server of this virtual machine instance. The file will be available via URL: http://10.0.2.100/data in the VM.",
"type":"string"
"type":"string"
},
},
"enable-monitor":{
"disable-ansible-promise":{
"title":"Deploy monitoring tools",
"title":"Desactivate Ansible promise check",
"description":"Deploy monitor instance to this kvm instance. It help to check instance status, log and promise results.",
"description":"If the VM of cluster doesn't run Ansible and report status to this SlapOS instances, then this allow to disable ansible promise so your instance will not fail to check ansible promise.",
@@ -60,31 +60,29 @@ SOFTWARE_RELEASE=$(echo $OLD_SOFTWARE_RELEASE | sed -e 's/\(.*\)\(slappart\|test
...
@@ -60,31 +60,29 @@ SOFTWARE_RELEASE=$(echo $OLD_SOFTWARE_RELEASE | sed -e 's/\(.*\)\(slappart\|test
$SQLITE3 $DATABASE "update partition11 set software_release='$SOFTWARE_RELEASE' where software_release NOT NULL;"
$SQLITE3 $DATABASE "update partition11 set software_release='$SOFTWARE_RELEASE' where software_release NOT NULL;"
$SQLITE3 $DATABASE "update software11 set url='$SOFTWARE_RELEASE' where url='$OLD_SOFTWARE_RELEASE';" || $SQLITE3 $DATABASE "delete from software11 where url='$OLD_SOFTWARE_RELEASE';"
$SQLITE3 $DATABASE "update software11 set url='$SOFTWARE_RELEASE' where url='$OLD_SOFTWARE_RELEASE';" || $SQLITE3 $DATABASE "delete from software11 where url='$OLD_SOFTWARE_RELEASE';"
# Change slapproxy database to have all instances stopped
# Change slapproxy database to have all instances stopped
$SQLITE3 $DATABASE "update partition11 set slap_state='stopped';"
$SQLITE3 $DATABASE "update partition11 set requested_state='stopped';"
# Change slapproxy database to get correct IPs
IPV4={{ ipv4 }}
IPV6={{ ipv6 }}
$SQLITE3 $DATABASE "update partition_network11 set address='$IPV4' where netmask='255.255.255.255';"
$SQLITE3 $DATABASE "update partition_network11 set address='$IPV6' where netmask='ffff:ffff:ffff::';"
# Run slapproxy on different port (in case of running inside of erp5testnode
MASTERURL="http://{{ ipv4 }}:{{ proxy_port }}"
# with only one IP and port 50000 already taken by slapproxy of main instance)