forked from juju/terraform-provider-juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: update offer_url use in integration resource
Per juju#449, indicate that offer_url and name/endpoint are mutually exclusive in an integration resource.
- Loading branch information
Showing
4 changed files
with
38 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
resource "juju_offer" "this" { | ||
resource "juju_offer" "myoffer" { | ||
model = juju_model.development.name | ||
application_name = juju_application.percona-cluster.name | ||
endpoint = server | ||
} | ||
|
||
// an offer can then be used in an integration as below: | ||
resource "juju_integration" "this" { | ||
// an offer can then be used in an cross model integration as below: | ||
resource "juju_integration" "myintegration" { | ||
model = juju_model.development-destination.name | ||
|
||
application { | ||
name = juju_application.wordpress.name | ||
endpoint = "db" | ||
} | ||
|
||
application { | ||
offer_url = juju_offer.this.url | ||
offer_url = juju_offer.myoffer.url | ||
} | ||
} |
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