diff options
author | 2015-02-01 18:52:18 -0500 | |
---|---|---|
committer | 2015-03-05 20:45:10 +0000 | |
commit | 44a22fc61e24c2efc221edd7085c8f4d44b39fc0 (patch) | |
tree | 9b5bfeeeea262d65563459cf433e566b13f8c905 /puppet/manifests/overcloud_cephstorage.pp | |
parent | 758c6f1597796d9ad0d2cf5758f2d1a30e912475 (diff) |
Puppet: First support Ceph
This is a first implementation of Ceph support in TripleO with Puppet:
* Install ceph-mon on controller node
* Install ceph-osd on cephstorage node
Co-Authored-By: Giulio Fidente <gfidente@redhat.com>
Change-Id: I48488cbe950047fae5e746e458106d6edb9a6183
Diffstat (limited to 'puppet/manifests/overcloud_cephstorage.pp')
-rw-r--r-- | puppet/manifests/overcloud_cephstorage.pp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/puppet/manifests/overcloud_cephstorage.pp b/puppet/manifests/overcloud_cephstorage.pp new file mode 100644 index 00000000..c0f19e23 --- /dev/null +++ b/puppet/manifests/overcloud_cephstorage.pp @@ -0,0 +1,35 @@ +# Copyright 2015 Red Hat, Inc. +# All Rights Reserved. +# +# 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. + +if !str2bool(hiera('enable_package_install', 'false')) { + case $::osfamily { + 'RedHat': { + Package { provider => 'norpm' } # provided by tripleo-puppet + } + default: { + warning('enable_package_install option not supported.') + } + } +} + +if count(hiera('ntp::servers')) > 0 { + include ::ntp +} + +class { 'ceph::profile::params': + mon_initial_members => downcase(hiera('ceph_mon_initial_members')) +} +include ::ceph::profile::client +include ::ceph::profile::osd
\ No newline at end of file |