Commit 89845f13 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Add promise on apache frontend, its squid and its apache backend

parent fef3b189
...@@ -14,6 +14,12 @@ parts = ...@@ -14,6 +14,12 @@ parts =
frontend-apache-graceful frontend-apache-graceful
cached-apache-graceful cached-apache-graceful
switch-softwaretype switch-softwaretype
promise-apache-frontend-v4-https
promise-apache-frontend-v4-http
promise-apache-frontend-v6-https
promise-apache-frontend-v6-http
promise-apache-cached
promise-squid
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
...@@ -31,6 +37,7 @@ backup = $${:srv}/backup ...@@ -31,6 +37,7 @@ backup = $${:srv}/backup
log = $${:var}/log log = $${:var}/log
run = $${:var}/run run = $${:var}/run
service = $${:etc}/service service = $${:etc}/service
promise = $${:etc}/promise
logrotate-backup = $${:backup}/logrotate logrotate-backup = $${:backup}/logrotate
logrotate-entries = $${:etc}/logrotate.d logrotate-entries = $${:etc}/logrotate.d
...@@ -300,4 +307,40 @@ wrapper-path = $${directory:service}/frontend-apache-graceful ...@@ -300,4 +307,40 @@ wrapper-path = $${directory:service}/frontend-apache-graceful
[cached-apache-graceful] [cached-apache-graceful]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
command-line = ${buildout:bin-directory}/killpidfromfile $${apache-configuration:cache-pid-file} SIGUSR1 command-line = ${buildout:bin-directory}/killpidfromfile $${apache-configuration:cache-pid-file} SIGUSR1
wrapper-path = $${directory:service}/cached-apache-graceful wrapper-path = $${directory:service}/cached-apache-graceful
\ No newline at end of file
[promise-apache-frontend-v4-https]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/apache_frontend_ipv4_https
hostname = $${instance-parameter:ipv4-random}
port = $${instance-parameter:configuration.port}
[promise-apache-frontend-v4-http]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/apache_frontend_ipv4_http
hostname = $${instance-parameter:ipv4-random}
port = $${instance-parameter:configuration.plain_http_port}
[promise-apache-frontend-v6-https]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/apache_frontend_ipv6_https
hostname = $${instance-parameter:ipv6-random}
port = $${instance-parameter:configuration.port}
[promise-apache-frontend-v6-http]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/apache_frontend_ipv6_http
hostname = $${instance-parameter:ipv6-random}
port = $${instance-parameter:configuration.plain_http_port}
[promise-apache-cached]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/apache_cached
hostname = $${instance-parameter:ipv4-random}
port = $${apache-configuration:cache-through-port}
[promise-squid]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/squid
hostname = $${instance-parameter:ipv4-random}
port = $${apache-configuration:cache-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