cookbook 'network_interfaces', '= 2.0.4'
network_interfaces (12) Versions 2.0.4 Follow11
Installs/Configures network on Ubuntu and Debian
cookbook 'network_interfaces', '= 2.0.4', :supermarket
knife supermarket install network_interfaces
knife supermarket download network_interfaces
network_interfaces
Description
Manage /etc/network/interfaces
on Debian/Ubuntu
Attributes
-
node['network_interfaces']['replace_orig']
- Replaces/etc/network/interfaces
if set totrue
Usage
example for a bridge with pre-up and pre-down script :
include_recipe 'network_interfaces' 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 |
line ~> 4.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
network_interface
2.0.4 - 2023-09-11
2.0.3 - 2023-06-08
Standardise files with files in sous-chefs/repo-management
2.0.2 - 2022-02-08
- Remove delivery folder
2.0.1 - 2021-08-30
- Standardise files with files in sous-chefs/repo-management
2.0.0 - 2021-06-30
- Fix typo between
interfaces.erb
template andnetwork_interfaces
resource property (h/t @Fuuzetsu) - Drop Travis CI in favor of GitHub Actions
- Drop support for Debian < 8
- Drop support for Ubuntu < 18.04
- Ubuntu 20.04 is TBD on support b/c of changes to how
/etc/network
works
- Ubuntu 20.04 is TBD on support b/c of changes to how
- Standardize on current filenames for support files
- Update metadata & authors to reflect current maintainers & recent authors
- Update ChefSpec syntax per current standards
- Add EditorConfig for Markdown files
- Upgrade to
line
v4.x - Refactor to Chef 12 resource
1.0.2 - 2021-06-01
- resolved cookstyle error: Berksfile:1:1 refactor:
ChefModernize/LegacyBerksfileSource
- resolved cookstyle error: libraries/matchers.rb:1:1 refactor:
ChefModernize/DefinesChefSpecMatchers
- resolved cookstyle error: metadata.rb:6:1 refactor:
ChefRedundantCode/LongDescriptionMetadata
- resolved cookstyle error: providers/default.rb:1:1 refactor:
ChefModernize/WhyRunSupportedTrue
- resolved cookstyle error: providers/default.rb:5:1 warning:
ChefDeprecations/UseInlineResourcesDefined
- resolved cookstyle error: providers/default.rb:8:8 warning:
ChefDeprecations/NodeSet
- resolved cookstyle error: recipes/default.rb:2:1 refactor:
ChefStyle/CommentFormat
- resolved cookstyle error: recipes/default.rb:8:1 refactor:
ChefStyle/CommentFormat
- resolved cookstyle error: recipes/default.rb:9:1 refactor:
ChefStyle/CommentFormat
- resolved cookstyle error: recipes/default.rb:25:6 warning:
ChefDeprecations/NodeSet
- Add custom matchers for
network_interface
LWRP (#21) - Drop very old Debian support (#14)
- Refactor linting, syntax checking, and unit testing (#29)
- Includes a tweak to work on Ubuntu 16.04
- Updates testing to latest two versions of Debian & Ubuntu
- Add features & better errors to LWRP (#30)
- Add support for the
allow-hotplug
stanza mainly used in Debian.
v1.0.0 - 2014-03-03
- Bump version to 1.0.0 to reflect production-level usage
- Adjust support to be Ubuntu >= 12.04
- Add more comprehensive testing, using:
- Rubocop
- Foodcritic (just cleaned things up)
- Test Kitchen (integration tests!)
- Cleaned up some lingering Foodcritic issues
- LWRP notifications
- Unknown resource attributes due to slightly funky syntax
- Satisfied Rubocop with some comments
- Fixed syntax error introduced in 0.3.1 with the ternary
- Add Ruby 2.x testing to Travis config
- Fix issue with ever-expanding
node['network_interfaces']['order']
v0.3.1 - 2014-02-24
- Clean up code, following Rubocop’s suggestions
v0.3.0 - 2013-11-13
- Refactor & streamline much of the code
v0.2.2 - 2014-02-07
- fix foodcritic
- fix directory permissions
v0.2.0 - 2013-04-04
- Initial changelog
Collaborator Number Metric
2.0.4 passed this metric
Contributing File Metric
2.0.4 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
Cookstyle Metric
2.0.4 failed this metric
Chef/Correctness/NodeNormal: Do not use node.normal. Replace with default/override/force_default/force_override attribute levels. (https://docs.chef.io/workstation/cookstyle/chef_correctness_nodenormal): network_interfaces/recipes/default.rb: 27
Chef/Correctness/NodeNormal: Do not use node.normal. Replace with default/override/force_default/force_override attribute levels. (https://docs.chef.io/workstation/cookstyle/chef_correctness_nodenormal): network_interfaces/resources/default.rb: 31
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): network_interfaces/resources/default.rb: 1
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
2.0.4 passed this metric
Testing File Metric
2.0.4 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
2.0.4 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
2.0.4 passed this metric
2.0.4 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
Cookstyle Metric
2.0.4 failed this metric
Chef/Correctness/NodeNormal: Do not use node.normal. Replace with default/override/force_default/force_override attribute levels. (https://docs.chef.io/workstation/cookstyle/chef_correctness_nodenormal): network_interfaces/recipes/default.rb: 27
Chef/Correctness/NodeNormal: Do not use node.normal. Replace with default/override/force_default/force_override attribute levels. (https://docs.chef.io/workstation/cookstyle/chef_correctness_nodenormal): network_interfaces/resources/default.rb: 31
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): network_interfaces/resources/default.rb: 1
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
2.0.4 passed this metric
Testing File Metric
2.0.4 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
2.0.4 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
2.0.4 failed this metric
Chef/Correctness/NodeNormal: Do not use node.normal. Replace with default/override/force_default/force_override attribute levels. (https://docs.chef.io/workstation/cookstyle/chef_correctness_nodenormal): network_interfaces/resources/default.rb: 31
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): network_interfaces/resources/default.rb: 1
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
2.0.4 passed this metric
Testing File Metric
2.0.4 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
2.0.4 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
2.0.4 failed this metric
2.0.4 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