Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_node.rb
#
# Create a new node from new_resource attribtues
#
Create a new node from new_resource attribtues
Create a new node from new_resource attribtues
def create_node
        converge_by("Create #{new_resource}") do
          Chef::Log.info "Create #{new_resource}"
          load_balancer.client['LocalLB.NodeAddressV2'].create([new_resource.node_name], [new_resource.address], [0])
          current_resource.enabled(true)
          new_resource.updated_by_last_action(true)
        end
      end
def create_node converge_by ( "Create #{new_resource}" ) do Chef :: Log . info "Create #{new_resource}" load_balancer . client [ 'LocalLB.NodeAddressV2' ] . create ( [ new_resource . node_name ] , [ new_resource . address ] , [ 0 ] ) current_resource . enabled ( true ) new_resource . updated_by_last_action ( true ) end end
Create a new node from new_resource attribtues
Create a new node from new_resource attribtues