Add tripleo-ansible to /opt/stack

This commit adds a diskimage-builder element that downloads the
tripleo-ansible repository to /opt/stack so it can be included in
deployed images.

Change-Id: I989ab54ee0d0a2afa581558eb969e6c48df95990
This commit is contained in:
Julia Kreger 2014-08-14 18:44:34 -04:00 committed by Clint Byrum
parent 83e362933c
commit 87102e75a6
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Install tripleo-ansible repository
Configuration
-------------
At present, there is no configuration for this element.

View File

@ -0,0 +1,2 @@
source-repositories
ansible

View File

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

View File

@ -0,0 +1 @@
tripleo-ansible git /opt/stack/tripleo-ansible https://github.com/SpamapS/tripleo-ansible.git