diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2015-03-11 19:48:02 +0000 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2015-03-16 17:59:55 +0000 |
commit | fe364c83daf5f66c685a00e3b368322d53139401 (patch) | |
tree | 652f1aab08c85fb5888e819bef51045584291cc0 | |
parent | fcc6c405d5efd0043419bf7696a875fb18b7930a (diff) | |
download | definitions-fe364c83daf5f66c685a00e3b368322d53139401.tar.gz |
simple-network.configure: Update documentation
-rwxr-xr-x | simple-network.configure | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/simple-network.configure b/simple-network.configure index fbbe6c4e..7c078c93 100755 --- a/simple-network.configure +++ b/simple-network.configure @@ -13,13 +13,15 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. -'''A Morph deployment configuration extension to handle /etc/network/interfaces +'''A Morph deployment configuration extension to handle network configutation -This extension prepares /etc/network/interfaces with the interfaces specified -during deployment. +This extension prepares /etc/network/interfaces and networkd .network files +in /etc/systemd/network/ with the interfaces specified during deployment. If no network configuration is provided, eth0 will be configured for DHCP -with the hostname of the system. +with the hostname of the system in the case of /etc/network/interfaces. +In the case of networkd, any interface starting by e* will be configured +for DHCP ''' @@ -36,9 +38,10 @@ class SimpleNetworkError(morphlib.Error): class SimpleNetworkConfigurationExtension(cliapp.Application): - '''Configure /etc/network/interfaces + '''Configure /etc/network/interfaces and generate networkd .network files - Reading NETWORK_CONFIG, this extension sets up /etc/network/interfaces. + Reading NETWORK_CONFIG, this extension sets up /etc/network/interfaces + and .network files in /etc/systemd/network/. ''' def process_args(self, args): |