cookbook 'device42', '~> 1.0.1'
device42 (1) Versions 1.0.1 Follow0
Configure requests to Device42 API
cookbook 'device42', '~> 1.0.1', :supermarket
knife supermarket install device42
knife supermarket download device42
Device42 Cookbook
Provides Chef Custom Resource for accessing the Device42 REST API.
Requirements
Chef
- Chef 14.0+
Attributes
- ['device42']['instance'] - The URL of your Device42 instance.
- ['device42']['user'] - The Device42 user with RESTful API access
- ['device42']['password'] - Device42 API user's password
Usage
This cookbook requires a Device42 appliance installed in your environment. Click here for a free trial of Device42. The Device42 instances should be configured with a signed certificate, using a self-signed certificate is not supported.
Resources
Device
Actions
-
:create
, default:true
Properties
-
:device_name
, String, required: true -
:user
, String, required: true -
:password
, String, required: true -
:url
, String, required: true
Helpers
IPAM
Methods
-
suggest_ip(subnet)
- Suggests and reserves the next available IP in a passed subnet in Device42 -
reserve_ip(ip)
- Reserves an passed IP in Device42
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Device42 Cookbook Changelog
This file is used to list changes made in each version of the device42 cookbook.
1.0.1 (2019-05-02)
- Updated
suggest_ip
method to reserve the suggested IP
Collaborator Number Metric
1.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.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
1.0.1 failed this metric
FC067: Ensure at least one platform supported in metadata: device42/metadata.rb:1
FC069: Ensure standardized license defined in metadata: device42/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.1 failed this metric
1.0.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
1.0.1 failed this metric
FC067: Ensure at least one platform supported in metadata: device42/metadata.rb:1
FC069: Ensure standardized license defined in metadata: device42/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.1 failed this metric
FC069: Ensure standardized license defined in metadata: device42/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.1 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.1 failed this metric
1.0.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