deployment_scripts/puppet/modules/plugin_module/lib/puppet/type/override_resources.rb
# Find a resource in the catalog and set its parameters
# to the provided values.
# @param [String] type
# @param [String] title
# @param [Hash<String>] parameters
Find a resource in the catalog and set its parameters
to the provided values.
Find a resource in the catalog and set its parameters to the provided values .
def update_resource(type, title, parameters = {})
    resource = catalog.resource type, title
    unless resource
      debug "#{type}[#{title}]: was not found in the catalog!"
      return false
    end
    parameters.each do |parameter, value|
      resource[parameter] = value
    end
    true
  end
def update_resource ( type , title , parameters = { } ) resource = catalog . resource type , title unless resource debug "#{type}[#{title}]: was not found in the catalog!" return false end parameters . each do | parameter , value | resource [ parameter ] = value end true end
Find a resource in the catalog and set its parameters
to the provided values.
Find a resource in the catalog and set its parameters to the provided values .
type
<not_specific>
title
<not_specific>
parameters
<not_specific>
<not_specific>
None