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:
parent
83e362933c
commit
87102e75a6
6
elements/tripleo-ansible/README.md
Normal file
6
elements/tripleo-ansible/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
Install tripleo-ansible repository
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
At present, there is no configuration for this element.
|
2
elements/tripleo-ansible/element-deps
Normal file
2
elements/tripleo-ansible/element-deps
Normal file
@ -0,0 +1,2 @@
|
||||
source-repositories
|
||||
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
|
@ -0,0 +1 @@
|
||||
tripleo-ansible git /opt/stack/tripleo-ansible https://github.com/SpamapS/tripleo-ansible.git
|
Loading…
x
Reference in New Issue
Block a user