Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.