Skip to content

Commit

Permalink
doc: updated readme and an example netrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish1099 committed Aug 9, 2024
1 parent f8f2350 commit 0edee69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions argocd-helm-charts/puppetserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@

## Secret setup to access puppet and hieradata git repo

* Create hiera repo secret
* 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-repo-secret --dry-run=client --from-literal=known_hosts='|1|NHSERmAKuZlYI4g= ssh-ed25519 AAAAC3NzaC1lZDkHxUc' --from-file=id_rsa=/path/to/ssh_priv.key -o yaml | kubeseal --controller-namespace system --controller-name sealed-secrets --format yaml
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 hiera-repo-secret --dry-run=client --from-literal=known_hosts='|1|NHSERmAKuZlYI4g= ssh-ed25519 AAAAC3NzaC1lZDkHxUc' --from-file=id_rsa=/path/to/ssh_priv.key -o yaml | kubeseal --controller-namespace system --controller-name sealed-secrets --format yaml
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
```
3 changes: 3 additions & 0 deletions argocd-helm-charts/puppetserver/examples/netrc
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

0 comments on commit 0edee69

Please sign in to comment.