For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Miguel_03_15449's avatar
Miguel_03_15449
Icon for Nimbostratus rankNimbostratus
Sep 15, 2014

F5-Node-Initiator Chef Cookbook

Does anyone know where I can download this sample chef cookbook? The links in the article that reference it are broken:

 

https://devcentral.f5.com/articles/automating-web-app-deployments-with-opscode-chef-and-icontrol

 

The link in the article is returning a 404: https://devcentral.f5.com/LinkClick.aspx?link=http%3a%2f%2fdevcentral.f5.com%2fdownloads%2ftechtips%2fChefandiControl%2ff5-node-initiator.tgz&tabid=73&mid=656

 

Hoping somebody knows where i can get this.

 

Thank you

 

5 Replies

  • I don't know exactly where it is but...

     

    http://webcache.googleusercontent.com/search?q=cache:li3CfMpdnC4J:https://devcentral.f5.com/articles/automating-web-app-deployments-with-opscode-chef-and-icontrol+&cd=1&hl=en&ct=clnk&gl=es.

     

    I hope this help ;)

     

  • I'm able to reach the article but not able to actually download the tarball that is in the example. I'm hoping to get that tarball which contains the chef cookbook.

     

  • Update: The cookbook I was talking about above is in the Chef Supermarket and will create a virtual server, pool, and add the current node to the pool. I'm just picking away at various options.

    As compared to the recipe that originally spawned this thread this is done as a LWRP. So you'll have a wrapper cookbook that does something like

    f5_vip "{node.chef_environment}-myapp" do
      address '1.2.3.4'
      pool "{node.chef_environment}-myapp"
    end
    
    f5_pool "{node.chef_environment}-myapp" do
      port '80'
    end
    

    And it'll create any missing items and add the host to the pool.

  • I also created a chef cookbook for managing F5 @ https://supermarket.chef.io/cookbooks/f5-bigip which I was only recently able to publish (but has been a work in progress for a while).

    With this you can create a VIP on a load balancer as easy as:

    f5_vip 'testing.test.com' do
      f5 'test-f5.test.com'
      nodes ['10.10.10.10', '10.10.10.11']
      pool 'pool_new'
      destination_address '192.168.1.10'
    end
    

    This will then dynamically define other LWRPs for creating the necessary nodes, pool and virtual server. Or you can do it more manually with:

    f5_ltm_node '10.10.10.10' do
      f5 'f5-test.test.com'
    end
    
    f5_ltm_node '10.10.10.11' do
      f5 'f5-test.test.com'
    end
    
    f5_ltm_pool 'pool_new' do
      f5 'f5-test.test.com'
      monitors ['https']
      members [
        {
          'name'      => '10.10.10.10',
          'port'      => 443,
          'enabled'   => true
        },
        {
          'name'      => '10.10.10.11',
          'port'      => 443,
          'enabled'   => true
        }
      ]
    end
    
    f5_ltm_virtual_server 'testing.test.com' do
      f5 'f5-test.test.com'
      destination_address '192.168.1.10'
      destination_port 443
      default_pool 'pool_new'
    end