Giter VIP home page Giter VIP logo

ansible-vmware_image_upload's Introduction

vmware_image_upload

Ansible role which helps to upload VM image to VMware vCenter.

The configuration of the role is done in such way that it should not be necessary to change the role for any kind of configuration. All can be done either by changing role parameters or by declaring completely new configuration as a variable. That makes this role absolutely universal. See the examples below for more details.

Please report any issues or send PR.

Examples

---

- name: Example of how to upload VM image to vCenter
  hosts: vcenter-servers
  gather_facts: no
  vars:
    vmware_image_upload_username: mydomain\\myuser
    vmware_image_upload_password: MyT0pS3cr3tP4Sw0rd!
    vmware_image_upload_datacenter: MYDC1
    vmware_image_upload_cluster: mycluster
    vmware_image_upload_datastore: datastore1
    vmware_image_upload_network: mynet
    vmware_image_upload_folder: /{{ vmware_image_upload_datacenter }}/vm/Templates
    vmware_image_upload_name: Golden-VMware-CentOS-7-1567778833
    vmware_image_upload_ovf: /path/to/the/{{ vmware_image_upload_name }}.ovf
  roles:
    - role: vmware_image_upload
      tags: vmware_image_upload

Role variables

# vCenter hostname
vmware_image_upload_hostname: "{{ ansible_host }}"

# vCenter port number
vmware_image_upload_port: 443

# Whether to validate SSL certificates
vmware_image_upload_validate_certs: no

# Reguired variables which must be specified by the user
vmware_image_upload_username: null
vmware_image_upload_password: null
vmware_image_upload_name: null
vmware_image_upload_datacenter: null
vmware_image_upload_cluster: null
vmware_image_upload_datastore: null
vmware_image_upload_folder: null
vmware_image_upload_network: null
vmware_image_upload_networks: "{u'VM Network':u'{{ vmware_image_upload_network }}'}"
vmware_image_upload_ovf: null

# Set to 'absent' to delete the uploaded image
#vmware_image_upload_state: null

# Whether to remove the NIC before turning VM into template
vmware_image_upload_remove_nic: yes

License

MIT

Author

Jiri Tyr

ansible-vmware_image_upload's People

Contributors

jtyr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.