-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `source` and `source-directory` stanzas in Debian Jessie interfaces(5) make this provider basically useless, as we could reimplement everything as a "interface fragment" in the `interfaces.d` directory, with one interface per file. Knowing that this would be a BIG refactor, I prefer to ignore theses stanzas and use the classic method + Automatically fix some rubocop offenses (with rubocop -a)
- Loading branch information
Davide Ferrari
committed
Jan 28, 2016
1 parent
1d69665
commit 2d58129
Showing
8 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
spec/fixtures/provider/network_config/interfaces_spec/jessie_source_stanza
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file describes the network interfaces available on your system | ||
# and how to activate them. For more information, see interfaces(5). | ||
|
||
source /etc/network/interfaces.d/* | ||
source-directory /etc/network/custom-ifaces | ||
|
||
# The loopback network interface | ||
auto lo | ||
iface lo inet loopback | ||
|
||
# The primary network interface | ||
allow-hotplug eth0 | ||
iface eth0 inet dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters