Merge "Added etcd wrapper recipe"

This commit is contained in:
Jenkins 2017-09-13 14:12:21 +00:00 committed by Gerrit Code Review
commit 56466b285a
2 changed files with 25 additions and 0 deletions

View File

@ -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'

24
recipes/etcd.rb Normal file
View File

@ -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