cookbook 'staticip', '= 0.1.2'
staticip (5) Versions 0.1.2 Follow2
Configure static ip
cookbook 'staticip', '= 0.1.2', :supermarket
knife supermarket install staticip
knife supermarket download staticip
staticip Cookbook
Configure static ip
Requirements
Platform
- Debian/Ubuntu
- RHEL/CentOS/Scientific
- Fedora
- ArchLinux
- FreeBSD
Recipes
- default
Attributes List
-
node['staticip']['nic_interface]
- Which nic interface to configure ip. Default value is eth0 -
node['staticip']['ipaddress']
- What ip it should configure
Examples and Common usage
Configure eth0 as 192.168.1.103
"staticip": { "nic_interface": "eth0", "ipaddress": "127.0.0.1" }
License & Authors
- Author:: DennyZhang001 denny.zhang001@gmail.com
Copyright:: 2015, DennyZhang.com 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.
Dependent cookbooks
apache2 >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/fb6fb537da69e7e58b846323/staticip/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/fb6fb537da69e7e58b846323/staticip/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/fb6fb537da69e7e58b846323/staticip/recipes/default.rb:10
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/fb6fb537da69e7e58b846323/staticip/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/fb6fb537da69e7e58b846323/staticip/recipes/default.rb:10