Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_ssl.rb
#
# Set cert key  method given new_resource cert key attribute
#
Set cert key  method given new_resource cert key attribute
Set cert key method given new_resource cert key attribute
def update_key_location
        converge_by("Update #{new_resource} key location") do
          Chef::Log.info "Update #{new_resource} key location"
          key_content_blob = File.open("#{new_resource.key_location}", "rb").read
          load_balancer.client['Management.KeyCertificate'].key_import_from_pem("#{new_resource.mode}", ["#{new_resource.ssl_id}"], [key_content_blob],'true')
          current_resource.key_location(new_resource.key_location)
          new_resource.updated_by_last_action(true)
        end
      end
def update_key_location converge_by ( "Update #{new_resource} key location" ) do Chef :: Log . info "Update #{new_resource} key location" key_content_blob = File . open ( "#{new_resource.key_location}" , "rb" ) . read load_balancer . client [ 'Management.KeyCertificate' ] . key_import_from_pem ( "#{new_resource.mode}" , [ "#{new_resource.ssl_id}" ] , [ key_content_blob ] , 'true' ) current_resource . key_location ( new_resource . key_location ) new_resource . updated_by_last_action ( true ) end end
Set cert key  method given new_resource cert key attribute
Set cert key method given new_resource cert key attribute