From 65bdf0e1525802f4503c0bffc4e815d0371e7c62 Mon Sep 17 00:00:00 2001 From: Samuel Cassiba Date: Sun, 20 Aug 2017 15:48:43 -0400 Subject: [PATCH] Added etcd wrapper recipe - This recipe implements a basic etcd installation for shared oslo configs. A wrapper recipe is needed for instantiation, as etcd is a pure library cookbook. Change-Id: Id2f934a9fc408276cb0a25afc2f65ec5f5c54c15 --- metadata.rb | 1 + recipes/etcd.rb | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 recipes/etcd.rb diff --git a/metadata.rb b/metadata.rb index 646fbb0c..4e5ccdc9 100644 --- a/metadata.rb +++ b/metadata.rb @@ -16,6 +16,7 @@ end depends 'apt', '~> 5.0' depends 'database', '~> 6.1' +depends 'etcd', '~> 3.0' depends 'mariadb', '~> 1.5' depends 'mysql', '~> 8.2' depends 'yum', '~> 3.13' diff --git a/recipes/etcd.rb b/recipes/etcd.rb new file mode 100644 index 00000000..e12cce5d --- /dev/null +++ b/recipes/etcd.rb @@ -0,0 +1,24 @@ +# encoding: UTF-8 +# +# Cookbook Name:: openstack-common +# library:: etcd +# +# Copyright 2017, Workday 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. +# + +# create a new etcd installation named 'openstack' +etcd_service 'openstack' do + action [:create, :start] +end