Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_monitor.rb
#
# Create a new monitor from new_resource attribtues
#
Create a new monitor from new_resource attribtues
Create a new monitor from new_resource attribtues
def create_template
        converge_by("Create #{new_resource}") do
          Chef::Log.info "Create #{new_resource}"
          load_balancer.client['LocalLB.Monitor'].create_template(monitor_template, common_attributes)
          load_balancer.ltm.monitors.refresh_all
          load_current_resource
          new_resource.updated_by_last_action(true)
        end
      end
def create_template converge_by ( "Create #{new_resource}" ) do Chef :: Log . info "Create #{new_resource}" load_balancer . client [ 'LocalLB.Monitor' ] . create_template ( monitor_template , common_attributes ) load_balancer . ltm . monitors . refresh_all load_current_resource new_resource . updated_by_last_action ( true ) end end
Create a new monitor from new_resource attribtues
Create a new monitor from new_resource attribtues
# Reload monitor info from F5 # Reload state of current_resource