Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSD
public
juju
Commits
094be9cc
Commit
094be9cc
authored
Feb 06, 2020
by
Alberto Colla
Browse files
Add new file
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
mongo.sh
0 → 100644
View file @
094be9cc
dialmongo
()
{
agent
=
$(
cd
/var/lib/juju/agents
;
echo
machine-
*
)
pw
=
$(
sudo cat
/var/lib/juju/agents/
${
agent
}
/agent.conf |grep statepassword |awk
'{ print $2 }'
)
/usr/bin/mongo
--ssl
--sslAllowInvalidCertificates
-u
${
agent
}
-p
$pw
localhost:37017/juju
--authenticationDatabase
admin
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment