Created
December 10, 2012 15:20
-
-
Save raphink/4251193 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ sudo puppet resource netcf_if | |
netcf_if { 'eth1': | |
ensure => 'down', | |
definition => '<?xml version="1.0"?> | |
<interface name="eth1" type="ethernet"> | |
<start mode="onboot"/> | |
<protocol family="ipv4"> | |
<ip address="192.168.0.5" prefix="24"/> | |
<route gateway="192.168.0.1"/> | |
</protocol> | |
</interface> | |
', | |
} | |
netcf_if { 'lo': | |
ensure => 'up', | |
definition => '<?xml version="1.0"?> | |
<interface name="lo" type="ethernet"> | |
<start mode="onboot"/> | |
<protocol family="ipv4"> | |
<ip address="127.0.0.1" prefix="8"/> | |
</protocol> | |
</interface> | |
', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment