Commit d91f7277 authored by Ayush Tiwari's avatar Ayush Tiwari

Hello World: Add cgi_httpd_graceful

TODO: Add correct cgi for reload possiblity of hello world webservice.
parent 707fce90
...@@ -10,7 +10,24 @@ parts = ...@@ -10,7 +10,24 @@ parts =
hello-world-promise hello-world-promise
publish-connection-parameter publish-connection-parameter
render-template render-template
# Monitoring parts
certificate-authority
cron cron
cron-entry-monitor
cron-entry-rss
deploy-index
deploy-settings-cgi
deploy-status-cgi
deploy-status-history-cgi
setup-static-files
certificate-authority
zero-parameters
public-symlink
cgi-httpd-wrapper
cgi-httpd-graceful-wrapper
monitor-promise
monitor-instance-log-access
# Logrotate parts
cron-entry-logrotate cron-entry-logrotate
logrotate logrotate
logrotate-entry logrotate-entry
...@@ -18,6 +35,7 @@ parts = ...@@ -18,6 +35,7 @@ parts =
# Define egg directories to be the one from Software Release # Define egg directories to be the one from Software Release
# (/opt/slapgrid/...) # (/opt/slapgrid/...)
# Always the same. # Always the same.
extends = ${monitor-template:output}
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true offline = true
...@@ -49,6 +67,7 @@ configuration.name = John Doe ...@@ -49,6 +67,7 @@ configuration.name = John Doe
# Add parameter title to be provided by user/developer, would be None in case user fails to give anything # Add parameter title to be provided by user/developer, would be None in case user fails to give anything
configuration.title = configuration.title =
configuration.repetition_number = configuration.repetition_number =
configuration.port = 7777
# Create all needed directories, depending on your needs # Create all needed directories, depending on your needs
[directory] [directory]
...@@ -131,7 +150,7 @@ create = true ...@@ -131,7 +150,7 @@ create = true
# address, it is ok to fix the port - different hello-world instances will have # address, it is ok to fix the port - different hello-world instances will have
# different IPv6 addresses and they all will be accessible at the same time. # different IPv6 addresses and they all will be accessible at the same time.
ipv6 = $${instance-parameter:ipv6-random} ipv6 = $${instance-parameter:ipv6-random}
port = 7777 port = $${instance-parameter:configuration.port}
# full URL - for convenience # full URL - for convenience
url = http://[$${:ipv6}]:$${:port} url = http://[$${:ipv6}]:$${:port}
......
...@@ -4,6 +4,7 @@ extends = ...@@ -4,6 +4,7 @@ extends =
# "slapos" stack describes basic things needed for 99.9% of SlapOS Software # "slapos" stack describes basic things needed for 99.9% of SlapOS Software
# Releases # Releases
../../stack/slapos.cfg ../../stack/slapos.cfg
../../stack/monitor/buildout.cfg
# Extend here component profiles, like openssl, apache, mariadb, curl... # Extend here component profiles, like openssl, apache, mariadb, curl...
# Or/and extend a stack (lamp, tomcat) that does most of the work for you # Or/and extend a stack (lamp, tomcat) that does most of the work for you
# In this example we don't need anything more than python which is provided by # In this example we don't need anything more than python which is provided by
...@@ -16,6 +17,8 @@ extends = ...@@ -16,6 +17,8 @@ extends =
../../component/gzip/buildout.cfg ../../component/gzip/buildout.cfg
parts = parts =
# Monitor parts
monitor-eggs
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed # Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# in 99,9% of Slapos Software Releases) # in 99,9% of Slapos Software Releases)
slapos-cookbook slapos-cookbook
...@@ -30,7 +33,6 @@ parts = ...@@ -30,7 +33,6 @@ parts =
dcron dcron
logrotate logrotate
# Download instance.cfg.in (buildout profile used to deployment of instance), # Download instance.cfg.in (buildout profile used to deployment of instance),
# replace all ${foo:bar} parameters by real values, and change $${foo:bar} to # replace all ${foo:bar} parameters by real values, and change $${foo:bar} to
# ${foo:bar} # ${foo:bar}
......
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