-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add splitting module to a few ones + examples mocks
- Loading branch information
Vitaliy Natarov
authored and
Vitaliy Natarov
committed
Jan 14, 2025
1 parent
7716a9a
commit 85a0e49
Showing
23 changed files
with
188 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Work with identity_group via terraform | ||
|
||
A terraform module for making identity_group. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# MAINTAINER Vitaliy Natarov "[email protected]" | ||
# | ||
|
||
terraform { | ||
required_version = "~> 1.0" | ||
|
||
required_providers { | ||
oci = { | ||
source = "oracle/oci" | ||
version = "6.21.0" | ||
} | ||
} | ||
} | ||
|
||
provider "oci" { | ||
fingerprint = var.provider_oci_fingerprint | ||
private_key_path = var.provider_oci_private_key_path | ||
region = var.provider_oci_region | ||
tenancy_ocid = var.provider_oci_tenancy_ocid | ||
user_ocid = var.provider_oci_user_ocid | ||
alias = var.provider_oci_alias | ||
} | ||
|
||
module "identity_group" { | ||
source = "../../modules/identity_group" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# provider identity parameters | ||
variable "provider_oci_fingerprint" { | ||
type = string | ||
description = "fingerprint of oci api private key" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_private_key_path" { | ||
type = string | ||
description = "path to oci api private key used" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_region" { | ||
type = string | ||
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions | ||
description = "the oci region where resources will be created" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_tenancy_ocid" { | ||
type = string | ||
description = "tenancy id where to create the sources" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_user_ocid" { | ||
type = string | ||
description = "id of user that terraform will use to create the resources" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_alias" { | ||
type = string | ||
description = "Set alias for provider" | ||
default = "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Work with identity_user via terraform | ||
|
||
A terraform module for making identity_user. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# MAINTAINER Vitaliy Natarov "[email protected]" | ||
# | ||
|
||
terraform { | ||
required_version = "~> 1.0" | ||
|
||
required_providers { | ||
oci = { | ||
source = "oracle/oci" | ||
version = "6.21.0" | ||
} | ||
} | ||
} | ||
|
||
provider "oci" { | ||
fingerprint = var.provider_oci_fingerprint | ||
private_key_path = var.provider_oci_private_key_path | ||
region = var.provider_oci_region | ||
tenancy_ocid = var.provider_oci_tenancy_ocid | ||
user_ocid = var.provider_oci_user_ocid | ||
alias = var.provider_oci_alias | ||
} | ||
|
||
module "identity_user" { | ||
source = "../../modules/identity_user" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# provider identity parameters | ||
variable "provider_oci_fingerprint" { | ||
type = string | ||
description = "fingerprint of oci api private key" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_private_key_path" { | ||
type = string | ||
description = "path to oci api private key used" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_region" { | ||
type = string | ||
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions | ||
description = "the oci region where resources will be created" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_tenancy_ocid" { | ||
type = string | ||
description = "tenancy id where to create the sources" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_user_ocid" { | ||
type = string | ||
description = "id of user that terraform will use to create the resources" | ||
default = "" | ||
} | ||
|
||
variable "provider_oci_alias" { | ||
type = string | ||
description = "Set alias for provider" | ||
default = "" | ||
} |
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
oracle_cloud/modules/identity/user.tf → ...dules/identity_group/identity_provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#----------------------------------------------------------- | ||
# identity_api_key | ||
# identity_identity_provider | ||
#----------------------------------------------------------- | ||
|
||
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_api_key | ||
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_identity_provider |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#----------------------------------------------------------- | ||
# TMP | ||
#----------------------------------------------------------- |
4 changes: 2 additions & 2 deletions
4
...modules/identity/user_group_membership.tf → ...s/identity_group/user_group_membership.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#----------------------------------------------------------- | ||
# identity_api_key | ||
# identity_user_group_membership | ||
#----------------------------------------------------------- | ||
|
||
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_api_key | ||
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_user_group_membership |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#----------------------------------------------------------- | ||
# Global | ||
#----------------------------------------------------------- | ||
variable "name" { | ||
description = "The name for resources" | ||
default = "test" | ||
} | ||
|
||
variable "environment" { | ||
description = "The environment for resources" | ||
default = "dev" | ||
} | ||
|
||
#----------------------------------------------------------- | ||
# TMP | ||
#----------------------------------------------------------- | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#----------------------------------------------------------- | ||
# TMP | ||
#----------------------------------------------------------- |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
oracle_cloud/modules/identity_user/user_capabilities_management.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#----------------------------------------------------------- | ||
# identity_user_capabilities_management | ||
#----------------------------------------------------------- | ||
|
||
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_user_capabilities_management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#----------------------------------------------------------- | ||
# Global | ||
#----------------------------------------------------------- | ||
variable "name" { | ||
description = "The name for resources" | ||
default = "test" | ||
} | ||
|
||
variable "environment" { | ||
description = "The environment for resources" | ||
default = "dev" | ||
} | ||
|
||
#----------------------------------------------------------- | ||
# TMP | ||
#----------------------------------------------------------- | ||
|