Giter Site home page Giter Site logo

mustwin / terraform-provider-baremetal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oracle/terraform-provider-oci

0.0 8.0 0.0 27.47 MB

Terraform provider for Oracle Bare Metal Cloud Services

License: Mozilla Public License 2.0

Makefile 0.26% Go 99.13% Shell 0.53% HCL 0.08%

terraform-provider-baremetal's Introduction

#     ___  ____     _    ____ _     _____
#    / _ \|  _ \   / \  / ___| |   | ____|
#   | | | | |_) | / _ \| |   | |   |  _|
#   | |_| |  _ < / ___ | |___| |___| |___
#    \___/|_| \_/_/   \_\____|_____|_____|

Terraform provider for Oracle Bare Metal Cloud Services

Oracle customers now have access to an enterprise class, developer friendly orchestration tool they can use to manage Oracle Bare Metal Cloud Service resources as well as the Oracle Compute Cloud.

This Terraform provider is OSS, available to all OBMCS customers at no charge.

Compatibility

The provider is compatible with Terraform .9.*.

Coverage

The Terraform provider provides coverage for the entire BMC API, with some minor exceptions.

Getting started

Be sure to read the FAQ and Writing Terraform configurations for OBMCS in /docs.

Download Terraform

Download the appropriate .9.x binary for your platform.
https://www.terraform.io/downloads.html

Install Terraform

https://www.terraform.io/intro/getting-started/install.html

Get the Oracle Bare Metal Cloud Terraform provider

https://github.com/oracle/terraform-provider-baremetal/releases

Unpack the provider to an appropriate location then -

On *nix

Create ~/.terraformrc that specifies the path to the baremetal provider.

providers {
  baremetal = "<path_to_provider_binary>/terraform-provider-baremetal"
  }

On Windows

Create %APPDATA%/terraform.rc that specifies the path to the baremetal provider.

providers {
  baremetal = "<path_to_provider_binary>/terraform-provider-baremetal"
  }

Export credentials

Required Keys and OCIDs - https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm

If you primarily work in a single compartment consider exporting that compartment's OCID as well. Remember that the tenancy OCID is also the OCID of the root compartment.

*nix

If your TF configurations are limited to a single compartment/user then using this bash_profile option will work well. For more complex environments you may want to maintain multiple sets of environment variables. See the single-compute example for an example.

In your ~/.bash_profile set these variables

export TF_VAR_tenancy_ocid=
export TF_VAR_user_ocid=
export TF_VAR_fingerprint=
export TF_VAR_private_key_path=<fully qualified path>`

Once you've set these values open a new terminal or source your profile changes

$ source ~/.bash_profile

Windows

setx TF_VAR_tenancy_ocid <value>
setx TF_VAR_user_ocid <value>
setx TF_VAR_fingerprint <value>
setx TF_VAR_private_key_path <value>

The variables won't be set for the current session, exit the terminal and reopen.

Deploy an example configuration

Download the Single instance example.

Edit it to include the OCID of the compartment you want to create the VCN. Remember that the tenancy OCID is the compartment OCID of your root compartment.

You should always plan, then apply a configuration -

$ terraform plan ./single_instance
# Make sure the plan looks right.
$ terraform apply ./single_instance

OBMC resource and datasource details

https://github.com/oracle/terraform-provider-baremetal/tree/master/docs

Getting help

You can file an issue against the project https://github.com/oracle/terraform-provider-baremetal/issues

or meet us in the OBMCS forums https://community.oracle.com/community/cloud_computing/bare-metal

Known issues

Github issues

About the provider

This provider was written on behalf of Oracle by MustWin.

terraform-provider-baremetal's People

Contributors

gotascii avatar mikejihbe avatar elg0nz avatar murphybytes avatar craigcarl-oracle avatar josephholsten avatar codycushing avatar db-magnus avatar ramnathnayakpr avatar devcamcar avatar eginez avatar guangleibao avatar shomron avatar rcohenma avatar

Watchers

 avatar  avatar Joe Levy avatar Wil Everts avatar Dosty Everts avatar  avatar Tenji Tembo 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.