From ea7fe42527c93af940ca94b7a530724a461ab48f Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Wed, 27 Nov 2013 15:08:28 +0100 Subject: dhcp on cdr --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 86eb537..adf62fa 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -58,7 +58,8 @@ ufw::allow {"allow-ssh-tcp": } node 'sto-tug-kvm1.swamid.se' { - class { 'dhcp': + + class { 'dhcp': dnsdomain => [ 'eduid.se','sunet.se' ], nameservers => ['130.242.80.14','130.242.80.99'], ntpservers => ['pool.ntp.org'], @@ -66,6 +67,13 @@ node 'sto-tug-kvm1.swamid.se' { #pxeserver => '130.242.125.5', #pxefilename => 'pxelinux.0' } + + sunet-dhcp-hosts { 'sunet_dhcp_hosts': } + +} + +class sunet-dhcp-hosts { + dhcp::pool {'install': network => '130.242.125.0', mask => '255.255.255.192', @@ -199,4 +207,15 @@ class sunet { class sunet-cdr { + class { 'dhcp': + dnsdomain => [ 'eduid.se','sunet.se' ], + nameservers => ['130.242.80.14','130.242.80.99'], + ntpservers => ['pool.ntp.org'], + interfaces => ['bond0'], + #pxeserver => '130.242.125.5', + #pxefilename => 'pxelinux.0' + } + + sunet-dhcp-hosts { 'sunet_dhcp_hosts': } + } -- cgit v1.1