# Ensure what variable is available
$ conjur env run --yaml '{CONJUR_GROUP: !var variable/name}' -- 'echo "$CONJUR_GROUP"'
# Install conjur's python api module first
$ sudo pip install conjur
# Okay, run ansible to affect localhost
# -K mean ask for sudo password
# (so you can be happy run this command by cron on a remote host. but better fill your own inventory file and run the play across multiple remote hosts at once)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir seed | |
$ cd seed | |
# create user-data and meta-data files that will be used to modify image on first boot | |
# feel free to change `instance-id' and `local-hostname' | |
$ { echo instance-id: iid-local01; echo local-hostname: cloudimg; } > meta-data | |
# customize that with your user info | |
$ cat << EOF > user-data | |
#cloud-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir seed | |
$ cd seed | |
# create user-data and meta-data files that will be used to modify image on first boot | |
# feel free to change `instance-id' and `local-hostname' | |
$ { echo instance-id: iid-local01; echo local-hostname: cloudimg; } > meta-data | |
# customize that with your user info | |
$ cat << EOF > user-data | |
#cloud-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
conjur = require('conjur-api'), | |
netrc = require('netrc'), | |
url = require('url'), | |
yaml = require('js-yaml'), | |
fs = require('fs'); | |
function main(baseUrl, account, login, password) { | |
var infoUrl = baseUrl + 'api/info', | |
authnUrl = baseUrl + 'api/authn', |
NewerOlder