diff --git a/elements/tripleo-ansible/README.md b/elements/tripleo-ansible/README.md new file mode 100644 index 0000000..935745e --- /dev/null +++ b/elements/tripleo-ansible/README.md @@ -0,0 +1,6 @@ +Install tripleo-ansible repository + +Configuration +------------- + +At present, there is no configuration for this element. diff --git a/elements/tripleo-ansible/element-deps b/elements/tripleo-ansible/element-deps new file mode 100644 index 0000000..51ee83d --- /dev/null +++ b/elements/tripleo-ansible/element-deps @@ -0,0 +1,2 @@ +source-repositories +ansible diff --git a/elements/tripleo-ansible/install.d/tripleo-ansible-source-install/31-tripleo-ansible b/elements/tripleo-ansible/install.d/tripleo-ansible-source-install/31-tripleo-ansible new file mode 100755 index 0000000..57cffe7 --- /dev/null +++ b/elements/tripleo-ansible/install.d/tripleo-ansible-source-install/31-tripleo-ansible @@ -0,0 +1,28 @@ +#!/bin/bash +# +# Copyright 2014 Hewlett-Packard Development Company, L.P. +# All Rights Reserved. +# +# 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. +# + +set -eux +set -o pipefail + +VENV=/opt/stack/venvs/ansible + +set +u +source $VENV/bin/activate +set -u + +$VENV/bin/pip install -r /opt/stack/tripleo-ansible/requirements.txt diff --git a/elements/tripleo-ansible/source-repository-tripleo-ansible b/elements/tripleo-ansible/source-repository-tripleo-ansible new file mode 100644 index 0000000..c4ab90c --- /dev/null +++ b/elements/tripleo-ansible/source-repository-tripleo-ansible @@ -0,0 +1 @@ +tripleo-ansible git /opt/stack/tripleo-ansible https://github.com/SpamapS/tripleo-ansible.git