Skip to content
Snippets Groups Projects
Commit 000f81ca authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Made public_ip work better for ubuntu.

parent 2d4a3179
No related branches found
No related tags found
No related merge requests found
......@@ -4,19 +4,22 @@ class lysnetwork::public_ip {
$last_octet_16 = String($last_octet, '%x')
network::interface { $iface :
interface => $iface,
ipaddress => $facts['networking']['ip'],
interface => $iface,
ipaddress => $facts['networking']['ip'],
ipv6init => 'yes',
ipv6addr => "2001:6b0:17:f0a0::${last_octet_16}",
ipv6_defaultgw => '2001:6b0:17:f0a0::1',
ipv6init => 'yes',
ipv6addr => "2001:6b0:17:f0a0::${last_octet_16}",
ipv6_defaultgw => '2001:6b0:17:f0a0::1',
netmask => '255.255.255.0',
gateway => '130.236.254.1',
netmask => '255.255.255.0',
gateway => '130.236.254.1',
domain => 'lysator.liu.se',
dns1 => '130.236.254.4',
dns2 => '130.236.254.225',
domain => 'lysator.liu.se',
dns1 => '130.236.254.4',
dns2 => '130.236.254.225',
dns_search => 'lysator.liu.se',
dns_nameservers => '130.236.254.4 130.236.254.225',
}
case $facts['os']['family'] {
......@@ -26,6 +29,7 @@ class lysnetwork::public_ip {
}
}
'Debian': {
package { 'resolvconf': ensure => installed }
# An ifdown before and an ifup after would be preferable
# but if something goes wrong then than's bad
# Also, the interface should only be reinstansiated if the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment