Page MenuHomeDevCentral

credential.sh
No OneTemporary

credential.sh

#!/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

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)

Event Timeline