diff options
author | 2016-07-14 22:23:31 +0000 | |
---|---|---|
committer | 2016-07-14 22:23:31 +0000 | |
commit | 4f0582ea40b6d1d2330bfd7683ab40852ed09403 (patch) | |
tree | db0af9153f3f3406489b98aeaa0238ac7475d8e4 /manifests/profile/base/mistral/engine.pp | |
parent | 88b761a2f15ad95b9fa268307bc60e807a3530e3 (diff) | |
parent | 327effce2a50e4761efbfcce80713f3b22e3e3cb (diff) |
Merge "Add Mistral profiles"
Diffstat (limited to 'manifests/profile/base/mistral/engine.pp')
-rw-r--r-- | manifests/profile/base/mistral/engine.pp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/manifests/profile/base/mistral/engine.pp b/manifests/profile/base/mistral/engine.pp new file mode 100644 index 0000000..141cbad --- /dev/null +++ b/manifests/profile/base/mistral/engine.pp @@ -0,0 +1,46 @@ +# Copyright 2016 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# == Class: tripleo::profile::base::mistral::engine +# +# Mistral Engine profile for tripleo +# +# === Parameters +# +# [*sync_db*] +# (Optional) Whether to run db sync +# Defaults to undef +# +# [*step*] +# (Optional) The current step in deployment. See tripleo-heat-templates +# for more details. +# Defaults to hiera('step') +# +class tripleo::profile::base::mistral::engine ( + $sync_db = true, + $step = hiera('step'), +) { + + include ::tripleo::profile::base::mistral + + if $step >= 3 and $sync_db { + include ::mistral::db::mysql + include ::mistral::db::sync + } + + if $step >= 4 { + include ::mistral::engine + } + +} |