-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving modules to source resources to simplify
- Loading branch information
Showing
48 changed files
with
1,467 additions
and
716 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
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
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
This file was deleted.
Oops, something went wrong.
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
Empty file.
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,22 +1,35 @@ | ||
#__________________________________________________________ | ||
# | ||
# Terraform Cloud Organization | ||
#__________________________________________________________ | ||
|
||
variable "tfc_organization" { | ||
default = "CiscoDevNet" | ||
description = "Terraform Cloud Organization." | ||
type = string | ||
terraform { | ||
experiments = [module_variable_optional_attrs] | ||
} | ||
|
||
|
||
#______________________________________________ | ||
#__________________________________________________________ | ||
# | ||
# Terraform Cloud kubeconfig Workspace | ||
#______________________________________________ | ||
# Terraform Cloud Variables | ||
#__________________________________________________________ | ||
|
||
variable "tfc_workspace" { | ||
default = "" | ||
description = "Terraform Cloud Workspace Name." | ||
type = string | ||
variable "tfc_workspaces" { | ||
default = [ | ||
{ | ||
backend = "remote" | ||
organization = "default" | ||
policies_dir = "../kubeconfig/" | ||
workspace = "kubeconfig" | ||
} | ||
] | ||
description = <<-EOT | ||
* backend: Options are: | ||
- local - The backend is on the Local Machine | ||
- Remote - The backend is in TFCB. | ||
* kubeconfig_dir: Name of the Policies directory when the backend is local. | ||
* organization: Name of the Terraform Cloud Organization when backend is remote. | ||
* workspace: Name of the workspace in Terraform Cloud. | ||
EOT | ||
type = list(object( | ||
{ | ||
backend = string | ||
organization = optional(string) | ||
policies_dir = optional(string) | ||
workspace = optional(string) | ||
} | ||
)) | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.