File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
modules/profile/manifests/puppet Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 77) {
88 include profile::puppet::common
99
10+ # Prevent automatic Java updates, as this breaks Puppet until someone we
11+ # manually restart the server with `sudo systemctl restart puppetserver`
12+ #
13+ # Example `run-puppet-agent` output:
14+ # > Error 500 on SERVER: Server Error:
15+ # > Exception while executing '/etc/puppet/code/environments/production/bin/config-version.sh':
16+ # > Cannot run program (in directory "."): Failed to exec spawn helper
17+ #
18+ # Example `systemctl status puppetserver` output:
19+ # > java: Incorrect Java version: 17.0.X
20+ # > java: jspawnhelper version 17.0.Y
21+ # > java: This command is not for general use and should only be run as the result of
22+ # > java: ProcessBuilder.start() or Runtime.exec() in a java application
23+ #
24+ # https://github.com/jquery/infrastructure-puppet/issues/76
25+ apt::conf { 'unattended-upgrades-exclude-java' :
26+ priority => 60,
27+ # Use trailing '::' in apt.conf key, to append to potentially entries in other files
28+ # https://linux.die.net/man/5/apt.conf
29+ content => ' Unattended-Upgrade::Package-Blacklist:: "openjdk-";' ,
30+ }
31+
1032 stdlib::ensure_packages([
1133 ' rsync' ,
1234 ])
You can’t perform that action at this time.
0 commit comments