Commit 5a84f622 authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack-monitor: user has to define by himself monitor_password

parent 7b3bd742
...@@ -72,7 +72,7 @@ filename = monitor.cgi ...@@ -72,7 +72,7 @@ filename = monitor.cgi
mode = 0744 mode = 0744
context = context =
key json_file monitor-parameters:json-path key json_file monitor-parameters:json-path
key password cgi-password:passwd key password zero-parameters:cgi-password
raw python_executable ${buildout:executable} raw python_executable ${buildout:executable}
key this_filename :filename key this_filename :filename
...@@ -84,7 +84,7 @@ filename = control.cgi ...@@ -84,7 +84,7 @@ filename = control.cgi
mode = 0744 mode = 0744
context = context =
raw config_cfg $${buildout:directory}/knowledge0.cfg raw config_cfg $${buildout:directory}/knowledge0.cfg
key password cgi-password:passwd key password zero-parameters:cgi-password
raw python_executable ${buildout:executable} raw python_executable ${buildout:executable}
key this_filename :filename key this_filename :filename
...@@ -147,10 +147,14 @@ name = example.com ...@@ -147,10 +147,14 @@ name = example.com
########### ###########
# Deploy a webserver running cgi scripts for monitoring # Deploy a webserver running cgi scripts for monitoring
########### ###########
[cgi-password] [public]
recipe = slapos.cookbook:generate.password recipe = slapos.cookbook:zeroknown.write
storage-path = $${directory:etc}/cgi-passwd filename = knowledge0.cfg
bytes = 8 cgi-password = passwordtochange
[zero-parameters]
recipe = slapos.cookbook:zeroknown.read
filename = $${public:filename}
# XXX could it be something lighter? # XXX could it be something lighter?
[cgi-httpd-configuration-file] [cgi-httpd-configuration-file]
...@@ -210,5 +214,5 @@ wrapper-path = $${directory:bin}/cgi-httpd ...@@ -210,5 +214,5 @@ wrapper-path = $${directory:bin}/cgi-httpd
[publish-connection-parameter] [publish-connection-parameter]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
monitor_url = http://[$${cgi-httpd-configuration-file:listening-ip}]:$${cgi-httpd-configuration-file:listening-port} monitor_url = https://[$${cgi-httpd-configuration-file:listening-ip}]:$${cgi-httpd-configuration-file:listening-port}/index.html
monitor_password = $${cgi-password:passwd} IMPORTANT_monitor_info = change the password as soon as possible ! Default is : passwordtochange
\ No newline at end of file \ 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