Skip to content

Commit ed1b4a5

Browse files
authored
fix multi masters/compilers (#140)
* fix multi masters/compilers I've had issues running multi masters and compilers (last working was 6.4.0 - yes i haven't updated in quite a while) * Update chart version
1 parent abdf969 commit ed1b4a5

6 files changed

Lines changed: 14 additions & 6 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ numbering uses [semantic versioning](http://semver.org).
55

66
NOTE: The change log until version `v0.2.4` is auto-generated.
77

8+
## [v6.8.1](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v6.8.1) (2022-12-07)
9+
10+
- fix: change order of scripts in master init or it will error out if compliers are enabled
11+
- fix: add PUPPET_SSL_DIR env var and change check_for_masters.sh or init would wait indefinitely for ssl generation when running multi master
12+
- fix: change from deprecated autoscaling/v2beta2 HorizontalPodAutoscaler to autoscaling/v2
13+
814
## [v6.8.0](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v6.8.0) (2022-10-26)
915

1016
- fix: Save crl to defined filename

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: puppetserver
3-
version: 6.8.0
3+
version: 6.8.1
44
appVersion: 7.4.2
55
description: Puppet automates the delivery and operation of software.
66
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]

templates/puppetserver-deployment-masters.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ spec:
5757
env:
5858
- name: PUPPET_DATA_DIR
5959
value: "/etc/puppetlabs/code/environments"
60+
- name: PUPPET_SSL_DIR
61+
value: "/etc/puppetlabs/puppet/ssl/certs"
6062
- name: PUPPET_SSL_CERT_PEM
6163
value: "/etc/puppetlabs/puppet/ssl/certs/{{ (include "puppetserver.puppetserver-masters.serviceName" . ) }}.pem"
6264
{{- end }}
@@ -92,15 +94,15 @@ spec:
9294
cp /etc/puppetlabs/puppet/configmap/hiera.yaml /etc/puppetlabs/puppet/hiera.yaml;
9395
chown puppet:puppet /etc/puppetlabs/puppet/hiera.yaml;
9496
{{- end }}
95-
cp /etc/puppetlabs/puppet/configmap/site.pp /etc/puppetlabs/puppet/manifests/site.pp;
96-
chown puppet:puppet /etc/puppetlabs/puppet/manifests/site.pp;
9797
{{- if or (.Values.hiera.eyaml.public_key) (.Values.hiera.eyaml.private_key) (.Values.hiera.eyaml.existingMap) (.Values.hiera.eyaml.existingSecret) }}
9898
cp /etc/puppetlabs/puppet/configmap/eyaml/*private_key.pkcs7.pem /etc/puppetlabs/puppet/eyaml/keys/;
9999
chown puppet:puppet /etc/puppetlabs/puppet/eyaml/keys/*private_key.pkcs7.pem;
100100
cp /etc/puppetlabs/puppet/configmap/eyaml/*public_key.pkcs7.pem /etc/puppetlabs/puppet/eyaml/keys/;
101101
chown puppet:puppet /etc/puppetlabs/puppet/eyaml/keys/*public_key.pkcs7.pem;
102102
{{- end }}
103103
{{- end }}
104+
cp /etc/puppetlabs/puppet/configmap/site.pp /etc/puppetlabs/puppet/manifests/site.pp;
105+
chown puppet:puppet /etc/puppetlabs/puppet/manifests/site.pp;
104106
{{- if .Values.singleCA.enabled }}
105107
cp /etc/puppetlabs/puppet/configmap/crl_entrypoint.sh /etc/puppetlabs/puppet/ssl/crl_entrypoint.sh;
106108
cp /etc/puppetlabs/puppet/configmap/crl_cronjob.sh /etc/puppetlabs/puppet/ssl/crl_cronjob.sh;

templates/puppetserver-hpa-compilers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.puppetserver.compilers.enabled }}
22
{{- if .Values.puppetserver.compilers.autoScaling.enabled }}
3-
apiVersion: autoscaling/v2beta2
3+
apiVersion: autoscaling/v2
44
kind: HorizontalPodAutoscaler
55
metadata:
66
name: {{ template "puppetserver.name" . }}-compilers-autoscaler

templates/puppetserver-hpa-masters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.puppetserver.masters.multiMasters.enabled }}
22
{{- if .Values.puppetserver.masters.multiMasters.autoScaling.enabled }}
3-
apiVersion: autoscaling/v2beta2
3+
apiVersion: autoscaling/v2
44
kind: HorizontalPodAutoscaler
55
metadata:
66
name: {{ template "puppetserver.name" . }}-masters-autoscaler

templates/puppetserver-init-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
data:
99
check_for_masters.sh: |
1010
#!/usr/bin/env bash
11-
if [[ -d "$PUPPET_DATA_DIR" ]]; then
11+
if [[ -d "$PUPPET_SSL_DIR" ]]; then
1212
echo "A Puppetserver master has already started running."
1313
echo "Waiting to finish the generation of the Puppet SSL certs..."
1414
sleep 5

0 commit comments

Comments
 (0)