Giter Site home page Giter Site logo

buty4649 / terraform-provider-redfish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dell/terraform-provider-redfish

0.0 1.0 0.0 4.19 MB

Terraform provider for Redfish REST APIs

License: Mozilla Public License 2.0

Shell 0.63% Go 97.89% Makefile 1.48%

terraform-provider-redfish's Introduction

Terraform provider for Redfish

The Terraform provider for Redfish is a plugin for Terraform that allows for full lifecycle management of x86 servers using Redfish REST APIs. For more details on Redfish, please refer to DMTF Redfish specification here.

For general information about Terraform, visit the official website and the GitHub project page.

Requirements

  • Terraform 1.x.x
  • Go 1.13.x (to build the provider plugin)

Installation

Note: This project uses Go modules making it safe to work with it outside of your existing GOPATH. The instructions that follow assume a directory in your home directory outside of the standard GOPATH (i.e $HOME/development/terraform-providers/).

Linux

Clone repository to: $HOME/development/terraform-providers/

$ mkdir -p $HOME/development/terraform-providers/; cd $HOME/development/terraform-providers/
$ git clone https://github.com/dell/terraform-provider-redfish.git
...

Enter the provider directory and run make install. This will build the provider and put the provider in your user plugin directory (by default, it is /.terraform.d/plugins/registry.terraform.io/dell/redfish//${VERSION}/linux_amd64.).

$ make install

if you want to copy the provider binary to a custom terraform plugin directory, then you can enter the provider directory and run make build. This will build the provider. You can then move the binary to your custom plugin directory.

$ make build
...
$ mv terraform-provider-redfish <YOUR-CUSTOM-PLUGIN-DIRECTORY>
...

Windows

Download the Terraform binary from Terraform's website. For Windows it is a standalone binary. If you already have an existing Terraform configuration, you can put it in the same directory is that configuration. If you just want to run one of our examples, place it in the appropriate examples folder. For example:

Terraform Placement

Navigate to your top level directory (terraform-provider-redfish) and run:

For more information on Terraform's new directory structure for local providers see these patch notes.

mkdir %appdata%\terraform.d\plugins\registry.terraform.io\dell.com\dell\redfish\0.2.0\windows_amd64
go mod vendor
go build -o terraform-provider-redfish.exe
move .\terraform-provider-redfish.exe %appdata%\terraform.d\plugins\registry.terraform.io\dell.com\dell\redfish\0.2.0\windows_amd64

Now change directories to the folder where you placed terraform.exe and run terraform init.

You should see an output like this:

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

If you see something like (your version numbers will probably be different):

Initializing modules...

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp.com/edu/hashicups versions matching "0.2.0"...

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp.com/edu/hashicups: no available releases match the given constraints
0.2.0

this means that your directory structure has issues. Go back and make sure your local directory structure matches exactly. For troubleshooting it might be helpful to add the -plugins-dir option to your terraform init command.

Documentation

The documentation for the provider can found here

Roadmap

Our roadmap for Terraform provider for Redfish resources can be found here

Support

The code is provided AS-IS and not supported by Dell EMC.

Contributing

The Terrafrom Redfish provider is open-source and community supported. We appreciate your help! To contribute, please read the contribution guidelines. You may also report an issue. Once you've filed an issue, it will follow the issue lifecycle.

terraform-provider-redfish's People

Contributors

anupamaloke avatar grantcurell avatar brutus333 avatar

Watchers

 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.