Commit a3c2c0ce authored by Viktor Horvath's avatar Viktor Horvath

rsync component

parent e9131a0a
...@@ -33,12 +33,6 @@ crontabs = $${rootdirectory:etc}/crontabs/ ...@@ -33,12 +33,6 @@ crontabs = $${rootdirectory:etc}/crontabs/
sshkeys = $${rootdirectory:srv}/sshkeys sshkeys = $${rootdirectory:srv}/sshkeys
ssh = $${rootdirectory:etc}/ssh ssh = $${rootdirectory:etc}/ssh
[gen-passwd]
recipe = slapos.cookbook:generate.password
storage-path = $${rootdirectory:etc}/pw
bytes = 8
default = $${slap-parameter:password}
[cron-simplelogger] [cron-simplelogger]
recipe = slapos.cookbook:simplelogger recipe = slapos.cookbook:simplelogger
wrapper = $${rootdirectory:bin}/cron_simplelogger wrapper = $${rootdirectory:bin}/cron_simplelogger
...@@ -68,11 +62,12 @@ port = $${apacheperl-instance:port} ...@@ -68,11 +62,12 @@ port = $${apacheperl-instance:port}
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
apacheperl_url = http://[$${slap-network-information:global-ipv6}]:$${mioga-instance:public_ipv6_port} direct_url = $${mioga-url:direct_url}
admin_password = $${mioga-instance:admin_password}
ssh_command = ssh $${dropbear-server:host} -p $${dropbear-server:port} ssh_command = ssh $${dropbear-server:host} -p $${dropbear-server:port}
url = $${request-frontend:connection-site_url}
# Request POSTGRES INSTANCE and parse its URL
# Request Postgres instance and parse its URL
[request-postgres] [request-postgres]
<= slap-connection <= slap-connection
recipe = slapos.cookbook:request recipe = slapos.cookbook:request
...@@ -92,6 +87,8 @@ recipe = cns.recipe.symlink ...@@ -92,6 +87,8 @@ recipe = cns.recipe.symlink
symlink_target = $${rootdirectory:bin} symlink_target = $${rootdirectory:bin}
symlink_base = ${postgresql:location}/bin symlink_base = ${postgresql:location}/bin
# SSH SERVER
[sshkeys-directory] [sshkeys-directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
requests = $${basedirectory:sshkeys}/requests/ requests = $${basedirectory:sshkeys}/requests/
...@@ -133,6 +130,21 @@ key = $${slap-parameter:authorized-key} ...@@ -133,6 +130,21 @@ key = $${slap-parameter:authorized-key}
# Default value if no ssh key is specified # Default value if no ssh key is specified
authorized-key = authorized-key =
# IPv4 AND PORT 80 FRONTEND
[request-frontend]
<= slap-connection
recipe = slapos.cookbook:requestoptional
name = Frontend
# XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
config = url
config-url = $${mioga-url:direct_url}
return = site_url
# MIOGA INSTANCE
[mioga-instance] [mioga-instance]
recipe = slapos.cookbook:mioga.instantiate recipe = slapos.cookbook:mioga.instantiate
# mioga_compile_dir = ${template-apacheperl:compile-directory} # mioga_compile_dir = ${template-apacheperl:compile-directory}
...@@ -170,4 +182,6 @@ access_log = $${rootdirectory:log}/access.log ...@@ -170,4 +182,6 @@ access_log = $${rootdirectory:log}/access.log
bin_dir = $${rootdirectory:bin} bin_dir = $${rootdirectory:bin}
log_dir = $${rootdirectory:log} log_dir = $${rootdirectory:log}
site_perl = ${perl:siteprefix} site_perl = ${perl:siteprefix}
admin_password = initial_nonsense
\ No newline at end of file [mioga-url]
direct_url = http://[$${slap-network-information:global-ipv6}]:$${mioga-instance:public_ipv6_port}
\ No newline at end of file
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