Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

vmware-archive/nsx-t-version-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nsx-t-version-resource

A Concourse resource to extract the version number of a VMware NSX-T manager. Useful when recording the version number in Concourse for consumption by a compatibility matrix (e.g. http://pas-nsx-t.cfapps.io/)

Configuration

  • url - the NSX-T manager URL, e.g. https://nsx.example.com
  • password - the password to authenticate requests made to the NSX-T Manager, e.g. my-super-secret-password
  • user - the user used to authenticate requests made to the NSX-T Manager (default: admin)
  • verify_ssl - validate the certificate on the NSX-T Manager (default: true).
  • cert - the certificate of the NSX-T Manager, or the CA certificate used to sign the NSX-T Manager's certificate. (e.g. -----BEGIN CERTIFICATE -----). Not necessary for commercial CA-issued certificates. Specifying the cert overrides the verify_ssl parameter, forcing SSL verification.

Behavior

check

Retrieves the version number of the NSX-T manager (e.g. 2.3.0.0.0.10085361).

in

Blindly echoes the version number passed in by the check step, above.

out

No-op (not typically used).

Example

---
jobs:
  - name: unit-tests
    plan:
      - get: repo
        trigger: true
      - get: nsx-t-version
resource_types:
  - name: nsx-t-version
    type: docker-image
    source:
      repository: pasnsxt/nsx-t-version
      tag: latest
resources:
  - name: nsx-t-version
    type: nsx-t-version
    source:
      url: https://nsx.example.com
      password: ((nsx_t_password))
      cert: |
        -----BEGIN CERTIFICATE-----
        MIIDujCCAqKgAwIBAgIGAWah9LQuMA0GCSqGSIb3DQEBCwUAMIGdMSowKAYDVQQD
        ...

Local Testing

To test the functionality of the check or in, simply pass-in the asset file in your shell.

For example:

bin/check < assets/check.json

will produce output similar to the following:

[{"version":"2.3.0.0.0.10085361"}]

Or:

bin/in < assets/check.json

will produce output similar to the following:

{
  "version": {
    "version": "2.2.0.0.0.8680778"
  },
  "metadata": []
}

References

License

Apache License

About

A Concourse resource to extract the version number of a VMware NSX-T manager

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published