File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2222 'label' => 'provision-time token' ,
2323} . to_json
2424
25- https . = Net ::HTTP . new ( Puppet . settings [ :certname ] , 4433 )
26- https .. use_ssl = true
27- https .. cert = OpenSSL ::X509 ::Certificate . new ( File . read ( Puppet . settings [ :hostcert ] ) )
28- https .. key = OpenSSL ::PKey ::RSA . new ( File . read ( Puppet . settings [ :hostprivkey ] ) )
29- https .. verify_mode = OpenSSL ::SSL ::VERIFY_PEER
30- https .. ca_file = Puppet . settings [ :localcacert ]
31- request = Net ::https . :Post . new ( '/rbac-api/v1/auth/token' )
25+ https = Net ::HTTP . new ( Puppet . settings [ :certname ] , 4433 )
26+ https . use_ssl = true
27+ https . cert = OpenSSL ::X509 ::Certificate . new ( File . read ( Puppet . settings [ :hostcert ] ) )
28+ https . key = OpenSSL ::PKey ::RSA . new ( File . read ( Puppet . settings [ :hostprivkey ] ) )
29+ https . verify_mode = OpenSSL ::SSL ::VERIFY_PEER
30+ https . ca_file = Puppet . settings [ :localcacert ]
31+ request = Net ::https :Post . new ( '/rbac-api/v1/auth/token' )
3232request [ 'Content-Type' ] = 'application/json'
3333request . body = body
3434
You can’t perform that action at this time.
0 commit comments