From beb8681f7f976f50c812c3ee5342c6dc1a3b36b3 Mon Sep 17 00:00:00 2001 From: Sebastien Badia Date: Wed, 8 Jan 2014 04:00:32 +0100 Subject: [PATCH] Storage (ceph) add compute part (collected) --- manifests/storage/compute.pp | 28 +++++++++++++++++++ templates/storage/ceph/secret-compute.xml.erb | 6 ++++ 2 files changed, 34 insertions(+) create mode 100644 manifests/storage/compute.pp create mode 100644 templates/storage/ceph/secret-compute.xml.erb diff --git a/manifests/storage/compute.pp b/manifests/storage/compute.pp new file mode 100644 index 00000000..8b33bacf --- /dev/null +++ b/manifests/storage/compute.pp @@ -0,0 +1,28 @@ +# +# Copyright (C) 2013 eNovance SAS +# +# 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 privatecloud::storage::compute( + $has_ceph = false, +){ + + if $has_ceph { + + File <<| tag == 'ceph_compute_secret_file' |>> + Exec <<| tag == 'get-or-set virsh secret' |>> + Exec <<| tag == 'set-secret-value virsh' |>> + + } + +} diff --git a/templates/storage/ceph/secret-compute.xml.erb b/templates/storage/ceph/secret-compute.xml.erb new file mode 100644 index 00000000..4ec9cf8f --- /dev/null +++ b/templates/storage/ceph/secret-compute.xml.erb @@ -0,0 +1,6 @@ + + + <%= @glance_user %> secret + + <%= @ceph_fsid %> +