Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12238967
credential.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
941 B
Referenced Files
None
Subscribers
None
credential.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# PaaS Docker
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/paas-docker/salt/files/credential.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
if
[
"
$#
"
-eq
0
]
;
then
echo
"Usage:
$0
<credential key> [username]"
1
>
&
2
;
exit
1
fi
if
[
"
$#
"
-eq
1
]
;
then
METHOD
=
credentials.get_password
elif
[
"
$2
"
=
"username"
]
;
then
METHOD
=
credentials.get_username
else
echo
"Unknown accessor option:
$2
"
1
>
&
2
;
exit
2
fi
sudo salt-call
$METHOD
"
$1
"
--out
=
json
|
jq -r .local
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Oct 11, 20:03 (4 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3063835
Default Alt Text
credential.sh (941 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment