From 44a22fc61e24c2efc221edd7085c8f4d44b39fc0 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sun, 1 Feb 2015 18:52:18 -0500 Subject: 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 Change-Id: I48488cbe950047fae5e746e458106d6edb9a6183 --- puppet/manifests/overcloud_cephstorage.pp | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 puppet/manifests/overcloud_cephstorage.pp (limited to 'puppet/manifests/overcloud_cephstorage.pp') 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 -- cgit 1.2.3-korg