Skip to content
Snippets Groups Projects
Commit 51fac255 authored by Filip Polbratt's avatar Filip Polbratt
Browse files

Update public_ip.pp

parent 36b7ad1f
Branches
No related tags found
No related merge requests found
...@@ -3,6 +3,10 @@ class lysnetwork::public_ip { ...@@ -3,6 +3,10 @@ class lysnetwork::public_ip {
$last_octet = Integer(split($facts['networking']['ip'], '\.')[3],10) $last_octet = Integer(split($facts['networking']['ip'], '\.')[3],10)
$last_octet_16 = String($last_octet, '%x') $last_octet_16 = String($last_octet, '%x')
if ($facts['os']['name'] == 'Fedora') {
ensure_packages(['network-scripts',], {before => Network::Interface["${iface}"]}),
}
network::interface { $iface : network::interface { $iface :
interface => $iface, interface => $iface,
ipaddress => $facts['networking']['ip'], ipaddress => $facts['networking']['ip'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment