Skip to content

classicvalues/oneview-ansible-debian

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

oneview-ansible-debian

Docker image for HPE 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:

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:

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 sample has a how to guide and an Ansible playbook you can use to try out the oneview-ansible-debian container.

About

Docker image for HPE oneview-ansible modules on Debian

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%