9ec76f9e90
Adds support for installing Ansible roles from Galaxy based on a requirements.yml file in the kayobe configuration repository. Roles are installed during 'kayobe control host bootstrap' and upgraded during 'kayobe control host upgrade'. Custom roles are defined in a requirements file at '$KAYOBE_CONFIG_PATH/ansible/requirements.yml'. The roles will be installed to '$KAYOBE_CONFIG_PATH/ansible/roles/'. This forms the basis for supporting customisable extensions to the standard workflows. Change-Id: I4cd732623fc26986d5814be487c7930501ac7b7c Story: 2001663 Task: 12599
22 lines
724 B
Python
22 lines
724 B
Python
# Copyright (c) 2018 StackHPC Ltd.
|
|
#
|
|
# 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 KayobeException(Exception):
|
|
"""Base class for kayobe exceptions."""
|
|
|
|
|
|
class Error(KayobeException):
|
|
"""Generic user error."""
|