Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hewlettpackard/oneview-ansible-debian
Docker image for HPE oneview-ansible modules on Debian
https://github.com/hewlettpackard/oneview-ansible-debian
ansible devops hpe-oneview
Last synced: 7 days ago
JSON representation
Docker image for HPE oneview-ansible modules on Debian
- Host: GitHub
- URL: https://github.com/hewlettpackard/oneview-ansible-debian
- Owner: HewlettPackard
- License: apache-2.0
- Created: 2018-07-24T22:20:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T14:13:14.000Z (almost 4 years ago)
- Last Synced: 2024-08-06T05:58:03.299Z (3 months ago)
- Topics: ansible, devops, hpe-oneview
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 12
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oneview-ansible-debian
Docker image for HPE [oneview-ansible](https://github.com/hewlettpackard/oneview-ansible) modules on Debian
## Usage
`oneview-ansible-debian` contains no playbooks or configuration. Everything must be passed in.
### Ansible inventory and playbooks
Set up a volume or use a bind mount containing the inventory and playbooks. This can be mounted into the container with `-v` or `--mount`
The modules will run on localhost and must use the python in `/usr/local/bin/python`. Add the following line to the inventory file:
```console
localhost ansible_python_interpreter=python2.7 ansible_connection=local
```### Putting it all together
Assume a named volume `playbooks` with the Ansible inventory and a `site.yml` playbook. This can be run with the following command:
```console
docker run --rm \
-v playbooks:/playbooks \
hewlettpackardenterprise/oneview-ansible-debian \
ansible-playbook -i /playbooks/hosts /playbooks/site.yml
```### Try it out
The [HPE oneview-ansible in a container](https://github.com/HewlettPackard/oneview-ansible-samples/tree/master/oneview-ansible-in-container
) sample has a [how to guide](https://github.com/HewlettPackard/oneview-ansible-samples/blob/master/oneview-ansible-in-container/oneview-ansible-in-container.md) and an Ansible playbook you can use to try out the `oneview-ansible-debian` container.