Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update to install process #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions components/01-secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Let's generate the MariaDB root creds.
```bash
kubectl --namespace openstack \
create secret generic mariadb \
--dry-run \
-o yaml \
--type Opaque \
--from-literal=root-password="$(./scripts/pwgen.sh)" \
Expand All @@ -45,7 +44,6 @@ Now generate the Nautobot env secrets and the Redis (TODO: operator)
```bash
kubectl --namespace nautobot \
create secret generic nautobot-env \
--dry-run \
-o yaml \
--type Opaque \
--from-literal=NAUTOBOT_SECRET_KEY="$(./scripts/pwgen.sh)" \
Expand All @@ -55,7 +53,6 @@ kubectl --namespace nautobot \

kubectl --namespace nautobot \
create secret generic nautobot-redis \
--dry-run \
-o yaml \
--type Opaque \
--from-literal=redis-password="$(./scripts/pwgen.sh)" \
Expand Down Expand Up @@ -90,22 +87,22 @@ kubectl --namespace openstack \
--type Opaque \
--from-literal=username="keystone" \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml > secret-keystone-rabbitmq-password.yaml
-o yaml > secret-keystone-rabbitmq-password.yaml
kubectl --namespace openstack \
create secret generic keystone-db-password \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml > secret-keystone-db-password.yaml
-o yaml > secret-keystone-db-password.yaml
kubectl --namespace openstack \
create secret generic keystone-admin \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml > secret-keystone-admin.yaml
-o yaml > secret-keystone-admin.yaml
kubectl --namespace openstack \
create secret generic keystone-credential-keys \
--type Opaque \
--from-literal=password="$($(git rev-parse --show-toplevel)/scripts/pwgen.sh)" \
--dry-run -o yaml > secret-keystone-credential-keys.yaml
-o yaml > secret-keystone-credential-keys.yaml
```

Now let's seal them.
Expand Down
2 changes: 1 addition & 1 deletion components/10-keystone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Secrets Reference:
```bash
helm --namespace openstack template \
keystone \
./openstack-helm/keystone/ \
$(git rev-parse --show-toplevel)/openstack-helm/keystone/ \
-f aio-values.yaml \
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
Expand Down
Loading