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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
slapos
Commits
40ff9f11
Commit
40ff9f11
authored
Jul 19, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using slapos.cookbook:softwaretype for ERP5 instanciation
parent
87df1770
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
32 deletions
+29
-32
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+9
-9
stack/erp5/instance-balancer.cfg.in
stack/erp5/instance-balancer.cfg.in
+0
-1
stack/erp5/instance-cloudoo.cfg.in
stack/erp5/instance-cloudoo.cfg.in
+1
-2
stack/erp5/instance-erp5.cfg.in
stack/erp5/instance-erp5.cfg.in
+0
-1
stack/erp5/instance-kumofs.cfg.in
stack/erp5/instance-kumofs.cfg.in
+2
-3
stack/erp5/instance-mariadb.cfg.in
stack/erp5/instance-mariadb.cfg.in
+0
-1
stack/erp5/instance-neo.cfg.in
stack/erp5/instance-neo.cfg.in
+0
-1
stack/erp5/instance-zeo.cfg.in
stack/erp5/instance-zeo.cfg.in
+0
-2
stack/erp5/instance-zope.cfg.in
stack/erp5/instance-zope.cfg.in
+0
-1
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+17
-11
No files found.
stack/erp5/buildout.cfg
View file @
40ff9f11
...
...
@@ -171,7 +171,7 @@ context =
[template-mariadb]
< = download-base
filename = instance-mariadb.cfg.in
md5sum =
8d9ad98bde1ed97012a0a8e52339c12c
md5sum =
a0cd428ebbc6fc1d842156e93d9196be
link-binary =
${coreutils:location}/bin/basename
${coreutils:location}/bin/cat
...
...
@@ -186,12 +186,12 @@ link-binary =
[template-kumofs]
< = download-base
filename = instance-kumofs.cfg.in
md5sum =
0dd51fb85ced7e77d4a8544115f90f8e
md5sum =
90cfea3b4b38a5a1682e016eb82b391c
[template-cloudooo]
< = download-base
filename = instance-cloudoo.cfg.in
md5sum =
5791aa6ae33944ccba4c04c91e666aae
md5sum =
9622cc0a21b6caf9c9beb5efea3e1998
[template-zope-conf]
< = download-base
...
...
@@ -213,7 +213,7 @@ md5sum = 564006953b7d7a12d40a14b6648b32f0
# XXX: "template.cfg" is hardcoded in instanciation recipe
filename = template.cfg
template = ${:_profile_base_location_}/instance.cfg.in
md5sum =
fee9240473690a8a5c7add2f8d350338
md5sum =
c54e4918aacce2c0099384509801a2e7
extra-context =
key mariadb_link_binary template-mariadb:link-binary
key zope_link_binary template-zope:link-binary
...
...
@@ -269,22 +269,22 @@ extra-context =
[template-erp5]
< = download-base
filename = instance-erp5.cfg.in
md5sum =
d58fcae1380f208954362ff2a439bb41
md5sum =
7ee011ae179a07f6d272d140e743d80d
[template-neo]
< = download-base
filename = instance-neo.cfg.in
md5sum =
1499c42d196f6627efb904f7e4d48b1b
md5sum =
7735d535aa34dfdc18a776b80bc0ca3d
[template-zeo]
< = download-base
filename = instance-zeo.cfg.in
md5sum =
8453652206eac7b165c86cf236b87cbf
md5sum =
4d2207931975e580d04d0b0506034564
[template-zope]
< = download-base
filename = instance-zope.cfg.in
md5sum =
0469c25e4a5fdaa9e0ab12feeb8d214d
md5sum =
25190a7110bd108bae81c484e729e35c
link-binary =
${coreutils:location}/bin/basename
${coreutils:location}/bin/cat
...
...
@@ -311,7 +311,7 @@ link-binary =
[template-balancer]
< = download-base
filename = instance-balancer.cfg.in
md5sum =
9c9741c4db7e46f3cd13c0b2f392fd5d
md5sum =
16967b0dd693aaba611eb4eb6522a831
[template-logrotate-base]
< = template-jinja2-base
...
...
stack/erp5/instance-balancer.cfg.in
View file @
40ff9f11
...
...
@@ -154,6 +154,5 @@ parts +=
{{ part_list | join('\n ') }}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
{% endif %}
stack/erp5/instance-cloudoo.cfg.in
View file @
40ff9f11
...
...
@@ -10,7 +10,6 @@ parts =
{% if use_ipv6 %}promise-tunnel{% endif %}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[publish-cloudooo-connection-information]
recipe = slapos.cookbook:publish.serialised
...
...
@@ -24,7 +23,7 @@ url = cloudooo://${cloudooo-instance:ip}:${cloudooo-instance:port}/
recipe = slapos.cookbook:generic.cloudooo
# Network options
ip =
${slap-network-information:local-ipv4
}
ip =
{{ (ipv4_set | list)[0] }
}
{% set tcpv4_port = slapparameter_dict['tcpv4-port'] -%}
port = {{ tcpv4_port }}
openoffice-port = {{ tcpv4_port + 1 }}
...
...
stack/erp5/instance-erp5.cfg.in
View file @
40ff9f11
...
...
@@ -185,5 +185,4 @@ recipe = slapos.cookbook:publish.serialised
parts = publish
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
{% endif %}
stack/erp5/instance-kumofs.cfg.in
View file @
40ff9f11
...
...
@@ -15,7 +15,6 @@ parts =
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[publish-kumofs-connection-information]
recipe = slapos.cookbook:publish.serialised
...
...
@@ -30,10 +29,10 @@ recipe = slapos.cookbook:generic.kumofs
# Network options
{% if use_ipv6 -%}
ip =
${slap-network-information:global-ipv6
}
ip =
{{ (ipv6_set | list)[0] }
}
address-family = inet6
{% else -%}
ip =
${slap-network-information:local-ipv4
}
ip =
{{ (ipv4_set | list)[0] }
}
address-family = inet4
{% endif -%}
{% set tcpv4_port = slapparameter_dict['tcpv4-port'] -%}
...
...
stack/erp5/instance-mariadb.cfg.in
View file @
40ff9f11
...
...
@@ -232,5 +232,4 @@ parts =
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
{% endif %}
stack/erp5/instance-neo.cfg.in
View file @
40ff9f11
...
...
@@ -17,5 +17,4 @@ parts +=
publish
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
{% endif %}
stack/erp5/instance-zeo.cfg.in
View file @
40ff9f11
...
...
@@ -215,6 +215,4 @@ parts +=
publish
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
{% endif %}
stack/erp5/instance-zope.cfg.in
View file @
40ff9f11
...
...
@@ -297,7 +297,6 @@ bt5-repository-url = {{ slapparameter_dict['bt5-repository-url'] }}
[buildout]
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
extends =
{{ parameter_dict['instance-logrotate-cfg'] }}
parts +=
...
...
stack/erp5/instance.cfg.in
View file @
40ff9f11
...
...
@@ -4,7 +4,6 @@ parts =
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
...
...
@@ -188,7 +187,23 @@ extra-context =
raw software_type mariadb
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.recipe.build
script =
import subprocess, sys
software_type = self.buildout["slap-configuration"]["slap-software-type"]
# XXX-Antoine: We gotta find a better way to do this. I tried to check
# out how slapgrid-cp was running buildout. But it is worse than that.
args = sys.argv[:]
args += map("slap-connection:%%s=%%s".__mod__,
self.buildout["slap-connection"].iteritems())
args += ("buildout:directory=${buildout:directory}",
"buildout:installed=.installed-${:_buildout_section_name_}.cfg",
'-oc', self.options[software_type])
subprocess.check_call(args)
update_script = ${:script}
slapos_promise =
slapos_update_promise = ${:slapos_promise}
default = ${dynamic-template-erp5:rendered}
# BBB
cluster = ${dynamic-template-erp5-cluster:rendered}
...
...
@@ -203,12 +218,3 @@ balancer = ${dynamic-template-balancer:rendered}
zodb-neo = ${dynamic-template-neo:rendered}
zodb-zeo = ${dynamic-template-zeo:rendered}
zope = ${dynamic-template-zope:rendered}
[slap-connection]
# part to migrate to new - separated words
computer-id = ${slap_connection:computer_id}
partition-id = ${slap_connection:partition_id}
server-url = ${slap_connection:server_url}
software-release-url = ${slap_connection:software_release_url}
key-file = ${slap_connection:key_file}
cert-file = ${slap_connection:cert_file}
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