Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronise master with upstream #53

Open
wants to merge 4 commits into
base: stackhpc/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/source/install/playbooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ In order to really get started, you must install dependencies.
With the addition of ansible collections, the ``env-setup.sh`` will install
the collections in the default ansible ``collections_paths`` (according to your
ansible.cfg) or you can specify the location setting
``ANSIBLE_COLLECTIONS_PATHS``:
``ANSIBLE_COLLECTIONS_PATH``:

.. code-block:: bash

$ export ANSIBLE_COLLECTIONS_PATHS=/mydir/collections
$ export ANSIBLE_COLLECTIONS_PATH=/mydir/collections

.. note::

If you are using a virtual environment ANSIBLE_COLLECTIONS_PATHS is
If you are using a virtual environment ANSIBLE_COLLECTIONS_PATH is
automatically set. After Ansible Collections are installed,
a symbolic link to to the installation is created in the bifrost playbook
directory.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user/howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ the one Bifrost builds for you:
.. code-block:: bash

./bifrost-cli deploy -e @baremetal-install-env.json \
--config-drive '{"meta_data": {"public_keys": {"0": "'"$(cat ~/.ssh/id_rsa.pub)"'"}}}' \
--configdrive '{"meta_data": {"public_keys": {"0": "'"$(cat ~/.ssh/id_rsa.pub)"'"}}}' \

File images do not require a checksum:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

- name: "Set UUID from Ironic"
set_fact:
uuid: "{{ node_info.baremetal_nodes[0].uuid }}"
uuid: "{{ node_info.baremetal_nodes[0].id }}"
when:
- uuid is undefined
- name is defined
Expand Down
12 changes: 6 additions & 6 deletions scripts/env-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
ANSIBLE_PIP_VERSION=${ANSIBLE_PIP_VERSION:-${DEFAULT_PIP_ANSIBLE}}
ANSIBLE_SOURCE_PATH=${ANSIBLE_SOURCE_PATH:-ansible${ANSIBLE_PIP_VERSION}}

BIFROST_COLLECTIONS_PATHS=${ANSIBLE_COLLECTIONS_PATHS:-}
BIFROST_COLLECTIONS_PATHS=${ANSIBLE_COLLECTIONS_PATH:-}
PLAYBOOKS_LIBRARY_PATH=$(dirname $0)/../playbooks/library

echo "Installing/upgrading Ansible"
Expand All @@ -33,9 +33,9 @@ ${PIP} install "${ANSIBLE_SOURCE_PATH}"

ANSIBLE_GALAXY="${SUDO} ${VENV}/bin/ansible-galaxy"
if [[ -z $BIFROST_COLLECTIONS_PATHS ]]; then
echo "Setting ANSIBLE_COLLECTIONS_PATHS to virtualenv"
export ANSIBLE_COLLECTIONS_PATHS=${VENV}/collections
BIFROST_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATHS
echo "Setting ANSIBLE_COLLECTIONS_PATH to virtualenv"
export ANSIBLE_COLLECTIONS_PATH=${VENV}/collections
BIFROST_COLLECTIONS_PATHS=$ANSIBLE_COLLECTIONS_PATH
fi
if [[ -n "$ANSIBLE_COLLECTION_SOURCE_PATH" ]]; then
${SUDO} mkdir -p "$BIFROST_COLLECTIONS_PATHS/ansible_collections/openstack"
Expand All @@ -51,10 +51,10 @@ else
fi

# Symlink Collections to the playbook directory. This removes the need of setting
# ANSIBLE_COLLECTIONS_PATHS environment variable
# ANSIBLE_COLLECTIONS_PATH environment variable
if [ ! -e "$(dirname $0)/../playbooks/collections" ]; then
echo "Creating a symbolic link to ansible collections in bifrost playbook directory"
ln -s ${ANSIBLE_COLLECTIONS_PATHS} "$(dirname $0)/../playbooks/collections"
ln -s ${ANSIBLE_COLLECTIONS_PATH} "$(dirname $0)/../playbooks/collections"
fi

if [[ "${BIFROST_HIDE_PROMPT:-false}" != true ]]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/ansible-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rm -f "$DEST/ansible_collections/openstack/cloud"

ln -s "$(realpath $SOURCE)" "$DEST/ansible_collections/openstack/cloud"

export ANSIBLE_COLLECTIONS_PATHS="$(realpath $DEST)"
export ANSIBLE_COLLECTIONS_PATH="$(realpath $DEST)"
export ANSIBLE_LIBRARY="$(dirname $0)/../playbooks/library"
export ANSIBLE_ROLES_PATH="$(dirname $0)/../playbooks/roles"

Expand Down