├── .gitignore ├── .kitchen.yml ├── .rubocop.yml ├── .travis.yml ├── Berksfile ├── CHANGELOG.md ├── Guardfile ├── LICENSE ├── README.md ├── chefignore ├── files └── default │ └── interfaces ├── libraries ├── matchers.rb ├── provider_debian_network_interface.rb ├── provider_network_interface.rb ├── provider_rhel_network_interface.rb ├── provider_win_network_interface.rb ├── resource_debian_network_interface.rb ├── resource_network_interface.rb ├── resource_rhel_network_interface.rb ├── resource_win_network_interface.rb ├── ruby_wmi_ext.rb └── wmi_helper.rb ├── metadata.rb ├── recipes ├── default.rb └── powershell_installer.rb ├── spec ├── helper_recipes │ ├── fake_bonding_spec.rb │ ├── fake_bridge_spec.rb │ ├── fake_core_spec.rb │ ├── fake_dhcp_spec.rb │ ├── fake_dns_spec.rb │ ├── fake_metrics_spec.rb │ ├── fake_multiple_int_defs_spec.rb │ ├── fake_override_spec.rb │ ├── fake_ovs_dhcp_spec.rb │ └── fake_vlan_spec.rb ├── libraries │ └── provider_win_network_interface_spec.rb ├── spec_helper.rb └── support │ └── matchers.rb ├── templates └── default │ ├── debian_interface.erb │ └── ifcfg.erb └── test ├── fixtures └── cookbooks │ ├── fake │ ├── metadata.rb │ └── recipes │ │ ├── _core_enp.rb │ │ ├── _core_eth.rb │ │ ├── _core_win.rb │ │ ├── _ovs_dhcp_enp.rb │ │ ├── _ovs_dhcp_eth.rb │ │ ├── bonding.rb │ │ ├── bridge.rb │ │ ├── core.rb │ │ ├── default.rb │ │ ├── dhcp.rb │ │ ├── dns.rb │ │ ├── metrics.rb │ │ ├── multiple_int_defs.rb │ │ ├── override.rb │ │ ├── ovs_dhcp.rb │ │ └── vlan.rb │ └── net_setup │ ├── metadata.rb │ └── recipes │ └── default.rb └── integration └── default └── serverspec ├── Gemfile ├── bonding_spec.rb ├── bridge_spec.rb ├── config_spec.rb ├── fixtures ├── enp0s4 ├── eth0 ├── eth4 ├── ifcfg-enp0s3 ├── ifcfg-enp0s4 ├── ifcfg-eth0 └── ifcfg-eth4 ├── interfaces_spec.rb ├── spec_helper.rb └── vlan_spec.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/.gitignore -------------------------------------------------------------------------------- /.kitchen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/.kitchen.yml -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/.travis.yml -------------------------------------------------------------------------------- /Berksfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/Berksfile -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/Guardfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/README.md -------------------------------------------------------------------------------- /chefignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/chefignore -------------------------------------------------------------------------------- /files/default/interfaces: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/files/default/interfaces -------------------------------------------------------------------------------- /libraries/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/matchers.rb -------------------------------------------------------------------------------- /libraries/provider_debian_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/provider_debian_network_interface.rb -------------------------------------------------------------------------------- /libraries/provider_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/provider_network_interface.rb -------------------------------------------------------------------------------- /libraries/provider_rhel_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/provider_rhel_network_interface.rb -------------------------------------------------------------------------------- /libraries/provider_win_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/provider_win_network_interface.rb -------------------------------------------------------------------------------- /libraries/resource_debian_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/resource_debian_network_interface.rb -------------------------------------------------------------------------------- /libraries/resource_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/resource_network_interface.rb -------------------------------------------------------------------------------- /libraries/resource_rhel_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/resource_rhel_network_interface.rb -------------------------------------------------------------------------------- /libraries/resource_win_network_interface.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/resource_win_network_interface.rb -------------------------------------------------------------------------------- /libraries/ruby_wmi_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/ruby_wmi_ext.rb -------------------------------------------------------------------------------- /libraries/wmi_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/libraries/wmi_helper.rb -------------------------------------------------------------------------------- /metadata.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/metadata.rb -------------------------------------------------------------------------------- /recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/recipes/default.rb -------------------------------------------------------------------------------- /recipes/powershell_installer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/recipes/powershell_installer.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_bonding_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_bonding_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_bridge_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_bridge_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_core_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_core_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_dhcp_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_dhcp_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_dns_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_dns_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_metrics_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_metrics_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_multiple_int_defs_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_multiple_int_defs_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_override_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_override_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_ovs_dhcp_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_ovs_dhcp_spec.rb -------------------------------------------------------------------------------- /spec/helper_recipes/fake_vlan_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/helper_recipes/fake_vlan_spec.rb -------------------------------------------------------------------------------- /spec/libraries/provider_win_network_interface_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/libraries/provider_win_network_interface_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/spec/support/matchers.rb -------------------------------------------------------------------------------- /templates/default/debian_interface.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/templates/default/debian_interface.erb -------------------------------------------------------------------------------- /templates/default/ifcfg.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/templates/default/ifcfg.erb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/metadata.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/metadata.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/_core_enp.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/_core_enp.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/_core_eth.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/_core_eth.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/_core_win.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/_core_win.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/_ovs_dhcp_enp.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/_ovs_dhcp_enp.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/_ovs_dhcp_eth.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/_ovs_dhcp_eth.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/bonding.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/bonding.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/bridge.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/bridge.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/core.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/core.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/default.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/dhcp.rb: -------------------------------------------------------------------------------- 1 | network_interface 'eth1' 2 | -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/dns.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/dns.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/metrics.rb: -------------------------------------------------------------------------------- 1 | debian_network_interface 'eth2' do 2 | metric 25 3 | end 4 | -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/multiple_int_defs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/multiple_int_defs.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/override.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/override.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/ovs_dhcp.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/ovs_dhcp.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/fake/recipes/vlan.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/fake/recipes/vlan.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/net_setup/metadata.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/net_setup/metadata.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/net_setup/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/fixtures/cookbooks/net_setup/recipes/default.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/Gemfile -------------------------------------------------------------------------------- /test/integration/default/serverspec/bonding_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/bonding_spec.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/bridge_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/bridge_spec.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/config_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/config_spec.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/enp0s4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/enp0s4 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/eth0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/eth0 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/eth4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/eth4 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/ifcfg-enp0s3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/ifcfg-enp0s3 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/ifcfg-enp0s4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/ifcfg-enp0s4 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/ifcfg-eth0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/ifcfg-eth0 -------------------------------------------------------------------------------- /test/integration/default/serverspec/fixtures/ifcfg-eth4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/fixtures/ifcfg-eth4 -------------------------------------------------------------------------------- /test/integration/default/serverspec/interfaces_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/interfaces_spec.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/spec_helper.rb -------------------------------------------------------------------------------- /test/integration/default/serverspec/vlan_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/target/network_interfaces_v2-cookbook/HEAD/test/integration/default/serverspec/vlan_spec.rb --------------------------------------------------------------------------------