Skip to content

Commit 8523782

Browse files
authored
Merge pull request #3 from Xtigyro/v120
Chart v1.2.0
2 parents ad7d045 + 968a2fa commit 8523782

9 files changed

Lines changed: 95 additions & 28 deletions

CHANGELOG.md

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

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

8+
## [v1.2.0](https://github.com/Xtigyro/puppetserver-helm-chart/tree/v1.2.0) (2019-11-21)
9+
- Add optional extra container environment variables.
10+
- Add optional "r10k" extra container arguments.
11+
- Bump PupptDB to v6.7.3.
12+
- Small code indentation improvements.
13+
- README updates.
14+
15+
[Full Changelog](https://github.com/Xtigyro/puppetserver-helm-chart/compare/v1.1.0...v1.2.0)
16+
817
## [v1.1.0](https://github.com/Xtigyro/puppetserver-helm-chart/tree/v1.1.0) (2019-11-19)
918
- Switch Pulling the Hiera Data Repo from Using "git_sync" to "r10k".
1019

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: Puppet automates the delivery and operation of software.
33
name: puppetserver
4-
version: 1.1.0
4+
version: 1.2.0
55
appVersion: 6.7.1
66
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]
77
home: https://puppet.com/

README.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,31 +53,38 @@ You can use `kubectl get` to view all of the installed components.
5353

5454
```console
5555
$ kubectl get --namespace puppetserver all -l app=puppetserver
56-
NAME READY STATUS RESTARTS AGE
57-
pod/postgres-77cfcbf9f-md4zh 1/1 Running 0 10m
58-
pod/puppetboard-7677f4b747-67vbx 1/1 Running 0 10m
59-
pod/puppetdb-85c799d8fb-94t4h 1/1 Running 0 10m
60-
pod/puppetserver-6d48cb454b-5drxj 2/2 Running 0 10m
61-
62-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
63-
service/postgres ClusterIP 10.0.39.67 <none> 5432/TCP 10m
64-
service/puppet LoadBalancer 10.0.80.150 192.168.1.101 8140:31499/TCP 10m
65-
service/puppetdb ClusterIP 10.0.149.173 <none> 8080/TCP,8081/TCP 10m
56+
NAME READY STATUS RESTARTS AGE
57+
pod/postgres-584d75d8b-gw8n6 1/1 Running 0 31m
58+
pod/puppetdb-5f6fd6df7d-fqbc2 1/1 Running 0 31m
59+
pod/puppetserver-54f889b9c5-r7gm9 1/1 Running 0 31m
60+
pod/r10k-deploy-1573860480-5nnp9 0/1 Completed 0 6m6s
61+
pod/r10k-deploy-1573860600-qhk5j 0/1 Completed 0 4m6s
62+
pod/r10k-deploy-1573860720-hhkpp 0/1 Completed 0 2m6s
63+
pod/r10k-deploy-1573860840-tsx2n 0/1 Completed 0 6s
64+
65+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
66+
service/postgres ClusterIP 10.0.193.66 <none> 5432/TCP 31m
67+
service/puppet ClusterIP 10.0.79.57 <none> 8140/TCP 31m
68+
service/puppetdb ClusterIP 10.0.232.39 <none> 8080/TCP,8081/TCP 31m
6669
6770
NAME READY UP-TO-DATE AVAILABLE AGE
68-
deployment.apps/postgres 1/1 1 1 10m
69-
deployment.apps/puppetboard 1/1 1 1 10m
70-
deployment.apps/puppetdb 1/1 1 1 10m
71-
deployment.apps/puppetserver 1/1 1 1 10m
71+
deployment.apps/postgres 1/1 1 1 31m
72+
deployment.apps/puppetdb 1/1 1 1 31m
73+
deployment.apps/puppetserver 1/1 1 1 31m
7274
7375
NAME DESIRED CURRENT READY AGE
74-
replicaset.apps/postgres-77cfcbf9f 1 1 1 10m
75-
replicaset.apps/puppetboard-7677f4b747 1 1 1 10m
76-
replicaset.apps/puppetdb-85c799d8fb 1 1 1 10m
77-
replicaset.apps/puppetserver-6d48cb454b 1 1 1 10m
76+
replicaset.apps/postgres-584d75d8b 1 1 1 31m
77+
replicaset.apps/puppetdb-5f6fd6df7d 1 1 1 31m
78+
replicaset.apps/puppetserver-54f889b9c5 1 1 1 31m
79+
80+
NAME COMPLETIONS DURATION AGE
81+
job.batch/r10k-deploy-1573860480 1/1 3s 6m6s
82+
job.batch/r10k-deploy-1573860600 1/1 3s 4m6s
83+
job.batch/r10k-deploy-1573860720 1/1 3s 2m6s
84+
job.batch/r10k-deploy-1573860840 1/1 3s 6s
7885
7986
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
80-
cronjob.batch/r10k-deploy */2 * * * * False 0 40s 10m
87+
cronjob.batch/r10k-deploy */2 * * * * False 1 14s 31m
8188
```
8289

8390
## Configuration
@@ -88,7 +95,9 @@ Parameter | Description | Default
8895
--------- | ----------- | -------
8996
`puppetserver.name` | puppetserver component label | `puppetserver`
9097
`puppetserver.image` | puppetserver image | `puppet/puppetserver`
91-
`puppetserver.tag` | puppetserver img tag | `6.6.0`
98+
`puppetserver.tag` | puppetserver img tag | `6.7.1`
99+
`puppetserver.resources` | puppetserver resource limits | ``
100+
`puppetserver.extraEnv` | puppetserver additional container env vars | ``
92101
`puppetserver.pullPolicy` | puppetserver img pull policy | `IfNotPresent`
93102
`puppetserver.fqdns.alternateServerNames` | puppetserver alternate fqdns |``
94103
`puppetserver.service.type` | puppetserver svc type | `ClusterIP`
@@ -104,9 +113,12 @@ Parameter | Description | Default
104113
`puppetserver.puppeturl`| puppetserver control repo url |``
105114
`r10k.name` | r10k component label | `r10k`
106115
`r10k.image` | r10k img | `puppet/r10k`
107-
`r10k.tag` | r10k img tag | `3.3.1`
116+
`r10k.tag` | r10k img tag | `3.3.3`
108117
`r10k.pullPolicy` | r10k img pull policy | `IfNotPresent`
109118
`r10k.cronJob.schedule` | r10k cron job schedule policy | `*/2 * * * *`
119+
`r10k.resources` | r10k resource limits | ``
120+
`r10k.extraArgs` | r10k additional container env args | ``
121+
`r10k.extraEnv` | r10k additional container env vars | ``
110122
`r10k.viaHttps.enabled` | r10k repo cloning via https | `true`
111123
`r10k.viaHttps.credentials.username`| r10k https username |``
112124
`r10k.viaHttps.credentials.password`| r10k https password |``
@@ -119,10 +131,14 @@ Parameter | Description | Default
119131
`postgres.image` | postgres img | `postgres`
120132
`postgres.tag` | postgres img tag | `9.6.15`
121133
`postgres.pullPolicy` | postgres img pull policy | `IfNotPresent`
134+
`postgres.resources` | postgres resource limits | ``
135+
`postgres.extraEnv` | postgres additional container env vars | ``
122136
`puppetdb.name` | puppetdb component label | `puppetdb`
123137
`puppetdb.image` | puppetdb img | `puppet/puppetdb`
124-
`puppetdb.tag` | puppetdb img tag | `6.6.0`
138+
`puppetdb.tag` | puppetdb img tag | `6.7.3`
125139
`puppetdb.pullPolicy` | puppetdb img pull policy | `IfNotPresent`
140+
`puppetdb.resources` | puppetdb resource limits | ``
141+
`puppetdb.extraEnv` | puppetdb additional container env vars | ``
126142
`puppetdb.credentials.username`| puppetdb username |`puppetdb`
127143
`puppetdb.credentials.value.password`| puppetdb password |`20-char randomly generated`
128144
`puppetdb.credentials.password.existingSecret`| k8s secret that holds puppetdb password |``
@@ -132,6 +148,8 @@ Parameter | Description | Default
132148
`puppetboard.image` | puppetboard img | `puppet/puppetboard`
133149
`puppetboard.tag` | puppetboard img tag | `0.3.0`
134150
`puppetboard.pullPolicy` | puppetboard img pull policy | `IfNotPresent`
151+
`puppetboard.resources` | puppetboard resource limits | ``
152+
`puppetboard.extraEnv` | puppetboard additional container env vars | ``
135153
`hiera.name` | hiera component label | `hiera`
136154
`hiera.hieradataurl`| hieradata repo url |``
137155
`hiera.config`| hieradata yaml config |``

templates/postgres-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
resources:
2828
{{ toYaml .Values.puppetserver.resources | nindent 12 }}
2929
env:
30+
{{- range $key, $value := .Values.postgres.extraEnv }}
31+
- name: {{ $key }}
32+
value: {{ $value }}
33+
{{- end }}
3034
- name: POSTGRES_PASSWORD
3135
valueFrom:
3236
secretKeyRef:

templates/puppetboard-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ spec:
2929
{{ toYaml .Values.puppetserver.resources | nindent 12 }}
3030
ports:
3131
env:
32+
{{- range $key, $value := .Values.puppetboard.extraEnv }}
33+
- name: {{ $key }}
34+
value: {{ $value }}
35+
{{- end }}
3236
- name: "PUPPETDB_HOST"
3337
value: "puppetdb"
3438
- name: "PUPPETDB_PORT"

templates/puppetdb-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
resources:
2828
{{ toYaml .Values.puppetserver.resources | nindent 12 }}
2929
env:
30+
{{- range $key, $value := .Values.puppetdb.extraEnv }}
31+
- name: {{ $key }}
32+
value: {{ $value }}
33+
{{- end }}
3034
- name: PUPPETSERVER_HOSTNAME
3135
value: "puppet"
3236
- name: PUPPETDB_POSTGRES_HOSTNAME

templates/puppetserver-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ spec:
8181
resources:
8282
{{ toYaml .Values.puppetserver.resources | nindent 12 }}
8383
env:
84+
{{- range $key, $value := .Values.puppetserver.extraEnv }}
85+
- name: {{ $key }}
86+
value: {{ $value }}
87+
{{- end }}
8488
# necessary to set certname and server in puppet.conf, required by
8589
# puppetserver ca cli application
8690
- name: PUPPETSERVER_HOSTNAME

templates/r10k-cronjob.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,19 @@ spec:
2727
imagePullPolicy: "{{.Values.r10k.pullPolicy}}"
2828
resources:
2929
{{ toYaml .Values.r10k.resources | nindent 16 }}
30+
env:
31+
{{- range $key, $value := .Values.r10k.extraEnv }}
32+
- name: {{ $key }}
33+
value: {{ $value }}
34+
{{- end }}
3035
args:
31-
- deploy
32-
- environment
33-
- --config
34-
- /etc/puppetlabs/puppet/r10k.yaml
36+
- deploy
37+
- environment
38+
- --config
39+
- /etc/puppetlabs/puppet/r10k.yaml
40+
{{- range $key, $value := .Values.r10k.extraArgs }}
41+
- {{ $key }} {{ $value }}
42+
{{- end }}
3543
volumeMounts:
3644
{{- if and (.Values.r10k.viaSsh.enabled) (.Values.r10k.viaSsh.credentials.ssh.value) (.Values.r10k.viaSsh.credentials.known_hosts.value) }}
3745
- name: r10k-secret

values.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ puppetserver:
1616
# limits:
1717
# memory: 768Mi
1818
# cpu: 750m
19+
## Additional puppetserver container environment variables
20+
extraEnv: {}
1921
## Fully qualified domain names (FQDN's) to register
2022
## the Puppet Server to be internally reachable via DNS.
2123
## That is necessary to configure "certname" and "server" in `puppet.conf`.
@@ -83,6 +85,13 @@ r10k:
8385
# cpu: 500m
8486
cronJob:
8587
schedule: "*/2 * * * *"
88+
## Additional r10k container arguments
89+
extraArgs: {}
90+
# --verbose[=<value>]
91+
# --trace
92+
# --color
93+
## Additional puppetserver container environment variables
94+
extraEnv: {}
8695
## Cloning via HTTPS method and its creds (if a private repo)
8796
##
8897
viaHttps:
@@ -125,6 +134,8 @@ postgres:
125134
# limits:
126135
# memory: 768Mi
127136
# cpu: 750m
137+
## Additional puppetserver container environment variables
138+
extraEnv: {}
128139
## "credentials" section is going to be added when
129140
## this bug with the PuppetDB Docker image is resolved.
130141
## Gitissue:
@@ -134,7 +145,7 @@ postgres:
134145
puppetdb:
135146
name: puppetdb
136147
image: puppet/puppetdb
137-
tag: 6.7.2
148+
tag: 6.7.3
138149
pullPolicy: IfNotPresent
139150
resources: {}
140151
# requests:
@@ -143,6 +154,9 @@ puppetdb:
143154
# limits:
144155
# memory: 768Mi
145156
# cpu: 750m
157+
## Additional puppetserver container environment variables
158+
extraEnv: {}
159+
## Credentials for PuppetDB and PostgreSQL
146160
credentials:
147161
username: puppetdb
148162
## Override the 20-char random "password" in templates/puppetdb-secret.yaml
@@ -167,6 +181,8 @@ puppetboard:
167181
# limits:
168182
# memory: 768Mi
169183
# cpu: 500m
184+
## Additional puppetserver container environment variables
185+
extraEnv: {}
170186

171187
## Hiera Configuration for Puppet Server
172188
##

0 commit comments

Comments
 (0)