This file contains 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
Upgrade Conjur CLI | |
$ sudo /opt/conjur/embedded/bin/gem install conjur-cli --no-rdoc --no-ri | |
This file contains 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
test_layer = nil | |
group "security_admin" do | |
owns do | |
scope "v1" do | |
ops = group "ops" do | |
owns do | |
test_layer = layer "test" | |
layer "production" | |
end |
This file contains 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
$ conjur resource:create food:$ns/bacon | |
{ | |
"id": "sandbox:food:1eqwg0/bacon", | |
"owner": "sandbox:user:kgilpin", | |
"permissions": [] | |
} |
This file contains 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
# Need to find the next available device to let AWS know where to attach | |
# the volume | |
drive = (Array('c'..'z').map{|c| "/dev/xvd#{c}"} - Dir.glob("/dev/xvd*"))[0] | |
device_id = drive[-1..-1] |
This file contains 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
cd pkg && INSCITIV_ENV=stage rvm 1.9.2@myproject do bundle exec ../bin/conjur datafile:upload "Jenkins artifacts: myproject" *.gem |
This file contains 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
exit_code = Open3.popen3(env, cmd, opts) do |stdin, stdout, stderr, thread| | |
stdin.close | |
# Create a thread to read from each stream | |
threads = [[:stdout, stdout], [:stderr, stderr]].collect do |method, stream| | |
Thread.new do | |
until (line = stream.gets).nil? | |
callback.send(method, line) | |
end | |
end | |
end |
NewerOlder