-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
166 additions
and
280 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 @@ | ||
provider "codefresh" { | ||
api_url = var.api_url | ||
api_url_v2 = var.api_url_v2 | ||
token = var.token # If token isn't set the provider expects the $CODEFRESH_API_KEY env variable | ||
api_url = var.api_url | ||
api_url_v2 = var.api_url_v2 | ||
token = var.token # If token isn't set the provider expects the $CODEFRESH_API_KEY env variable | ||
} |
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,3 +1,3 @@ | ||
api_url = "https://my-codefresh.example.com/api" | ||
api_url = "https://my-codefresh.example.com/api" | ||
api_url_v2 = "https://my-codefresh.example.com/2.0/api/graphql" | ||
token = "" | ||
token = "" |
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,12 +1,12 @@ | ||
variable api_url { | ||
variable "api_url" { | ||
type = string | ||
} | ||
|
||
variable api_url_v2 { | ||
variable "api_url_v2" { | ||
type = string | ||
} | ||
|
||
variable token { | ||
type = string | ||
variable "token" { | ||
type = string | ||
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
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,24 +1,24 @@ | ||
variable api_url { | ||
variable "api_url" { | ||
type = string | ||
} | ||
|
||
# | ||
variable token { | ||
type = string | ||
variable "token" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
## Set of account names | ||
variable accounts { | ||
variable "accounts" { | ||
type = set(string) | ||
} | ||
|
||
module "account_tokens" { | ||
source = "../../tf_modules/account_tokens" | ||
api_url = var.api_url | ||
accounts = var.accounts | ||
source = "../.modules/account_tokens" | ||
api_url = var.api_url | ||
accounts = var.accounts | ||
} | ||
|
||
output "account_tokens" { | ||
value = module.account_tokens.tokens | ||
value = module.account_tokens.tokens | ||
} |
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 @@ | ||
api_url = "https://my-codefresh-example.com/api" | ||
|
||
accounts = [ | ||
"acc1", "acc2" | ||
"acc1", "acc2" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
resource "codefresh_account_user_association" "user" { | ||
email = "[email protected]" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "codefresh_account_user_association" "admin" { | ||
email = "[email protected]" | ||
admin = true | ||
email = "[email protected]" | ||
admin = true | ||
} |
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,7 +1,7 @@ | ||
terraform { | ||
required_providers { | ||
codefresh = { | ||
source = "codefresh-io/codefresh" | ||
source = "registry.terraform.io/codefresh-io/codefresh" | ||
} | ||
} | ||
} |
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,9 +1,9 @@ | ||
module "codefresh_access_control" { | ||
source = "../../tf_modules/accounts_users" | ||
api_url = var.api_url | ||
source = "../.modules/accounts_users" | ||
api_url = var.api_url | ||
default_idps = var.default_idps | ||
accounts = var.accounts | ||
users = var.users | ||
accounts = var.accounts | ||
users = var.users | ||
|
||
default_acccount_limits = var.default_acccount_limits | ||
} |
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,56 +1,56 @@ | ||
api_url = "https://my-codefresh.example.com/api" | ||
token = "cfAdmin-token" | ||
token = "cfAdmin-token" | ||
|
||
default_idps = { | ||
local = { | ||
display_name = "local" | ||
sso = false | ||
} | ||
azure_sso = { | ||
display_name = "azure-sso-1" | ||
sso = true | ||
} | ||
local = { | ||
display_name = "local" | ||
sso = false | ||
} | ||
azure_sso = { | ||
display_name = "azure-sso-1" | ||
sso = true | ||
} | ||
} | ||
|
||
accounts = { | ||
acc1 = {} | ||
acc2 = { | ||
limits = { | ||
collaborators = 50 | ||
parallel_builds = 5 | ||
} | ||
acc1 = {} | ||
acc2 = { | ||
limits = { | ||
collaborators = 50 | ||
parallel_builds = 5 | ||
} | ||
} | ||
} | ||
|
||
users = { | ||
user1 = { | ||
email = "[email protected]" | ||
personal = { | ||
first_name = "John" | ||
last_name = "Smith" | ||
} | ||
accounts = ["acc1", "acc2"] | ||
admin_of_accounts = ["acc1"] | ||
global_admin = true | ||
user1 = { | ||
email = "[email protected]" | ||
personal = { | ||
first_name = "John" | ||
last_name = "Smith" | ||
} | ||
user2 = { | ||
email = "live.com#[email protected]" | ||
personal = { | ||
first_name = "Q" | ||
last_name = "D" | ||
} | ||
accounts = ["acc2"] | ||
admin_of_accounts = [] | ||
global_admin = false | ||
accounts = ["acc1", "acc2"] | ||
admin_of_accounts = ["acc1"] | ||
global_admin = true | ||
} | ||
user2 = { | ||
email = "live.com#[email protected]" | ||
personal = { | ||
first_name = "Q" | ||
last_name = "D" | ||
} | ||
user3 = { | ||
email = "[email protected]" | ||
personal = { | ||
first_name = "Sam" | ||
last_name = "Johnson" | ||
} | ||
accounts = ["acc1", "acc2"] | ||
admin_of_accounts = ["acc1", "acc2"] | ||
global_admin = true | ||
accounts = ["acc2"] | ||
admin_of_accounts = [] | ||
global_admin = false | ||
} | ||
user3 = { | ||
email = "[email protected]" | ||
personal = { | ||
first_name = "Sam" | ||
last_name = "Johnson" | ||
} | ||
accounts = ["acc1", "acc2"] | ||
admin_of_accounts = ["acc1", "acc2"] | ||
global_admin = true | ||
} | ||
} |
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,22 @@ | ||
variable api_url {} | ||
variable "api_url" {} | ||
|
||
variable default_acccount_limits { | ||
type = map(any) | ||
default = { | ||
collaborators = 100 | ||
parallel_builds = 10 | ||
} | ||
variable "default_acccount_limits" { | ||
type = map(any) | ||
default = { | ||
collaborators = 100 | ||
parallel_builds = 10 | ||
} | ||
} | ||
|
||
variable default_idps { | ||
variable "default_idps" { | ||
type = map(any) | ||
} | ||
|
||
variable accounts { | ||
variable "accounts" { | ||
type = map(any) | ||
} | ||
|
||
variable users { | ||
variable "users" { | ||
//type = map(any) | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
provider "codefresh" { | ||
api_url = var.api_url | ||
token = var.token # If token isn't set the provider expects the $CODEFRESH_API_KEY env variable | ||
api_url = var.api_url | ||
token = var.token # If token isn't set the provider expects the $CODEFRESH_API_KEY env variable | ||
} |
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,8 +1,8 @@ | ||
variable api_url { | ||
variable "api_url" { | ||
type = string | ||
} | ||
|
||
variable token { | ||
type = string | ||
variable "token" { | ||
type = string | ||
default = "" | ||
} |
Oops, something went wrong.