Arif Ali
a90392cc89
* Added a simple check juju script * fix cloud script for focal, similar to the bionic one * initialise vault scipt * Update get_password script to add innodb * Added a new script for check_vip_issue_db.sh
15 lines
800 B
Bash
Executable File
15 lines
800 B
Bash
Executable File
#!/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}"
|