cookbook 'network_interfaces', '= 1.0.0'
network_interfaces (11) Versions 1.0.0 Follow11
Installs/Configures network on Ubuntu and Debian
cookbook 'network_interfaces', '= 1.0.0', :supermarket
knife supermarket install network_interfaces
knife supermarket download network_interfaces
Description
Manage /etc/network/interfaces on debian / Ubuntu
Requirements
ifupdown-0.7~alpha3 or older :
* debian >= squeeze
* Ubuntu >= 11.04 (natty)
Attributes
Usage
example for a bridge with pre-up and pre-down script :
network_interfaces "br-test" do
target "172.16.88.2"
mask "255.255.255.0"
bridge [ "none" ]
pre_up "cat /tmp/iptables-create | iptables-restore -n"
post_down "cat /tmp/iptables-delete | iptables-restore -n"
end
More documentation later.
Dependent cookbooks
modules >= 0.1.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 passed this metric
Contributing File Metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: network_interfaces/metadata.rb:1
FC065: Ensure source_url is set in metadata: network_interfaces/metadata.rb:1
FC066: Ensure chef_version is set in metadata: network_interfaces/metadata.rb:1
FC069: Ensure standardized license defined in metadata: network_interfaces/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: network_interfaces/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:71
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:86
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:37
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:80
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: network_interfaces/metadata.rb:1
FC065: Ensure source_url is set in metadata: network_interfaces/metadata.rb:1
FC066: Ensure chef_version is set in metadata: network_interfaces/metadata.rb:1
FC069: Ensure standardized license defined in metadata: network_interfaces/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: network_interfaces/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:71
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:86
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:37
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:80
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
FC065: Ensure source_url is set in metadata: network_interfaces/metadata.rb:1
FC066: Ensure chef_version is set in metadata: network_interfaces/metadata.rb:1
FC069: Ensure standardized license defined in metadata: network_interfaces/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: network_interfaces/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:71
FC085: Resource using new_resource.updated_by_last_action to converge resource: network_interfaces/providers/default.rb:86
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:37
FC104: Use the :run action in ruby_block instead of :create: network_interfaces/providers/default.rb:80
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric