Commit 31a153da authored by Marco Mariani's avatar Marco Mariani

abilian: publish ipv6 url, better pw

parent 29e94dd5
...@@ -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
......
...@@ -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
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment