-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added client ID and client secret to Juju provider config.
This change will allow for authentication using client ID and secret when connecting to JAAS. Updates Juju dependency to 3.5 that contains needed login changes.
- Loading branch information
1 parent
7951fea
commit 83743e1
Showing
18 changed files
with
565 additions
and
1,000 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
provider "juju" { | ||
version = "~> 0.10.0" | ||
|
||
controller_addresses = "10.225.205.241:17070,10.225.205.242:17070" | ||
|
||
client_id = "jujuclientid" | ||
client_secret = "jujuclientsecret" | ||
|
||
ca_certificate = file("~/ca-cert.pem") | ||
} | ||
|
||
resource "juju_model" "development" { | ||
name = "development" | ||
|
||
cloud { | ||
name = "aws" | ||
region = "eu-west-1" | ||
} | ||
} | ||
|
||
resource "juju_application" "wordpress" { | ||
name = "wordpress" | ||
|
||
model = juju_model.development.name | ||
|
||
charm { | ||
name = "wordpress" | ||
} | ||
|
||
units = 3 | ||
} | ||
|
||
resource "juju_application" "percona-cluster" { | ||
name = "percona-cluster" | ||
|
||
model = juju_model.development.name | ||
|
||
charm { | ||
name = "percona-cluster" | ||
} | ||
|
||
units = 3 | ||
} | ||
|
||
resource "juju_integration" "wp_to_percona" { | ||
model = juju_model.development.name | ||
|
||
application { | ||
name = juju_application.wordpress.name | ||
endpoint = "db" | ||
} | ||
|
||
application { | ||
name = juju_application.percona-cluster.name | ||
endpoint = "server" | ||
} | ||
} |
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.