Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Lisa Casino
slapos.package
Commits
1cd90046
Commit
1cd90046
authored
Apr 01, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Include slapos master standalone setup
parent
43093607
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
0 deletions
+92
-0
playbook/install-script.yml
playbook/install-script.yml
+4
-0
playbook/roles/standalone-shared/templates/request-slapos-master.j2
...oles/standalone-shared/templates/request-slapos-master.j2
+71
-0
playbook/slapos-master-standalone.yml
playbook/slapos-master-standalone.yml
+17
-0
No files found.
playbook/install-script.yml
View file @
1cd90046
...
...
@@ -59,6 +59,8 @@
-
{
role
:
"
install-script"
,
channel
:
"
slapos"
,
playbook_yml
:
"
gnet-upgrader-install.yml"
,
script_path
:
"
install/gnet/upgrader-install"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos"
,
playbook_yml
:
"
test-suite.yml"
,
script_path
:
"
install/test-suite"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos"
,
playbook_yml
:
"
vifib-upgrader-install.yml"
,
script_path
:
"
install/vifib-upgrader-install"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos"
,
playbook_yml
:
"
webrunner-standalone.yml"
,
script_path
:
"
install/webrunner-standalone"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos"
,
playbook_yml
:
"
slapos-master-standalone.yml"
,
script_path
:
"
install/slapos-master-standalone"
}
-
{
role
:
"
install-script"
,
channel
:
"
stable"
,
playbook_yml
:
"
imt-server-update.yml"
,
script_path
:
"
install/imt/slapos-update"
}
...
...
@@ -77,6 +79,8 @@
-
{
role
:
"
install-script"
,
channel
:
"
slapos_testing"
,
playbook_yml
:
"
gnet-re6stnet.yml"
,
script_path
:
"
install/testing/gnet/re6st"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos_testing"
,
playbook_yml
:
"
gnet-server.yml"
,
script_path
:
"
install/testing/gnet/slapos"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos_testing"
,
playbook_yml
:
"
test-suite.yml"
,
script_path
:
"
install/testing/test-suite"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos_testing"
,
playbook_yml
:
"
webrunner-standalone.yml"
,
script_path
:
"
install/testing/webrunner-standalone"
}
-
{
role
:
"
install-script"
,
channel
:
"
slapos_testing"
,
playbook_yml
:
"
slapos-master-standalone.yml"
,
script_path
:
"
install/testing/slapos-master-standalone"
}
-
{
role
:
"
install-script"
,
channel
:
"
unstable"
,
playbook_yml
:
"
imt-server-update.yml"
,
script_path
:
"
install/unstable/imt/slapos-update"
}
-
{
role
:
"
install-script"
,
channel
:
"
unstable"
,
playbook_yml
:
"
imt-server.yml"
,
script_path
:
"
install/unstable/imt/slapos"
}
...
...
playbook/roles/standalone-shared/templates/request-slapos-master.j2
0 → 100644
View file @
1cd90046
import json
software_url = '{{ software_release_url }}'
# Choose a SlapOS Node
# If you are deploying SlapOS Master with Webrunner, then computer_id is 'slaprunner'
computer_id = 'local_computer'
supply(software_url, computer_id)
parameter_dict = {
"timezone": "UTC",
"site-id": "erp5",
"bt5": "erp5_full_text_myisam_catalog slapos_configurator",
"developer-list": ["zope"],
"inituser-login": "zope",
"inituser-password": "insecure",
"zope-partition-dict": {
"activities-node": {
"family": "activities",
"thread-amount": 3,
"instance-count": 1,
"timerserver-interval": 1
},
"distribution-node": {
"family": "distribution",
"thread-amount": 1,
"instance-count": 1,
"port-base": 2210,
"timerserver-interval": 1
},
"admin-node": {
"family": "admin",
"thread-amount": 1,
"instance-count": 1,
"port-base": 2220
},
"web-node": {
"family": "web",
"thread-amount": 2,
"instance-count": 1,
"port-base": 2230
},
"service-slapos": {
"family": "service",
"thread-amount": 2,
"instance-count": 1,
"port-base": 2240,
"ssl-authentication": True,
"backend-path": "/%(site-id)s/portal_slap"
}
},
"mariadb": {
"test-database-amount": 0
},
"zodb-software-type": "zeo"
}
ca_path = '/etc/slapos-ssl'
parameter_dict["shared-certificate-authority-path"] = ca_path
# Choose a title
title = "instance-of-{{ playbook_name }}"
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),
}
)
playbook/slapos-master-standalone.yml
0 → 100644
View file @
1cd90046
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
vars
:
software_release_url
:
https://lab.node.vifib.com/nexedi/slapos/raw/1.0.21/software/slapos-master/software.cfg
startup_playbook_id
:
slapos-master-standalone.yml
playbook_name
:
slapos-master
request_instance_template
:
request-slapos-master.j2
pre_tasks
:
-
file
:
path=/etc/slapos-ssl owner=root group=root mode=0777 state=directory
roles
:
-
standalone-shared
-
{
role
:
package
,
package_name
:
socat
,
package_state
:
present
}
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