target / f5-bigip-cookbook Goto Github PK
View Code? Open in Web Editor NEWChef cookbook for F5 Big IP
Home Page: https://supermarket.chef.io/cookbooks/f5-bigip
License: Apache License 2.0
Chef cookbook for F5 Big IP
Home Page: https://supermarket.chef.io/cookbooks/f5-bigip
License: Apache License 2.0
According to DCP's email, he's good. Can we flip the switch to make F5 a public repo?
During deployment : After putting node into disable stat we want to make sure all current connections with that node drain out and then we want to stop webapp.
and start deployment of new version.
is there any way to check this via this chef cookbook ?
If I understand the readme, setting the members property of f5_ltm_pool will only add members.
I'd like to be able to set the members using this prop.
Proposing adding an additional bool, purge, defaulting to false, which would remove any nodes not in the pool.
Additionally, I'd like the option to delete the node record itself, but I'm not sure if that should just be another property (delete_node_during_purge?) or if there's a better idea.
Wanted to invite discussion before I work towards a solution.
f5-bigip cookbook does not work with chef-client 12 due to non-support for library subdirectories
The key for specifying the member address is address
and not name
ok so after a night of sleeping on it address = name and a test this morning as well if the node exists with a name. Sorry about the confusion.
F5 12.1 is out and includes iworkflow 2.0 which has an api designed specifically for configuration management tools
press release
Any plans to support the new api?
I was running cookbooks for run list: ["f5-bigip", "f5-bigip::ltm_node"]
and recipe ltm_node is just to create a node:
f5_ltm_node 'test-node.test.com' do
address '10.10.10.10'
f5 '10.192.74.111'
enabled true
end
Starting Chef Client, version 12.15.19
resolving cookbooks for run list: ["f5-bigip", "f5-bigip::ltm_node"]
Synchronizing Cookbooks:
chef_gem[chef-vault] action install (up to date)
Recipe: f5-bigip::default
chef_gem[soap4r-spox] action install (up to date)
cookbook_file[/var/chef/cache/f5-icontrol.gem] action create (up to date)
chef_gem[f5-icontrol] action install (up to date)
Converging 5 resources
Recipe: chef-vault::default
chef_gem[chef-vault] action install (up to date)
Recipe: f5-bigip::default
chef_gem[soap4r-spox] action install (up to date)
cookbook_file[/var/chef/cache/f5-icontrol.gem] action create (up to date)
chef_gem[f5-icontrol] action install (up to date)
Recipe: f5-bigip::ltm_node
f5_ltm_node[test-node.test.com] action create
create
on resource 'f5_ltm_node[test-node.test.com]'f5/creds_keys could not be found
/var/chef/cache/cookbooks/f5-bigip/libraries/helpers.rb:38:in chef_vault_item' /var/chef/cache/cookbooks/f5-bigip/libraries/loader.rb:94:in
create_icontrol'
/var/chef/cache/cookbooks/f5-bigip/libraries/loader.rb:82:in add_lb' /var/chef/cache/cookbooks/f5-bigip/libraries/loader.rb:71:in
load_balancer'
/var/chef/cache/cookbooks/f5-bigip/libraries/provider_ltm_node.rb:40:in `load_current_resource'
1: f5_ltm_node 'test-node.test.com' do
2: address '10.10.10.10'
3: f5 '10.192.74.111'
4: enabled true
5: end
f5_ltm_node("test-node.test.com") do
provider Chef::Provider::F5LtmNode
action :create
retries 0
retry_delay 2
default_guard_interpreter :default
node_name "test-node.test.com"
enabled true
declared_type :f5_ltm_node
cookbook_name "f5-bigip"
recipe_name "ltm_node"
address "10.10.10.10"
f5 "10.192.74.111"
end
x86_64-linux
Running handlers:
[2017-04-06T15:30:15-07:00] ERROR: Running exception handlers
Running handlers complete
[2017-04-06T15:30:15-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 06 seconds
[2017-04-06T15:30:15-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-04-06T15:30:15-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-04-06T15:30:15-07:00] ERROR: f5_ltm_node[test-node.test.com] (f5-bigip::ltm_node line 1) had an error: ChefVault::Exceptions::KeysNotFound: f5/creds_keys could not be found
[2017-04-06T15:30:15-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
I have a scenario in which the node status in f5 needs to be checked if it is enabled or disabled and then to deploy the node. Does f5-bigip-cookbook has a feature to test this?
This cookbook looks great. Trying to get started using it, but I'm not sure how is it supposed to be used.
Should every node/vip/pool be defined in a recipe in a wrapper cookbook, and then that cookbook applied to a provisioner node?
Or does it support self updating resources. e.g. use a lwrp in my web-server cookbook, so every web server can register itself with the f5?
Hi
I am trying to run this cookbook ,but always got the error below :
ERROR: f5_ltm_node[10.10.10.10-11.11.11.11] had an error: ChefVault::Exceptions::KeysNotFound: f5/creds_keys could not be found
I have created the data_bags/f5/creds.json, which is exactly as the same as https://github.com/target/f5-bigip-cookbook/blob/master/test/integration/data_bags/f5/creds.json
And my attributes are as below:
Databag where creds are stored
default['f5-bigip']['credentials']['databag'] = 'f5'
default['f5-bigip']['credentials']['item'] = 'creds'
default['f5-bigip']['credentials']['key'] =''
default['f5-bigip']['credentials']['host_is_key'] = false
default['f5-bigip']['provisioner']['databag'] = 'f5-provisioner'
Could anyone help me with that ? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.