terraform-provider-oneview

command module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

terraform-provider-oneview

Build Status

A Terraform provider for oneview

Installing terraform-provider-oneview with Go

  • Install Go 1.11. For previous versions, you may have to set your $GOPATH manually, if you haven't done it yet.
  • Install Terraform 0.11.x from here and save it into /usr/local/bin/terraform folder (create it if it doesn't exists). This provider DOES NOT SUPPORT Terraform 0.12 or above.
  • Download the code by issuing a go get command.
# Download the source code for terraform-provider-oneview
# and build the needed binary, by saving it inside $GOPATH/bin
$ go get -u github.com/HewlettPackard/terraform-provider-oneview

# Copy the binary to have it along the terraform binary
$ mv $GOPATH/bin/terraform-provider-oneview /usr/local/bin/terraform

Using terraform-provider-oneview with Docker

We also provide a lightweight and easy way to test and execute terraform-provider-oneview. The hewlettpackardenterprise/hpe-oneview-sdk-for-terraform:<tag> docker image contains an installation of Terraform and our provider you can use by just pulling down the Docker Image: Docker Store image tag consist of two sections: <sdk_version-OV_version>

# Download and store a local copy of terraform-provider-oneview and
# use it as a Docker image.
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-terraform:v1.4.0-OV5.3

# Run docker commands using the "ash" shell from Alpine, this will in turn create
# a sh session where you can create files, issue commands and execute both
# terraform and the provider with ease.
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-terraform:v1.4.0-OV5.3 /bin/sh
Provider Information

For authentication, you need to provide the provider information in examples:

provider "oneview" {
	ov_username = "<ov_username>"
	ov_password = "<ov_password>"
	ov_endpoint = "<ov_endpoint>"
	ov_sslverify = true/false
	ov_apiversion = <ov_apiversion>
	ov_domain = "<ov_domain>"
	ov_ifmatch = "*"
}

Note: Currently this SDK supports OneView API 1800 minimally where we can test OneView API 1800 version with this SDK. No new fields have been added/deleted to support API 1800 version. Complete support will be done in next releases.

License

This project is licensed under the Apache 2.0 license.

Version and changes

To view history and notes for this version, view the Changelog.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
(C) Copyright 2018 Hewlett Packard Enterprise Development LP Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License.
(C) Copyright 2018 Hewlett Packard Enterprise Development LP Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL