-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'puppetserver linuxaid support' (#333) from linuxa…
…id_setup into master Reviewed-on: https://gitea.obmondo.com/EnableIT/KubeAid/pulls/333
- Loading branch information
Showing
5 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Puppet Server with Linuxaid | ||
|
||
## Eyaml secret | ||
|
||
* Secret name needs to be **eyaml-volume** | ||
|
||
## Secret setup to access puppet and hieradata git repo | ||
|
||
* Create hiera and puppet git repo secret | ||
* Create a Bot user on github/gitea | ||
* Create a PAT and give only **read** permission for the below two repo (on gitea there is no option to be repo specific) | ||
* Create a file based on the example [file](./examples/netrc) | ||
|
||
```sh | ||
kubectl create secret generic hiera-git-secret --dry-run=client --from-file=netrc=./netrc.enableit -o yaml | kubeseal --controller-namespace system --controller-name sealed-secrets --format yaml | ||
``` | ||
|
||
* Create puppet repo secret | ||
|
||
```sh | ||
kubectl create secret generic puppet-git-secret --dry-run=client --from-file=netrc=./netrc.enableit -o yaml | kubeseal --controller-namespace system --controller-name sealed-secrets --format yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
machine github.com | ||
login <paste-your-token> | ||
password x-outh-basic |
18 changes: 18 additions & 0 deletions
18
argocd-helm-charts/puppetserver/templates/ingressroutetcp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: traefik.io/v1alpha1 | ||
kind: IngressRouteTCP | ||
metadata: | ||
name: puppetserver-{{ .Values.customerid }} | ||
spec: | ||
entryPoints: | ||
- websecure | ||
routes: | ||
- match: HostSNI(`{{ .Values.customerid }}.puppet.obmondo.com`) | ||
priority: 10 | ||
services: | ||
- name: puppetserver-{{ .Values.customerid }}-puppet | ||
port: puppetserver | ||
nativeLB: true | ||
tls: | ||
passthrough: true | ||
domains: | ||
- main: {{ .Values.customerid }}.puppet.obmondo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters