Sha256: e525312ed9c1db7f4ce5674d54cb0ba9860fee335b6426d07157ed4bcc86843e
Contents?: true
Size: 888 Bytes
Versions: 9
Compression:
Stored size: 888 Bytes
Contents
#!/bin/bash set -e [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" rvm use 2.0.0@conjur-asset-layer # Bootstrap WORKDIR=$1 if [ -z "$WORKDIR" ] ; then echo "Usage: $0 <target_directory>" exit 1 else echo "Generating new assets, info stored in $WORKDIR" if [ ! -d $WORKDIR ] ; then mkdir -v $WORKDIR fi fi cd $WORKDIR export CONJURAPI_LOG=stderr # Preliminary setup ns=`conjur id:create | tee ns` conjur user:create $ns-admin --no-password > admin.json conjur group:create $ns/admin > /dev/null conjur group:create $ns/users > /dev/null conjur asset:create --as-group $ns/users layer $ns/layer > /dev/null hosta=`conjur host:create $ns/host-a | tee host-a.json | jsonfield id` hostb=`conjur host:create $ns/host-b | tee host-b.json | jsonfield id` conjur layer:hosts:add $ns/layer $hosta conjur layer:hosts:add $ns/layer $hostb
Version data entries
9 entries across 9 versions & 1 rubygems