#!/bin/bash keystone_passwd=$(juju run --unit keystone/leader 'leader-get admin_passwd') nagios_passwd=$(juju run --unit nagios/leader 'sudo cat /var/lib/juju/nagios.passwd') grafana_passwd=$(juju run-action --wait grafana/leader get-admin-password | grep password | awk '{print $2}') graylog_passwd=$(juju run-action --wait graylog/leader show-admin-password | grep admin-password | awk '{print $2}') mysql_passwd=$(juju run --unit mysql/leader 'leader-get root-password') innodb_passwd=$(juju run --unit mysql-innodb-cluster/leader 'leader-get mysql.passwd') echo "Keystone admin password: ... ${keystone_passwd}" echo "nagios password: ... ${nagios_passwd}" echo "grafana password: ... ${grafana_passwd}" echo "graylog password: ... ${graylog_passwd}" echo "mysql password: ... ${mysql_passwd}"