-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
afe72fa
commit e64f02f
Showing
4 changed files
with
75 additions
and
2 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 |
---|---|---|
|
@@ -10,7 +10,45 @@ description: |- | |
|
||
Models an app installation on the mittwald platform | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "admin_password" { | ||
description = "The password for the admin user of the wordpress app" | ||
type = string | ||
sensitive = true | ||
} | ||
resource "mittwald_app" "wordpress" { | ||
project_id = mittwald_project.foobar.id | ||
app = "wordpress" | ||
version = "6.3.1" | ||
description = "Martins Test-App" | ||
update_policy = "patchlevel" | ||
user_inputs = { | ||
"site_title" = "My awesome site" | ||
"admin_user" = "martin" | ||
"admin_pass" = var.admin_password | ||
"admin_email" = "[email protected]" | ||
} | ||
} | ||
resource "mittwald_app" "custom_php" { | ||
project_id = mittwald_project.foobar.id | ||
database_id = mittwald_mysql_database.foobar_database.id | ||
app = "php" | ||
version = "1.0.0" | ||
description = "Martins Test-App" | ||
document_root = "/public" | ||
update_policy = "none" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
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,35 @@ | ||
variable "admin_password" { | ||
description = "The password for the admin user of the wordpress app" | ||
type = string | ||
sensitive = true | ||
} | ||
|
||
resource "mittwald_app" "wordpress" { | ||
project_id = mittwald_project.foobar.id | ||
|
||
app = "wordpress" | ||
version = "6.3.1" | ||
|
||
description = "Martins Test-App" | ||
update_policy = "patchlevel" | ||
|
||
user_inputs = { | ||
"site_title" = "My awesome site" | ||
"admin_user" = "martin" | ||
"admin_pass" = var.admin_password | ||
"admin_email" = "[email protected]" | ||
|
||
} | ||
} | ||
|
||
resource "mittwald_app" "custom_php" { | ||
project_id = mittwald_project.foobar.id | ||
database_id = mittwald_mysql_database.foobar_database.id | ||
|
||
app = "php" | ||
version = "1.0.0" | ||
|
||
description = "Martins Test-App" | ||
document_root = "/public" | ||
update_policy = "none" | ||
} |
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