Skip to content

Commit 3daf920

Browse files
authored
changed base module source from github to hashicorp registry, added descriptions and README.md for publishing to hashicorp registry (#129)
Signed-off-by: Ali Mukadam <[email protected]>
1 parent 779be46 commit 3daf920

File tree

7 files changed

+143
-81
lines changed

7 files changed

+143
-81
lines changed

CHANGELOG.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10+
== 2.1.2 (February 19, 2020)
11+
* base module now points to the published base module on hashicorp registry
12+
* updated descriptions in variables, outputs and formatting to publish to hashicorp registry
13+
* added readme in markdown to publish to hashicorp registry
14+
* removed unused kms variables and module
15+
* updated documentation to indicated required values
16+
1017
== 2.1.1 (February 06, 2020)
1118
* Install latest version of kubectl into admin host (#119)
1219
* Added OCIR support for new regions (#122)

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Terraform for Oracle Container Engine
2+
3+
[uri-repo]: https://github.com/oracle-terraform-modules/terraform-oci-oke
4+
5+
[uri-docs]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs
6+
7+
[uri-changelog]: https://github.com/oracle-terraform-modules/terraform-oci-oke/CHANGELOG.adoc
8+
[uri-configuration]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/configuration.adoc
9+
10+
[uri-contribute]: https://github.com/oracle-terraform-modules/terraform-oci-oke/CONTRIBUTING.adoc
11+
[uri-contributors]: https://github.com/oracle-terraform-modules/terraform-oci-oke/CONTRIBUTORS.adoc
12+
13+
[uri-instructions]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/instructions.adoc
14+
[uri-license]: https://github.com/oracle-terraform-modules/terraform-oci-oke/LICENSE
15+
[uri-canonical-license]: https://oss.oracle.com/licenses/upl/
16+
[uri-kubernetes]: https://kubernetes.io/
17+
[uri-networks-subnets-cidr]: https://erikberg.com/notes/networks.html
18+
[uri-oci]: https://cloud.oracle.com/cloud-infrastructure
19+
[uri-oci-documentation]: https://docs.cloud.oracle.com/iaas/Content/home.htm
20+
[uri-oke]: https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm
21+
[uri-oracle]: https://www.oracle.com
22+
[uri-prereqs]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/prerequisites.adoc
23+
[uri-quickstart]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/quickstart.adoc
24+
25+
[uri-terraform]: https://www.terraform.io
26+
[uri-terraform-dependencies]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/dependencies.adoc
27+
[uri-terraform-cidrsubnet-deconstructed]: http://blog.itsjustcode.net/blog/2017/11/18/terraform-cidrsubnet-deconstructed/
28+
[uri-terraform-oci]: https://www.terraform.io/docs/providers/oci/index.html
29+
[uri-terraform-oke-sample]: https://github.com/terraform-providers/terraform-provider-oci/tree/master/examples/container_engine
30+
[uri-terraform-options]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/terraformoptions.adoc
31+
[uri-terraform-hashircorp-examples]: https://github.com/hashicorp/terraform-guides/tree/master/infrastructure-as-code/terraform-0.12-examples
32+
[uri-topology]: https://github.com/oracle-terraform-modules/terraform-oci-oke/docs/topology.adoc
33+
34+
35+
[Oracle Container Engine (OKE)][uri-oke] is [Oracle's][uri-oracle] managed [Kubernetes][uri-kubernetes] service on [Oracle Cloud Infrastructure (OCI)][uri-oci].
36+
37+
This [Terraform OKE Installer][uri-repo] for [Oracle Cloud Infrastructure][uri-oci] provides a reusable Terraform module that provisions a Oracle Container Engine][uri-oke] cluster.
38+
39+
## [Documentation][uri-docs]
40+
41+
* [Pre-requisites][uri-prereqs]
42+
43+
* [Quick Start][uri-quickstart]
44+
45+
* [Configuration][uri-configuration]
46+
47+
* [Instructions][uri-instructions]
48+
49+
* [Topology][uri-topology]
50+
51+
* [Terraform Options][uri-terraform-options]
52+
53+
* [Feature Dependencies][uri-terraform-dependencies]
54+
55+
## Related Documentation, Blog
56+
* [Oracle Cloud Infrastructure Documentation][uri-oci-documentation]
57+
* [Oracle Container Engine Documentation][uri-oke]
58+
* [Terraform OCI Provider Documentation][uri-terraform-oci]
59+
* [Erik Berg on Networks, Subnets and CIDR][uri-networks-subnets-cidr]
60+
* [Lisa Hagemann on Terraform cidrsubnet Deconstructed][uri-terraform-cidrsubnet-deconstructed]
61+
62+
## Changelog
63+
64+
View the [CHANGELOG][uri-changelog].
65+
66+
## Acknowledgement
67+
68+
Code derived and adapted from [Terraform OKE Sample][uri-terraform-oke-sample] and Hashicorp's [Terraform 0.12 examples][uri-terraform-hashircorp-examples]
69+
70+
## Contributors
71+
72+
[Folks][uri-contributors] who contributed with explanations, code, feedback, ideas, testing etc.
73+
74+
Learn how to [contribute][uri-contribute].
75+
76+
77+
## License
78+
79+
Copyright &copy; 2019 Oracle and/or its associates. All rights reserved.
80+
81+
Licensed under the [Universal Permissive License 1.0][uri-license] as shown at
82+
[https://oss.oracle.com/licenses/upl][uri-canonical-license].

docs/terraformoptions.adoc

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ Ensure you review the {uri-terraform-dependencies}[dependencies].
110110
|Default
111111

112112
|label_prefix
113-
|a string to be prepended to the name of resources.
113+
|a string to be prepended to the name of resources. *Required*
114+
|
114115
|
115-
|oke
116116

117117
|region
118118
|Region where to provision the OKE cluster. {uri-oci-region}[List of regions]. *Required*
@@ -193,14 +193,14 @@ newbits = {
193193
|10.0.0.0/16
194194

195195
|vcn_dns_label
196-
|The internal DNS domain for resources created and prepended to "oraclevcn.com" which is the VCN-internal domain name.
196+
|The internal DNS domain for resources created and prepended to "oraclevcn.com" which is the VCN-internal domain name. *Required*
197+
|
197198
|
198-
|oke
199199

200200
|vcn_name
201-
|The name of the VCN that will be appended to the label_prefix.
201+
|The name of the VCN that will be appended to the label_prefix. *Required*
202+
|
202203
|
203-
|oke vcn
204204

205205
|===
206206

@@ -254,14 +254,14 @@ newbits = {
254254
|true
255255

256256
|bastion_shape
257-
|The shape of bastion instance.
257+
|The shape of bastion instance. *Required*
258+
|
258259
|
259-
|VM.Standard.E2.1
260260

261261
|bastion_timezone
262-
|The preferred timezone for the bastion host. {uri-timezones}[List of timezones]
262+
|The preferred timezone for the bastion host. {uri-timezones}[List of timezones]. *Required*
263+
|
263264
|
264-
|Australia/Sydney
265265

266266
|===
267267

@@ -315,14 +315,14 @@ newbits = {
315315
|true
316316

317317
|admin_shape
318-
|The shape of admin instance.
318+
|The shape of admin instance. *Required*
319+
|
319320
|
320-
|VM.Standard.E2.1
321321

322322
|admin_timezone
323-
|The preferred timezone for the admin host. {uri-timezones}[List of timezones]
323+
|The preferred timezone for the admin host. {uri-timezones}[List of timezones]. *Required*
324+
|e.g. Australia/Sydney
324325
|
325-
|Australia/Sydney
326326

327327
|===
328328

@@ -375,9 +375,9 @@ availability_domains = {
375375
|false
376376

377377
|cluster_name
378-
|The name of the OKE cluster. This will be appended to the label_prefix.
378+
|The name of the OKE cluster. This will be appended to the label_prefix. *Required*
379+
|
379380
|
380-
|oke
381381

382382
|dashboard_enabled
383383
|Whether to create the default Kubernetes dashboard.
@@ -393,16 +393,15 @@ availability_domains = {
393393
|The number, shape and quantities per subnets of node pools to create. Each key and tuple pair corresponds to 1 node pool. The first parameter in the tuple sets the shape of the worker node and the 2nd parameter sets the size of the node pool. A minimum of 3 worker worker nodes per node pool will be created. Refer to {uri-topology}[topology] for more thorough examples.
394394
|e.g.
395395
[source]
396-
----
397396
node_pools = {
398397
"np1" = ["VM.Standard2.1", 1]
399398
}
400-
----
401-
|----
399+
400+
|
401+
[source]
402402
node_pools = {
403403
"np1" = ["VM.Standard2.1", 1]
404404
}
405-
----
406405

407406
|node_pool_name_prefix
408407
|A string prefixed to the node pool name.
@@ -487,17 +486,17 @@ Refer to {uri-topology}[topology] for more thorough examples.
487486
|false
488487

489488
|email_address
490-
|The email address to be used when creating the Docker secret. *Required* if create_auth_token is set to true.
489+
|The email address to be used when creating the Docker secret. *Required* if _create_auth_token_ is set to *true*.
491490
|
492491
|None
493492

494493
|tenancy_name
495-
|The *_name_* of the tenancy to be used when creating the Docker secret. This is different from tenancy_id. *Required* if create_auth_token is set to true.
494+
|The *_name_* of the tenancy to be used when creating the Docker secret. This is different from tenancy_id. *Required* if _create_auth_token_ is set to *true*.
496495
|
497496
|None
498497

499498
|username
500-
|The username that can login to the selected tenancy. This is different from tenancy_id. *Required* if create_auth_token is set to true.
499+
|The username that can login to the selected tenancy. This is different from tenancy_id. *Required* if _create_auth_token_ is set to *true*.
501500
|
502501
|None
503502

@@ -574,7 +573,7 @@ Refer to {uri-topology}[topology] for more thorough examples.
574573
|false
575574

576575
|existing_key_id
577-
|id of existing KMS key
576+
|id of existing KMS key. *Required* if _use_encryption_ is set to *true*
578577
|
579578
|
580579
|===

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ terraform {
66
}
77

88
module "base" {
9-
source = "github.com/oracle-terraform-modules/terraform-oci-base?ref=v1.1.0"
9+
# source = "github.com/oracle-terraform-modules/terraform-oci-base?ref=v1.1.1"
10+
source = "oracle-terraform-modules/base/oci"
11+
version = "1.1.1"
1012

1113
# identity
1214
oci_base_identity = local.oci_base_identity

modules/kms/variables.tf

Lines changed: 0 additions & 2 deletions
This file was deleted.

outputs.tf

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,32 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
33

44
output "bastion_public_ip" {
5-
value = module.base.bastion_public_ip
5+
description = "public ip address of bastion host"
6+
value = module.base.bastion_public_ip
67
}
78

89
output "admin_private_ip" {
9-
value = module.base.admin_private_ip
10+
description = "private ip address of admin host"
11+
value = module.base.admin_private_ip
1012
}
1113

1214
output "ssh_to_admin" {
13-
value = module.base.ssh_to_admin
15+
description = "convenient command to ssh to the admin host"
16+
value = module.base.ssh_to_admin
1417
}
1518

1619
output "ssh_to_bastion" {
17-
value = module.base.ssh_to_bastion
20+
description = "convenient command to ssh to the bastion host"
21+
value = module.base.ssh_to_bastion
1822
}
1923

2024
output "kubeconfig" {
21-
value = "export KUBECONFIG=generated/kubeconfig"
25+
description = "convenient command to set KUBECONFIG environment variable before running kubectl locally"
26+
value = "export KUBECONFIG=generated/kubeconfig"
2227
}
2328

2429
output "ocirtoken" {
25-
value = module.auth.ocirtoken
26-
sensitive = true
30+
description = "authentication token for ocir"
31+
sensitive = true
32+
value = module.auth.ocirtoken
2733
}

0 commit comments

Comments
 (0)