Sha256: 408fafc9126bba2ce0da92ce9d0763e967ae03e86c6b13a7a25473012f7e2f95

Contents?: true

Size: 457 Bytes

Versions: 44

Compression:

Stored size: 457 Bytes

Contents

#!/usr/local/ruby-current/bin/ruby
require "openssl"
require 'net/ssh'
key = OpenSSL::PKey::RSA.new 2048
public_key = "#{key.public_key.ssh_type} #{[key.public_key.to_blob].pack('m0')}"
vault_opts="--mode client -u mu -F json"
vault_cmd = "knife vault create jenkins admin '{ \"public_key\":\"#{public_key}\", \"private_key\":\"#{key.to_pem.chomp!.gsub(/\n/, "\\n")}\", \"username\": \"master_user\" }' #{vault_opts} --search name:MU-MASTER"
exec vault_cmd

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cloud-mu-3.1.1 install/jenkinskeys.rb
cloud-mu-3.1.0 install/jenkinskeys.rb
cloud-mu-3.0.2 install/jenkinskeys.rb
cloud-mu-3.0.1 install/jenkinskeys.rb
cloud-mu-3.0.0 install/jenkinskeys.rb
cloud-mu-3.0.0beta install/jenkinskeys.rb
cloud-mu-2.0.4 install/jenkinskeys.rb
cloud-mu-2.1.0beta install/jenkinskeys.rb
cloud-mu-2.0.3 install/jenkinskeys.rb
cloud-mu-2.0.2 install/jenkinskeys.rb
cloud-mu-2.0.1 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.beta3 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.beta2 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.beta1 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha9 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha8 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha7 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha6 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha5 install/jenkinskeys.rb
cloud-mu-2.0.0.pre.alpha4 install/jenkinskeys.rb