aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/sahara-engine.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-02 15:04:49 +0000
committerGerrit Code Review <review@openstack.org>2016-06-02 15:04:49 +0000
commitbcd726f1242d78169e6a5687e998473c1043c622 (patch)
tree789a1805d1d9488029c5b6596c2c570371f57a65 /puppet/services/sahara-engine.yaml
parent006daae9253b6545fab708c204c30325318554f2 (diff)
parentd9409b48ad6c9052defa05c79f0d28535d6ba933 (diff)
Merge "Composable Sahara services"
Diffstat (limited to 'puppet/services/sahara-engine.yaml')
-rw-r--r--puppet/services/sahara-engine.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/puppet/services/sahara-engine.yaml b/puppet/services/sahara-engine.yaml
new file mode 100644
index 00000000..17ef49fa
--- /dev/null
+++ b/puppet/services/sahara-engine.yaml
@@ -0,0 +1,41 @@
+heat_template_version: 2016-04-08
+
+description: >
+ OpenStack Sahara Engine service configured with Puppet
+
+parameters:
+ EndpointMap:
+ default: {}
+ description: Mapping of service endpoint -> protocol. Typically set
+ via parameter_defaults in the resource registry.
+ type: json
+ SaharaPassword:
+ default: unset
+ description: The password for the sahara service account, used by sahara-api.
+ type: string
+ hidden: true
+
+resources:
+ SaharaBase:
+ type: ./sahara-base.yaml
+
+outputs:
+ role_data:
+ description: Role data for the Sahara Engine role.
+ value:
+ config_settings:
+ map_merge:
+ - get_attr: [SaharaBase, role_data, config_settings]
+ - sahara_dsn: &sahara_dsn
+ list_join:
+ - ''
+ - - {get_param: [EndpointMap, MysqlVirtual, protocol]}
+ - '://sahara:'
+ - {get_param: SaharaPassword}
+ - '@'
+ - {get_param: [EndpointMap, MysqlVirtual, host]}
+ - '/sahara'
+ sahara::database_connection: *sahara_dsn
+ sahara::db::mysql::password: {get_param: SaharaPassword}
+ step_config: |
+ include ::tripleo::profile::base::sahara::engine