*: switch to new slapos.cookbook random API for passwords
... | ... | @@ -112,7 +112,6 @@ parameter-list = |
htpasswd monitor-password ${httpd-monitor-htpasswd:password-file} ${monitor-instance-parameter:username} ${httpd-monitor-htpasswd:htpasswd-path} | ||
file min-free-disk-MB ${promise-check-free-disk-space:config-threshold-file} | ||
${monitor-instance-parameter:instance-configuration} | ||
# htpasswd entry: htpasswd key password-file username htpasswd-file | ||
promise-output-file = ${directory:monitor}/monitor-bootstrap-status | ||
... | ... | @@ -157,14 +156,11 @@ storage-path = ${directory:etc}/.monitor_pwd |
[httpd-monitor-htpasswd] | ||
recipe = plone.recipe.command | ||
stop-on-error = true | ||
password-file = ${directory:etc}/.monitor_pwd | ||
password-file = ${monitor-directory:etc}/.monitor-password | ||
htpasswd-path = ${monitor-directory:etc}/monitor-htpasswd | ||
command = | ||
echo "${monitor-instance-parameter:password}" >${:password-file} | ||
[ -s "${:htpasswd-path}" ] || | ||
{{ apache_location }}/bin/htpasswd -ci ${:htpasswd-path} "${monitor-instance-parameter:username}" <${:password-file} | ||
update-command = | ||
[ -s "${:password-file}" ] || ${:command} | ||
{{ apache_location }}/bin/htpasswd -cib ${:htpasswd-path} "${monitor-instance-parameter:username}" "${monitor-instance-parameter:password}" | ||
|
||
[monitor-symlink] | ||
recipe = cns.recipe.symlink | ||
... | ... | @@ -343,8 +339,6 @@ collector-db = /srv/slapgrid/var/data-log/collector.db |
# Credentials | ||
password = ${monitor-htpasswd:passwd} | ||
username = admin | ||
# XXX: type key value | ||
# ex raw monitor-password resqdsdsd34 | ||
instance-configuration = | ||
configuration-file-path = ${monitor-directory:etc}/monitor_knowledge0.cfg | ||
... | ... |