summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp21
1 files changed, 20 insertions, 1 deletions
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': }
+
}