Skip to content

Instantly share code, notes, and snippets.

@raphink
Created December 10, 2012 15:20
Show Gist options
  • Save raphink/4251193 to your computer and use it in GitHub Desktop.
Save raphink/4251193 to your computer and use it in GitHub Desktop.
$ 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