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