Skip to content

Commit 7be1a4d

Browse files
authored
Merge pull request #236 from oracle/rename
Renaming "baremetal" provider to "oci" and making region a required f…
2 parents 14a3cc8 + 61d61d8 commit 7be1a4d

File tree

321 files changed

+1653
-1666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+1653
-1666
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ $ terraform -v
77

88
</details>
99

10-
### Baremetal Provider Version
10+
### OCI Provider Version
1111

1212
<details>
1313
# Execute the plugin directly to get the version:
1414

15-
$ \<path-to-plugin\>/terraform-provider-baremetal
15+
$ \<path-to-plugin\>/terraform-provider-oci
1616

1717
</details>
1818

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ terraform.tfstate.backup
2929
tf.plan
3030

3131
# Don't version the default binary
32+
terraform-provider-oci
3233
terraform-provider-baremetal
3334
terraform-Oracle-BareMetal-Provider
3435
*.orig
3536
.idea
3637
terraform-Oracle-BareMetal-Provider.iml
3738
terraform-provider-baremetal.iml
39+
terraform-provider-oci.iml
3840
.env
3941
crash.log
4042
terraform-encrypted-des.sh

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to the Terraform provider for Oracle Bare Metal Cloud Services
1+
# Contributing to the Terraform provider for Oracle Cloud Infrastructure
22

33
*Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.*
44

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
33
default: build
44

