diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-01-16 14:27:20 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-01-17 16:39:00 -0500 |
commit | f11aa2af5cc51c109908e91517db54543b16bea9 (patch) | |
tree | f646e18b0d0d5fa677499115e7e5dd4169bb5f54 /roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json | |
parent | 1889a235b93724f1868200ff7caef15fcca0e3ae (diff) | |
download | openshift-f11aa2af5cc51c109908e91517db54543b16bea9.tar.gz openshift-f11aa2af5cc51c109908e91517db54543b16bea9.tar.bz2 openshift-f11aa2af5cc51c109908e91517db54543b16bea9.tar.xz openshift-f11aa2af5cc51c109908e91517db54543b16bea9.zip |
v1.3 Add RHAMP
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json')
-rw-r--r-- | roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json b/roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json index bc85277a9..e933eecf0 100644 --- a/roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json +++ b/roles/openshift_examples/files/examples/v1.3/db-templates/mariadb-persistent-template.json @@ -16,6 +16,18 @@ }, "objects": [ { + "kind": "Secret", + "apiVersion": "v1", + "metadata": { + "name": "${DATABASE_SERVICE_NAME}" + }, + "stringData" : { + "database-user" : "${MYSQL_USER}", + "database-password" : "${MYSQL_PASSWORD}", + "database-root-password" : "${MYSQL_ROOT_PASSWORD}" + } + }, + { "kind": "Service", "apiVersion": "v1", "metadata": { @@ -117,11 +129,30 @@ "env": [ { "name": "MYSQL_USER", - "value": "${MYSQL_USER}" + "valueFrom": { + "secretKeyRef" : { + "name" : "${DATABASE_SERVICE_NAME}", + "key" : "database-user" + } + } }, { "name": "MYSQL_PASSWORD", - "value": "${MYSQL_PASSWORD}" + "valueFrom": { + "secretKeyRef" : { + "name" : "${DATABASE_SERVICE_NAME}", + "key" : "database-password" + } + } + }, + { + "name": "MYSQL_ROOT_PASSWORD", + "valueFrom": { + "secretKeyRef" : { + "name" : "${DATABASE_SERVICE_NAME}", + "key" : "database-root-password" + } + } }, { "name": "MYSQL_DATABASE", @@ -193,6 +224,14 @@ "required": true }, { + "name": "MYSQL_ROOT_PASSWORD", + "displayName": "MariaDB root Password", + "description": "Password for the MariaDB root user.", + "generate": "expression", + "from": "[a-zA-Z0-9]{16}", + "required": true + }, + { "name": "MYSQL_DATABASE", "displayName": "MariaDB Database Name", "description": "Name of the MariaDB database accessed.", |