annotate manifests/nodes.pp @ 260:5f63afb70415

Fix naming of files for new VPS overrides $hostname is just the short host name, not the FQDN
author IBBoard <dev@ibboard.co.uk>
date Sun, 29 Dec 2019 10:57:18 -0500
parents 7307c3d59ce7
children e36b7f4f85f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 node 'cloud.ibboard.co.uk' {
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 class { 'ibboardvpsnode':
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 primary_ip => '207.210.203.162',
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 secondary_ip => '143.95.92.165',
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 mailserver => 'mail.ibboard.co.uk',
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 imapserver => 'imap.ibboard.co.uk',
35
1bb941522ebf Handle differences in firewalling between ASO (using APF) and most other hosts (using iptables)
IBBoard <dev@ibboard.co.uk>
parents: 29
diff changeset
8 firewall_cmd => 'apf',
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 }
38
a1960fb961c5 Move APF refresh command to node template, as it won't work on boxes without it!
IBBoard <dev@ibboard.co.uk>
parents: 35
diff changeset
10 cron { 'apf-refresh':
a1960fb961c5 Move APF refresh command to node template, as it won't work on boxes without it!
IBBoard <dev@ibboard.co.uk>
parents: 35
diff changeset
11 command => '/etc/apf/apf --refresh >> /dev/null 2>&1 &',
a1960fb961c5 Move APF refresh command to node template, as it won't work on boxes without it!
IBBoard <dev@ibboard.co.uk>
parents: 35
diff changeset
12 hour => '*/6',
a1960fb961c5 Move APF refresh command to node template, as it won't work on boxes without it!
IBBoard <dev@ibboard.co.uk>
parents: 35
diff changeset
13 minute => '45'
a1960fb961c5 Move APF refresh command to node template, as it won't work on boxes without it!
IBBoard <dev@ibboard.co.uk>
parents: 35
diff changeset
14 }
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 }
29
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
16
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
17 node 'clouduk.ibboard.co.uk' {
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
18 class { 'ibboardvpsnode':
70
c91296a71160 Update IP address of clouduk - test VM should use a different name!
IBBoard <dev@ibboard.co.uk>
parents: 56
diff changeset
19 primary_ip => '213.229.111.243',
c91296a71160 Update IP address of clouduk - test VM should use a different name!
IBBoard <dev@ibboard.co.uk>
parents: 56
diff changeset
20 secondary_ip => '213.229.111.243',
29
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
21 mailserver => 'mail.ibboard.co.uk',
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
22 imapserver => 'imap.ibboard.co.uk',
35
1bb941522ebf Handle differences in firewalling between ASO (using APF) and most other hosts (using iptables)
IBBoard <dev@ibboard.co.uk>
parents: 29
diff changeset
23 firewall_cmd => 'iptables',
29
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
24 }
41df236f3fb0 Add trial node config for new site (IPs for test VM)
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
25 }
109
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
26
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
27 node 'cloudtest.ibboard.co.uk' {
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
28 class { 'ibboardvpsnode':
151
1ad747713519 Update test machine IPs to match new DHCP pool
IBBoard <dev@ibboard.co.uk>
parents: 114
diff changeset
29 primary_ip => '192.168.1.78',
1ad747713519 Update test machine IPs to match new DHCP pool
IBBoard <dev@ibboard.co.uk>
parents: 114
diff changeset
30 secondary_ip => '192.168.1.78',
109
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
31 mailserver => 'mail.ibboard.co.uk',
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
32 imapserver => 'imap.ibboard.co.uk',
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
33 firewall_cmd => 'iptables',
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
34 }
019968cfda31 Add dev machine entry with correct IPs
IBBoard <dev@ibboard.co.uk>
parents: 70
diff changeset
35 }
247
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
36 node 'ibbvps.vs.mythic-beasts.com' {
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
37 class { 'ibboardvpsnode':
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
38 primary_ip => '2a00:1098:82:52::1',
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
39 mailserver => 'mail.ibboard.co.uk',
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
40 imapserver => 'imap.ibboard.co.uk',
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
41 firewall_cmd => 'iptables',
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
42 }
251
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
43 # If the console fails to start, you may need to run "restorecon /etc/systemd/system/getty.target.wants/*"
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
44 # to reset the SELinux context of the file
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
45 service { 'serial-getty@ttyS0':
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
46 ensure => 'running',
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
47 enable => 'true',
7307c3d59ce7 Enable console over admin shell via serial
IBBoard <dev@ibboard.co.uk>
parents: 247
diff changeset
48 }
247
308f69ca988c Add config for new server
IBBoard <dev@ibboard.co.uk>
parents: 151
diff changeset
49 }