-
Notifications
You must be signed in to change notification settings - Fork 37
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 #316 from fmount/swift_backend
Add Swift backends configuration
- Loading branch information
Showing
5 changed files
with
113 additions
and
0 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
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,2 @@ | ||
resources: | ||
- openstack.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,14 @@ | ||
# Define the "osp-glance-swift-secret" Secret that contains sensitive | ||
# information pertaining to the swift backend | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
service: glance | ||
name: osp-glance-swift-secret | ||
type: Opaque | ||
stringData: | ||
swift-secrets.conf: | | ||
[default_backend] | ||
swift_store_key = 12345678 | ||
swift_store_user = service:glance |
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,34 @@ | ||
# Requires a running swift service and the credentials to access it | ||
# should be in a secret called osp-glance-swift-secret (in our case | ||
# it's in glance-swift-secret.yaml). | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
glance: | ||
template: | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:swift | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
swift_store_create_container_on_put = True | ||
swift_store_auth_version = 3 | ||
swift_store_auth_address = http://keystone-public-openstack.apps-crc.testing | ||
customServiceConfigSecrets: | ||
- osp-glance-swift-secret | ||
databaseInstance: openstack | ||
glanceAPIInternal: | ||
debug: | ||
service: false | ||
preserveJobs: false | ||
replicas: 1 | ||
glanceAPIExternal: | ||
debug: | ||
service: false | ||
preserveJobs: false | ||
replicas: 1 | ||
storageClass: "" | ||
storageRequest: 1G |
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,6 @@ | ||
resources: | ||
- glance-swift-secret.yaml | ||
- ../base/openstack | ||
|
||
patches: | ||
- glance.yaml |