aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/database
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-02-23 15:02:56 +0200
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-02-28 07:48:52 +0200
commit9a4b972737825c5402d7d2b1ca7b3b4fb7f2c6e5 (patch)
treef344918e41cb51240a6358025d4e84ae769ca338 /puppet/services/database
parentcfdd5f30029b4c155e5086f322d3b9f10d912ebb (diff)
Configure SSL connection for MySQL client via client config file
This uses the mysql client configuration file to configure if SSL should be used for the connection if SSL in the internal network is enabled. Change-Id: Ifd1a06e0749a05a65f6314255843f572d2209067
Diffstat (limited to 'puppet/services/database')
-rw-r--r--puppet/services/database/mysql-client.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppet/services/database/mysql-client.yaml b/puppet/services/database/mysql-client.yaml
index 1415391c..c8428e0a 100644
--- a/puppet/services/database/mysql-client.yaml
+++ b/puppet/services/database/mysql-client.yaml
@@ -18,6 +18,9 @@ parameters:
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
+ EnableInternalTLS:
+ type: boolean
+ default: false
outputs:
role_data:
@@ -26,5 +29,6 @@ outputs:
service_name: mysql_client
config_settings:
tripleo::profile::base:database::mysql::client_bind_address: {get_param: [ServiceNetMap, MysqlNetwork]}
+ tripleo::profile::base::database::mysql::client::enable_ssl: {get_param: EnableInternalTLS}
step_config: |
include ::tripleo::profile::base::database::mysql::client