Skip to content

Commit

Permalink
openstack UPI: Use ansible-galaxy
Browse files Browse the repository at this point in the history
Document the use of ansible-galaxy as a dependency manager for the
Ansible playbooks in UPI.

Implements OSASINFRA-2169
  • Loading branch information
pierreprinetti committed Nov 13, 2020
1 parent 9be316b commit 0388cea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions docs/user/openstack/install_upi.md
Expand Up @@ -150,7 +150,11 @@ sudo subscription-manager repos \

Then install the packages:
```sh
sudo dnf install python3-openstackclient ansible python3-openstacksdk python3-netaddr
sudo dnf install python3-openstackclient ansible

sudo ansible-galaxy collection install \
ansible.netcommon \
openstack.cloud
```

Make sure that `python` points to Python3:
Expand All @@ -163,7 +167,11 @@ sudo alternatives --set python /usr/bin/python3
This command installs all required dependencies on Fedora:

```sh
sudo dnf install python3-openstackclient ansible python3-openstacksdk python3-netaddr
sudo dnf install python3-openstackclient ansible

sudo ansible-galaxy collection install \
ansible.netcommon \
openstack.cloud
```

[ansible-upi]: ../../../upi/openstack "Ansible Playbooks for Openstack UPI"
Expand Down
4 changes: 3 additions & 1 deletion images/openstack/Dockerfile.ci
Expand Up @@ -25,9 +25,11 @@ RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux glibc-locale-sour

RUN yum update -y && \
yum install --setopt=tsflags=nodocs -y \
python3-openstackclient ansible-2.9.14-1.el8ae python3-openstacksdk python3-netaddr unzip jq && \
python3-openstackclient ansible-2.9.14-1.el8ae unzip jq && \
yum clean all && rm -rf /var/cache/yum/*

RUN ansible-galaxy collection install ansible.netcommon openstack.cloud

# The Continuous Integration machinery relies on Route53 for DNS while testing the cluster.
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
Expand Down

0 comments on commit 0388cea

Please sign in to comment.