Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

vmware-archive/ansible-role-govc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ansible-role-govc

Install and manage govc, a statically linked cli tool for operations on VMware vCenter server

Requirements

  • gunzip

Role Variables

To set the specific version of the binary to install

  • govc_version: "0.12.1"

Path to install the binary. Can be used to install to user local path, or system wide path.

  • govc_path: /usr/bin

Dependencies

Not a true dependency, but you'll probably want to install ansible-role-assets to pull a set of OVAs.

Example Playbook

---
- hosts: adminServers
  roles:

    # Just install govc in standard path
    - role: ansible-role-govc

    # install govc v0.12.1 in /tmp,
    # and import a photon ova into an esx or vcenter server

    - role: ansible-role-govc
      vars:
        govc_path: /tmp
        govc_version: "0.12.1"

        # esx or vcenter host and credentials
        govc_host: esx-a.home.local
        govc_username: administrator@home.local
        govc_password: password

        # alternativly, use govc_url
        # govc_url:  https://user:pass@host/sdk

        govc_ova_imports:
          - name: photon01
            ova: /tmp/photon.ova
          - name: photon02
            ova: /tmp/photon.ova
          - name: vcsa
            spec: /tmp/vcsa.json
            ova: /tmp/vcsa.ova

Testing

Update tests/group_vars to suit your test environment. Make your own set of vault.yml files, or replace them with un-encrypted versions for your own passwords.

Then run the tests:

pip install molecule docker-py
./tests/test.sh

License

Copyright © 2017 VMware, Inc. All Rights Reserved.

SPDX-License-Identifier: MIT OR GPL-3.0-only

Author Information

Tom Scanlan tscanlan@vmware.com tompscanlan@gmail.com

About

Install and manage govc, a statically linked cli tool for operations on VMware vCenter server

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published