cookbook 'cisco_imc_cookbook', '= 0.9.1'
cisco_imc_cookbook (2) Versions 0.9.1 Follow1
This cookbook configures Cisco IMC Servers(standalone)
cookbook 'cisco_imc_cookbook', '= 0.9.1', :supermarket
knife supermarket install cisco_imc_cookbook
knife supermarket download cisco_imc_cookbook
cisco_imc_cookbook README
This cookbook configures the Cisco IMC Servers(standalone).
Install
Follow the steps outlined below to install the cookbook
1. Move the cookbook under chef-repo folder on your workstation.
2. Create your recipes, sample recipes are provided in the cookbook.
It is a good practice to set the cisco imc accounts in the data bag of chef,
because you will need to mention the data bag item name in the auth_data parameter of the recipe.
2. Run the command on the workstation from under the chef-repo folder.
* knife cookbook upload cisco-imc-chef
3. Add recipe to the run-list of the chef node and run chef-client.
Setting the Cisco IMC Accounts in Chef
Follow the steps outlined below to setup the Cisco IMC Accounts in chef.
1. Create a data bag in chef with the name "cisco_imc_accounts". This data bag name is configurable in the default.rb attribute file.
2. Now, create an item under the data bag.
3. Edit each item and add json data as follows.
- {
- "user": "admin",
- "password": "********",
- "port": "80",
- "secure":false
- "user": "admin",
- }
- Note: You can create multiple such data bag items, depending upon the number of account you have.
uninstall
Follow the steps outlined below to un-install the cookbook.
1. Run the command on chef workstation from under the chef-repo folder.
* knife cookbook delete cisco-imc-chef
Requirements
Platforms
- CentOS Release 6.5
Ruby
- Ruby v2.2.x or later
Chef
- Chef 12.0 or later
Cookbooks
- None
Cisco IMC Versions
- Cisco IMC v2.0(3) or later
Attributes
- default[:databag][:name] = "cisco_imc_accounts"
<table>
<tr>
<td><tt>[:databag][:name]</tt></td>
<td>String</td>
</tr>
</table>
Usage
Recipe connecting to single Cisco IMC Server.
Note: auth_data should be set to the data bag item name that should be used to authenticate with the IMC Server.
* cisco_imc_user_config 'cisco_imc_user_config' do
* ipaddress "10.105.219.15"
* auth_data "imc_account"
* account_status 'active'
* username 'testuser'
* password '*******'
* priv "read-only"
* action :create
* end
Recipe connecting to multiple Cisco IMC Server from a chef client
Note: Assuming imc_servers contains a list of imc_servers to be configured from a chef client node.
* for imc_server in imc_servers
* cisco_imc_ntp_config "cisco_imc_ntp_config-#{imc_server}" do
* ipaddress imc_server
* auth_data "imc_account"
* ntp_state 'yes'
* ntp_servers [{:id => 2, :ip => "10.105.219.95"}, {:id => 3, :ip => "10.105.219.106"}]
* action :enable
* end
* end
Contributing
TBD
License
Copyright 2017 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Authors
Name: Amit Mandal
email: amimanda@cisco.com
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
cisco-imc-chef CHANGELOG
This file is used to list changes made in each version of the cisco-imc-chef cookbook.
0.9.1
- [Amit Mandal] - Initial release of cisco-imc-chef
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.9.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.9.1 failed this metric
FC016: LWRP does not declare a default action: cisco_imc_cookbook/resources/cisco_imc_utils.rb:1
FC064: Ensure issues_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC065: Ensure source_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cisco_imc_cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: cisco_imc_cookbook/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.9.1 failed this metric
cisco_imc_cookbook does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.9.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
cisco_imc_cookbook/files/default/vendor/cache/ImcSdk-0.9.1.gem
Testing File Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.9.1 failed this metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.9.1 failed this metric
FC016: LWRP does not declare a default action: cisco_imc_cookbook/resources/cisco_imc_utils.rb:1
FC064: Ensure issues_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC065: Ensure source_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cisco_imc_cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: cisco_imc_cookbook/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.9.1 failed this metric
cisco_imc_cookbook does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.9.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
cisco_imc_cookbook/files/default/vendor/cache/ImcSdk-0.9.1.gem
Testing File Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.9.1 failed this metric
FC064: Ensure issues_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC065: Ensure source_url is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cisco_imc_cookbook/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cisco_imc_cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: cisco_imc_cookbook/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.9.1 failed this metric
cisco_imc_cookbook does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.9.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
cisco_imc_cookbook/files/default/vendor/cache/ImcSdk-0.9.1.gem
Testing File Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.9.1 failed this metric
cisco_imc_cookbook/files/default/vendor/cache/ImcSdk-0.9.1.gem
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.9.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.9.1 failed this metric