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
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
Eric Zheng
slapos
Commits
31a153da
Commit
31a153da
authored
May 27, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abilian: publish ipv6 url, better pw
parent
29e94dd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
22 deletions
+13
-22
software/abilian/extranet_spr/instance-postgres.cfg.in
software/abilian/extranet_spr/instance-postgres.cfg.in
+2
-11
software/abilian/extranet_spr/instance-redis.cfg.in
software/abilian/extranet_spr/instance-redis.cfg.in
+9
-9
software/abilian/extranet_spr/instance.cfg.in
software/abilian/extranet_spr/instance.cfg.in
+2
-2
No files found.
software/abilian/extranet_spr/instance-postgres.cfg.in
View file @
31a153da
...
@@ -30,7 +30,7 @@ ipv4 = $${instance-parameters:ipv4}
...
@@ -30,7 +30,7 @@ ipv4 = $${instance-parameters:ipv4}
ipv4-netmask-bits = 0
ipv4-netmask-bits = 0
ipv6-random = $${instance-parameters:ipv6-random}
ipv6-random = $${instance-parameters:ipv6-random}
superuser = postgres
superuser = postgres
password = $${
gen
-passwd:passwd}
password = $${
postgres
-passwd:passwd}
port = 5432
port = 5432
dbname = db
dbname = db
# pgdata_directory is created by initdb, and should not exist beforehand.
# pgdata_directory is created by initdb, and should not exist beforehand.
...
@@ -43,7 +43,7 @@ services = $${directories:services}
...
@@ -43,7 +43,7 @@ services = $${directories:services}
#--
#--
#-- Generates a random password and stores it in the filesystem
#-- Generates a random password and stores it in the filesystem
[
gen
-passwd]
[
postgres
-passwd]
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
storage-path = $${directories:srv}/postgres_passwd
storage-path = $${directories:srv}/postgres_passwd
bytes = 16
bytes = 16
...
@@ -78,15 +78,6 @@ link-binary =
...
@@ -78,15 +78,6 @@ link-binary =
${postgresql91:location}/bin/vacuumdb
${postgresql91:location}/bin/vacuumdb
#----------------
#--
#-- Publish instance parameters.
[publish]
recipe = slapos.cookbook:publish
url = $${postgres-instance:url}
#----------------
#----------------
#--
#--
#-- Fetches parameters defined in SlapOS Master for this instance
#-- Fetches parameters defined in SlapOS Master for this instance
...
...
software/abilian/extranet_spr/instance-redis.cfg.in
View file @
31a153da
...
@@ -7,8 +7,8 @@ parts =
...
@@ -7,8 +7,8 @@ parts =
[redis-passwd]
[redis-passwd]
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
storage-path = $${directories:etc}/
.redis-
passwd
storage-path = $${directories:etc}/
redis_
passwd
bytes =
4
bytes =
16
[redis]
[redis]
recipe = slapos.cookbook:redis.server
recipe = slapos.cookbook:redis.server
...
@@ -24,13 +24,13 @@ log_file = $${directories:log}/redis.log
...
@@ -24,13 +24,13 @@ log_file = $${directories:log}/redis.log
wrapper = $${directories:services}/redis_server
wrapper = $${directories:services}/redis_server
promise_wrapper = $${directories:promises}/redis
promise_wrapper = $${directories:promises}/redis
# Send informations to SlapOS Master
#
#
Send informations to SlapOS Master
[publish-redis-connection-parameters]
#
[publish-redis-connection-parameters]
recipe = slapos.cookbook:publish
#
recipe = slapos.cookbook:publish
redis_ip = $${redis:ipv6}
#
redis_ip = $${redis:ipv6}
redis_port = $${redis:port}
#
redis_port = $${redis:port}
redis_passwd = $${redis:passwd}
#
redis_passwd = $${redis:passwd}
redis_uses_password = $${redis:use_passwd}
#
redis_uses_password = $${redis:use_passwd}
[slap-parameter]
[slap-parameter]
use_passwd = false
use_passwd = false
software/abilian/extranet_spr/instance.cfg.in
View file @
31a153da
...
@@ -25,7 +25,6 @@ parts =
...
@@ -25,7 +25,6 @@ parts =
request-web-frontend
request-web-frontend
publish-connection-parameters
publish-connection-parameters
redis
redis
publish-redis-connection-parameters
...
@@ -90,11 +89,12 @@ name = Web Frontend
...
@@ -90,11 +89,12 @@ name = Web Frontend
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
slave = true
config = url
config = url
config-url = https://[$${instance-parameters:ipv6
}]:5000
/
config-url = https://[$${instance-parameters:ipv6
-random}]:$${extranet-promise:port}
/
return = site_url
return = site_url
[publish-connection-parameters]
[publish-connection-parameters]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
url = $${request-web-frontend:connection-site_url}
url = $${request-web-frontend:connection-site_url}
ipv6_url = http://[$${instance-parameters:ipv6-random}]:$${extranet-promise:port}/
name = test parameter
name = test parameter
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