libraries/resource_providers/api600/synergy/enclosure_provider.rb
def create_csr_request
          @item.retrieve! || raise("#{@resource_name} '#{@name}' not found!")
          @context.converge_by "Creating CSR request #{@new_resource.csr_data} for bay #{@new_resource.bay_number}" do
            @item.create_csr_request(@new_resource.csr_data, @new_resource.bay_number)
            csr_cert = @item.get_csr_request(@new_resource.bay_number)
            File.open(@new_resource.csr_file_path, 'w') { |f| f.write(csr_cert['base64Data']) }
          end
        end
# Generate certificate signing request for the enclosure
Generate certificate signing request for the enclosure
Generate certificate signing request for the enclosure
def create_csr_request
          @item.retrieve! || raise("#{@resource_name} '#{@name}' not found!")
          @context.converge_by "Creating CSR request #{@new_resource.csr_data} for bay #{@new_resource.bay_number}" do
            @item.create_csr_request(@new_resource.csr_data, @new_resource.bay_number)
            csr_cert = @item.get_csr_request(@new_resource.bay_number)
            File.open(@new_resource.csr_file_path, 'w') { |f| f.write(csr_cert['base64Data']) }
          end
        end
def create_csr_request @item . retrieve! || raise ( "#{@resource_name} '#{@name}' not found!" ) @context . converge_by "Creating CSR request #{@new_resource.csr_data} for bay #{@new_resource.bay_number}" do @item . create_csr_request ( @new_resource . csr_data , @new_resource . bay_number ) csr_cert = @item . get_csr_request ( @new_resource . bay_number ) File . open ( @new_resource . csr_file_path , 'w' ) { | f | f . write ( csr_cert [ 'base64Data' ] ) } end end
Generate certificate signing request for the enclosure
Generate certificate signing request for the enclosure