cookbook 'staticip', '= 0.1.4'
staticip (5) Versions 0.1.4 Follow2
Configure static ip
cookbook 'staticip', '= 0.1.4', :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, http://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.4 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6a47c5fd471f6109836855aa/staticip/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6a47c5fd471f6109836855aa/staticip/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6a47c5fd471f6109836855aa/staticip/recipes/default.rb:10
0.1.4 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6a47c5fd471f6109836855aa/staticip/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6a47c5fd471f6109836855aa/staticip/recipes/default.rb:10