Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_virtual_server.rb
#
# Set the virtual server fallback persistence profile
#
Set the virtual server fallback persistence profile
Set the virtual server fallback persistence profile
def update_fallback_persistence_profile(profile_name)
        converge_by("Updating #{new_resource} fallback persistence profile") do
          Chef::Log.info("Updating #{new_resource} fallback persistence profile")
          load_balancer.client['LocalLB.VirtualServer']
                       .set_fallback_persistence_profile [new_resource.vs_name],
                                                         [profile_name]
          current_resource.fallback_persistence_profile(profile_name)
          new_resource.updated_by_last_action(true)
        end
      end
def update_fallback_persistence_profile ( profile_name ) converge_by ( "Updating #{new_resource} fallback persistence profile" ) do Chef :: Log . info ( "Updating #{new_resource} fallback persistence profile" ) load_balancer . client [ 'LocalLB.VirtualServer' ] . set_fallback_persistence_profile [ new_resource . vs_name ] , [ profile_name ] current_resource . fallback_persistence_profile ( profile_name ) new_resource . updated_by_last_action ( true ) end end
Set the virtual server fallback persistence profile
Set the virtual server fallback persistence profile
profile_name
<not_specific>