Move timeserver from czerny to manda-node03
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 15 Jun 2019 19:51:42 +0000 (21:51 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 15 Jun 2019 19:53:05 +0000 (21:53 +0200)
modules/ntp/files/ntpkey_iff_czerny.pub [deleted file]
modules/ntp/files/ntpkey_iff_manda-node03.pub [new file with mode: 0644]
modules/ntp/manifests/client.pp
modules/ntp/templates/ntp.conf
modules/ntpdate/manifests/init.pp

diff --git a/modules/ntp/files/ntpkey_iff_czerny.pub b/modules/ntp/files/ntpkey_iff_czerny.pub
deleted file mode 100644 (file)
index 2864b3c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# ntpkey_iffpar_czerny.3580363383
-# Sun Jun 16 09:23:03 2013
-
-# This is the public version of this 'private' key -
-# the private data has been replaced by 0x01.
-# (just ask 'openssl dsa -text < foo.pub')
-
------BEGIN DSA PRIVATE KEY-----
-MIHkAgEAAkEAm1nhgQ5JMlVOgd/InHfjoo3fitu2BuJkEFZrN6NXVB1mrZS523cb
-nxdujmM6CsQbRKH/V85hxVrbgvKzC7i7LQIVAM1KPTu/thw8w9C8/uZthu3SqWnf
-AkBb6TJy5An0xnrYIXmzqG37p03wQFUsRkFaNxP+a6xupbskIth6WE8gLRhhJHZm
-DTvn/w0yXZ9XHBDpcLlhZ9wHAkBb6TJy5An0xnrYIXmzqG37p03wQFUsRkFaNxP+
-a6xupbskIth6WE8gLRhhJHZmDTvn/w0yXZ9XHBDpcLlhZ9wHAgEB
------END DSA PRIVATE KEY-----
diff --git a/modules/ntp/files/ntpkey_iff_manda-node03.pub b/modules/ntp/files/ntpkey_iff_manda-node03.pub
new file mode 100644 (file)
index 0000000..bd94195
--- /dev/null
@@ -0,0 +1,14 @@
+# ntpkey_iffpar_manda-node03.3769616470
+# Sat Jun 15 19:43:02 2019
+
+# This is the public version of this 'private' key -
+# the private data has been replaced by 0x01.
+# (just ask 'openssl dsa -text < foo.pub')
+
+-----BEGIN DSA PRIVATE KEY-----
+MIHmAgEAAkEAyv4YnxjnvJiFem73XmVcR+lRhl8s4SMLmqLqLLkiIUIqaAhWErWb
+tduC77+paS+Z6eQvAzH8dSSct4SHyM0izwIVAJHn1Mg6pl1zZT7wDdk+ytg1sGVT
+AkEAxis2eFGMe5aKAqBIPatbrzavv3RlMVdb7x4LCt8+OY1B3rEjT9EPDmIgNx4G
+7vbgL9Vd1Ub2xjDBLzAvLqhnvQJBAMYrNnhRjHuWigKgSD2rW682r790ZTFXW+8e
+CwrfPjmNQd6xI0/RDw5iIDceBu724C/VXdVG9sYwwS8wLy6oZ70CAQE=
+-----END DSA PRIVATE KEY-----
index d75702c..e57e6e2 100644 (file)
@@ -4,9 +4,6 @@ class ntp::client {
                require => Package['ntp'],
                notify  => Service['ntp']
        }
-       file { '/etc/ntp.keys.d/ntpkey_iff_czerny':
-               source => 'puppet:///modules/ntp/ntpkey_iff_czerny.pub',
-       }
        file { '/etc/ntp.keys.d/ntpkey_iff_clementi':
                source => 'puppet:///modules/ntp/ntpkey_iff_clementi.pub',
        }
@@ -16,6 +13,12 @@ class ntp::client {
        file { '/etc/ntp.keys.d/ntpkey_iff_bm-bl2':
                source => 'puppet:///modules/ntp/ntpkey_iff_bm-bl2.pub',
        }
+       file { '/etc/ntp.keys.d/ntpkey_iff_manda-node03':
+               source => 'puppet:///modules/ntp/ntpkey_iff_manda-node03.pub',
+       }
+       file { '/etc/ntp.keys.d/ntpkey_iff_czerny':
+               ensure => absent,
+       }
        file { '/etc/ntp.keys.d/ntpkey_iff_ubc-bl2':
                ensure => absent,
        }
index 406d2f6..462f805 100644 (file)
@@ -25,25 +25,25 @@ leapfile /usr/share/zoneinfo/leap-seconds.list
 <% elsif scope.lookupvar('site::nodeinfo')['misc']['natted'] -%>
 # autokey doesn't work behind nat
 
-# czerny's, and bm-bl2's ipv4 IP, hard coded for the benefit of
+# manda-node03's, and bm-bl2's ipv4 IP, hard coded for the benefit of
 # hosts that do not have RTC's (since they won't be able to do DNS until
 # they have a reasonable clock).
-server 82.195.75.109        iburst
-server 5.153.231.242        iburst
+server 82.195.75.69               iburst
+server 5.153.231.242              iburst
 
-server czerny.debian.org    iburst
-server clementi.debian.org  iburst
-server bm-bl1.debian.org    iburst
-server bm-bl2.debian.org    iburst
+server manda-node03.debian.org    iburst
+server clementi.debian.org        iburst
+server bm-bl1.debian.org          iburst
+server bm-bl2.debian.org          iburst
 <% else -%>
-server czerny.debian.org       iburst autokey
-server clementi.debian.org     iburst autokey
-server bm-bl1.debian.org       iburst autokey
-server bm-bl2.debian.org       iburst autokey
-restrict czerny.debian.org     notrust nomodify notrap ntpport
-restrict clementi.debian.org   notrust nomodify notrap ntpport
-restrict bm-bl1.debian.org     notrust nomodify notrap ntpport
-restrict bm-bl2.debian.org     notrust nomodify notrap ntpport
+server manda-node03.debian.org    iburst autokey
+server clementi.debian.org        iburst autokey
+server bm-bl1.debian.org          iburst autokey
+server bm-bl2.debian.org          iburst autokey
+restrict manda-node03.debian.org  notrust nomodify notrap ntpport
+restrict clementi.debian.org      notrust nomodify notrap ntpport
+restrict bm-bl1.debian.org        notrust nomodify notrap ntpport
+restrict bm-bl2.debian.org        notrust nomodify notrap ntpport
 <% end -%>
 
 restrict -4 default kod notrap nomodify nopeer noquery
index 674d726..74cc23b 100644 (file)
@@ -9,7 +9,7 @@ class ntpdate {
                }
 
                $ntpservers = $::hostname ? {
-                       default => ['czerny.debian.org', 'clementi.debian.org', 'bm-bl1.debian.org', 'bm-bl2.debian.org']
+                       default => ['manda-node03.debian.org', 'clementi.debian.org', 'bm-bl1.debian.org', 'bm-bl2.debian.org']
                }
 
                file { '/etc/default/ntpdate':