From the SlapOS console, type the following command. You should replace 'COMP-XXXX' by the identifier of your SlapOS Node:
import json
software_url = 'https://lab.nexedi.com/nexedi/slapos/raw/master/software/slapos-master/software.cfg'
# Choose a SlapOS Node
# If you are deploying SlapOS Master with Webrunner, then computer_id is 'slaprunner'
computer_id = 'COMP-XXXX'
parameter_dict = {
"timezone": "UTC",
"site-id": "erp5",
"bt5": "erp5_full_text_myisam_catalog slapos_configurator",
"zope-partition-dict": {
"activities-node": { # Not needed for webrunner dev instance
"family": "activities",
"thread-amount": 3,
"instance-count": 1,
"timerserver-interval": 1,
"computer-guid": computer_id,
},
"distribution-node": { # Not needed for webrunner dev instance
"family": "distribution",
"thread-amount": 1,
"instance-count": 1,
"computer-guid": computer_id,
"port-base": 2210,
"timerserver-interval": 1,
},
"admin-node": {
"family": "admin",
"thread-amount": 1,
"instance-count": 1,
"port-base": 2220,
"computer-guid": computer_id
},
"web-node": { # Not needed for webrunner dev instance
"family": "web",
"thread-amount": 2,
"instance-count": 1,
"computer-guid": computer_id,
"port-base": 2230,
},
"service-slapos": {
"family": "service",
"thread-amount": 2,
"instance-count": 1,
"computer-guid": computer_id,
"port-base": 2240,
"ssl-authentication": True,
"backend-path": "/%(site-id)s/portal_slap",
},
},
"mariadb-computer-guid": computer_id,
"mariadb": {
"test-database-amount": 0
},
"zodb-software-type": "zeo",
"zodb-computer-guid": computer_id
}
# If your are deploying SlapOS Master with Webrunner, don't set "certificate-authority-path" parameter
ca_path = '/etc/slapos-ssl'
parameter_dict["shared-certificate-authority-path"] = ca_path
# Choose a title
title = "SlapOS Master on COMP-XXXX"
request(software_url,
title,
filter_kw={'computer_guid': computer_id},
software_type='create-erp5-site',
partition_parameter_kw={
'_': json.dumps(parameter_dict, sort_keys=True, indent=2),
}
)