From f4dc20b22f9c44cd8ffa47cefc648bd4202c2ac1 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Fri, 22 Feb 2019 12:45:52 +0400 Subject: Install missing gnocchi dependencies Change-Id: Ifc4fff90551344c69295990b220f0778967887a4 Signed-off-by: Michael Polenchuk --- mcp/config/states/gnocchi_deps | 11 +++++++++++ mcp/config/states/openstack_ha | 1 + mcp/config/states/openstack_noha | 1 + 3 files changed, 13 insertions(+) create mode 100755 mcp/config/states/gnocchi_deps diff --git a/mcp/config/states/gnocchi_deps b/mcp/config/states/gnocchi_deps new file mode 100755 index 000000000..50e4a61dc --- /dev/null +++ b/mcp/config/states/gnocchi_deps @@ -0,0 +1,11 @@ +#!/bin/bash -e +############################################################################## +# Copyright (c) 2019 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +salt -I 'gnocchi:server' pkg.install pkgs='["python-pip", "gnocchi-api"]' +salt -I 'gnocchi:server' pip.install protobuf,trollius user=gnocchi diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha index 51db5094b..85e32158d 100755 --- a/mcp/config/states/openstack_ha +++ b/mcp/config/states/openstack_ha @@ -61,6 +61,7 @@ salt -I 'barbican:server:role:primary' state.sls barbican salt -I 'barbican:server:role:secondary' state.sls barbican -b 1 salt -I 'barbican:client' state.sls barbican +$(dirname "${BASH_SOURCE[0]}")/gnocchi_deps salt -I 'redis:cluster:role:master' state.sls redis salt -I 'redis:server' state.sls redis salt -I 'gnocchi:server' state.sls gnocchi -b 1 diff --git a/mcp/config/states/openstack_noha b/mcp/config/states/openstack_noha index f79d9f657..7db100f6a 100755 --- a/mcp/config/states/openstack_noha +++ b/mcp/config/states/openstack_noha @@ -46,6 +46,7 @@ salt -I 'nova:compute' state.sls nova,armband salt -I 'barbican:server' state.sls barbican salt -I 'barbican:client' state.sls barbican +$(dirname "${BASH_SOURCE[0]}")/gnocchi_deps salt -I 'redis:server' state.sls redis salt -I 'gnocchi:server' state.sls gnocchi salt -I 'panko:server' state.sls panko -- cgit 1.2.3-korg