55
clean:
6-
rm -rf terraform-provider-baremetal
6+
rm -rf terraform-provider-oci
77
rm -rf bin/*
88

99
fmt:
10-
goimports -w -local github.com/oracle/terraform-provider-baremetal $(GOFMT_FILES)
10+
goimports -w -local github.com/oracle/terraform-provider-oci $(GOFMT_FILES)
1111

1212
show_tests:
1313
grep -ohi "Test.*$(test).*TestSuite" *.go
@@ -32,16 +32,16 @@ test:
3232
TF_ORACLE_ENV=test TF_ACC=1 go test -v -timeout 120m
3333

3434
build:
35-
go build -o terraform-provider-baremetal
35+
go build -o terraform-provider-oci
3636

3737
version:
3838
sed -i '' -e 's/version = ".*"/version = "\
39-
$(shell curl -s https://api.github.com/repos/oracle/terraform-provider-baremetal/releases/latest | \
39+
$(shell curl -s https://api.github.com/repos/oracle/terraform-provider-oci/releases/latest | \
4040
jq -r '.tag_name')\
4141
"/g' version.go
4242

4343
release: clean version
44-
gox -output "./bin/{{.OS}}_{{.Arch}}/terraform-provider-baremetal"
44+
gox -output "./bin/{{.OS}}_{{.Arch}}/terraform-provider-oci"
4545

4646
zip:
4747
cd bin \

README.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
# | |_| | _ < / ___ | |___| |___| |___
55
# \___/|_| \_/_/ \_\____|_____|_____|
66
***
7-
# Terraform provider for Oracle Bare Metal Cloud Services
7+
# Terraform provider for Oracle Cloud Infrastructure
88

99
[![wercker status](https://app.wercker.com/status/666d2ee10f45dde41189bb03248aadf9/s/master "wercker status")](https://app.wercker.com/project/byKey/666d2ee10f45dde41189bb03248aadf9)
1010

11-
Oracle customers now have access to an enterprise class, developer friendly orchestration tool they can use to manage [Oracle Bare Metal Cloud Service](https://cloud.oracle.com/en_US/bare-metal) resources as well as the [Oracle Compute Cloud](https://github.com/oracle/terraform-provider-compute).
11+
Oracle customers now have access to an enterprise class, developer friendly orchestration tool they can use to manage [Oracle Cloud Infrastructure](https://cloud.oracle.com/en_US/bare-metal) resources as well as the [Oracle Compute Cloud](https://github.com/oracle/terraform-provider-compute).
1212

13-
This Terraform provider is OSS, available to all OBMCS customers at no charge.
13+
This Terraform provider is OSS, available to all OCI customers at no charge.
1414

1515
## Compatibility
1616
The provider is compatible with Terraform .9.\*.
1717

1818
### Coverage
19-
The Terraform provider provides coverage for the entire BMC API, with some minor exceptions.
19+
The Terraform provider provides coverage for the entire OCI API, with some minor exceptions.
2020

2121
## Getting started
22-
Be sure to read the FAQ and Writing Terraform configurations for OBMCS in [/docs](https://github.com/oracle/terraform-provider-baremetal/tree/master/docs).
22+
Be sure to read the FAQ and Writing Terraform configurations for OCI in [/docs](https://github.com/oracle/terraform-provider-oci/tree/master/docs).
2323

2424
### Download Terraform
2525
Download the appropriate **.9.x binary** for your platform.
@@ -32,8 +32,8 @@ previous v.9.x configuration no longer applies. See note below.
3232
### Install Terraform
3333
https://www.terraform.io/intro/getting-started/install.html
3434

35-
### Get the Oracle Bare Metal Cloud Terraform provider
36-
https://github.com/oracle/terraform-provider-baremetal/releases
35+
### Get the Oracle Cloud Infrastructure Terraform provider
36+
https://github.com/oracle/terraform-provider-oci/releases
3737

3838
Unpack the provider. Terraform v.10.x introduces a change to plugin
3939
management where v.9.x configuration no longer applies. To be compatible
@@ -46,10 +46,10 @@ location:
4646
```
4747

4848
Then create the `~/.terraformrc` file that specifies the path to the
49-
`baremetal` provider **(only required for v.9.x)**.
49+
`oci` provider **(only required for v.9.x)**.
5050
```
5151
providers {
52-
baremetal = "~/.terraform.d/plugins/terraform-provider-baremetal"
52+
oci = "~/.terraform.d/plugins/terraform-provider-oci"
5353
}
5454
```
5555

@@ -59,10 +59,10 @@ providers {
5959
```
6060

6161
Then create `%APPDATA%/terraform.rc` that specifies the path to the
62-
`baremetal` provider **(only required for v.9.x)**.
62+
`oci` provider **(only required for v.9.x)**.
6363
```
6464
providers {
65-
baremetal = "%appdata%/terraform.d/plugins/terraform-provider-baremetal"
65+
oci = "%appdata%/terraform.d/plugins/terraform-provider-oci"
6666
}
6767
```
6868

@@ -76,7 +76,7 @@ If your TF configurations are limited to a single compartment/user then
7676
using this `bash_profile` option will work well. For more complex
7777
environments you may want to maintain multiple sets of environment
7878
variables.
79-
See the [compute single instance example](https://github.com/oracle/terraform-provider-baremetal/tree/master/docs/examples/compute/instance) for more info.
79+
See the [compute single instance example](https://github.com/oracle/terraform-provider-oci/tree/master/docs/examples/compute/instance) for more info.
8080

8181
In your ~/.bash_profile set these variables
8282
```
@@ -101,7 +101,7 @@ setx TF_VAR_private_key_path <value>
101101
The variables won't be set for the current session, exit the terminal and reopen.
102102

103103
## Deploy an example configuration
104-
Download the [compute single instance example](https://github.com/oracle/terraform-provider-baremetal/tree/master/docs/examples/compute/instance).
104+
Download the [compute single instance example](https://github.com/oracle/terraform-provider-oci/tree/master/docs/examples/compute/instance).
105105

106106
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.
107107

@@ -113,19 +113,22 @@ $ terraform plan
113113
# Make sure the plan looks right.
114114
$ terraform apply
115115
```
116-
## OBMC resource and datasource details
117-
https://github.com/oracle/terraform-provider-baremetal/tree/master/docs
116+
## OCI resource and datasource details
117+
https://github.com/oracle/terraform-provider-oci/tree/master/docs
118118

119119
## Getting help
120120
You can file an issue against the project
121-
https://github.com/oracle/terraform-provider-baremetal/issues
121+
https://github.com/oracle/terraform-provider-oci/issues
122122

123-
or meet us in the OBMCS forums
123+
or meet us in the OCI forums
124124
https://community.oracle.com/community/cloud_computing/bare-metal
125125

126126
## Known issues
127127

128-
[Github issues](https://github.com/oracle/terraform-provider-baremetal/issues)
128+
[Github issues](https://github.com/oracle/terraform-provider-oci/issues)
129129

130130
## About the provider
131131
This provider was written on behalf of Oracle by [MustWin.](http://mustwin.com/)
132+
133+
## Documentation and examples for v1.0.18 (when the provider's name was "baremetal") can be found here:
134+
https://github.com/oracle/terraform-provider-oci/tree/v1.0.18/docs

data_source_obmcs_core_console_history_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/MustWin/baremetal-sdk-go"
1010
"github.com/hashicorp/terraform/helper/schema"
1111

12-
"github.com/oracle/terraform-provider-baremetal/crud"
12+
"github.com/oracle/terraform-provider-oci/crud"
1313
)
1414

1515
func ConsoleHistoryDataDatasource() *schema.Resource {

data_source_obmcs_core_console_history_data_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ func (s *CoreConsoleHistoryDataDatasourceTestSuite) SetupTest() {
2929
})
3030

3131
s.Providers = map[string]terraform.ResourceProvider{
32-
"baremetal": s.Provider,
32+
"oci": s.Provider,
3333
}
3434
s.Config = instanceConfig + `
35-
resource "baremetal_core_console_history" "t" {
36-
instance_id = "${baremetal_core_instance.t.id}"
35+
resource "oci_core_console_history" "t" {
36+
instance_id = "${oci_core_instance.t.id}"
3737
}
38-
data "baremetal_core_console_history_data" "s" {
39-
console_history_id = "${baremetal_core_console_history.t.id}"
38+
data "oci_core_console_history_data" "s" {
39+
console_history_id = "${oci_core_console_history.t.id}"
4040
length = 10240
4141
}
4242
`
4343
s.Config += testProviderConfig()
44-
s.ResourceName = "data.baremetal_core_console_history_data.s"
44+
s.ResourceName = "data.oci_core_console_history_data.s"
4545
}
4646

4747
func (s *CoreConsoleHistoryDataDatasourceTestSuite) TestResourceShowConsoleHistory() {

data_source_obmcs_core_cpe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/MustWin/baremetal-sdk-go"
99
"github.com/hashicorp/terraform/helper/schema"
1010

11-
"github.com/oracle/terraform-provider-baremetal/crud"
12-
"github.com/oracle/terraform-provider-baremetal/options"
11+
"github.com/oracle/terraform-provider-oci/crud"
12+
"github.com/oracle/terraform-provider-oci/options"
1313
)
1414

1515
func CpeDatasource() *schema.Resource {

data_source_obmcs_core_cpe_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ func (s *DatasourceCoreCpeTestSuite) SetupTest() {
3030
})
3131

3232
s.Providers = map[string]terraform.ResourceProvider{
33-
"baremetal": s.Provider,
33+
"oci": s.Provider,
3434
}
3535
s.Config = `
36-
resource "baremetal_core_cpe" "t" {
36+
resource "oci_core_cpe" "t" {
3737
compartment_id = "${var.compartment_id}"
3838
display_name = "name1"
3939
ip_address = "142.10.10.2"
4040
}
4141
42-
data "baremetal_core_cpes" "s" {
43-
compartment_id = "${baremetal_core_cpe.t.compartment_id}"
42+
data "oci_core_cpes" "s" {
43+
compartment_id = "${oci_core_cpe.t.compartment_id}"
4444
}
4545
`
4646
s.Config += testProviderConfig()
47-
s.ResourceName = "data.baremetal_core_cpes.s"
47+
s.ResourceName = "data.oci_core_cpes.s"
4848

4949
}
5050

data_source_obmcs_core_dhcp_options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/MustWin/baremetal-sdk-go"
99
"github.com/hashicorp/terraform/helper/schema"
1010

11-
"github.com/oracle/terraform-provider-baremetal/crud"
12-
"github.com/oracle/terraform-provider-baremetal/options"
11+
"github.com/oracle/terraform-provider-oci/crud"
12+
"github.com/oracle/terraform-provider-oci/options"
1313
)
1414

1515
func DHCPOptionsDatasource() *schema.Resource {

0 commit comments

Comments
 (0)