This repository has been archived by the owner on Apr 9, 2021. It is now read-only.
-
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.
Merged in TER-281_update-ghost-provider-examples (pull request #18)
TER-281: Update examples and readme Approved-by: Jordan Caussat <[email protected]> Approved-by: [email protected] <[email protected]> Approved-by: PERRIER Aurélien <[email protected]> Approved-by: Jérôme Respaut <[email protected]> Approved-by: Patrick Decat <[email protected]> Approved-by: Burak Karamahmut <[email protected]>
- Loading branch information
Showing
6 changed files
with
37 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ provider "ghost" { | |
endpoint = "https://localhost" | ||
} | ||
|
||
// This example exposes all the configuration parameters available to create | ||
// your cloud deploy app. | ||
resource "ghost_app" "basic" { | ||
name = "wordpress" | ||
env = "dev" | ||
|
@@ -13,6 +15,8 @@ resource "ghost_app" "basic" { | |
instance_type = "t2.micro" | ||
vpc_id = "vpc-1234567" | ||
|
||
instance_monitoring = true | ||
|
||
log_notifications = [ | ||
"[email protected]", | ||
] | ||
|
@@ -35,10 +39,11 @@ resource "ghost_app" "basic" { | |
|
||
optional_volumes = [ | ||
{ | ||
device_name = "/dev/xvdd" | ||
volume_type = "gp2" | ||
volume_size = 20 | ||
iops = 0 | ||
device_name = "/dev/xvdd" | ||
volume_type = "gp2" | ||
volume_size = 20 | ||
iops = 0 | ||
launch_block_device_mappings = 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
variable "password" {} |
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,23 @@ | ||
provider "ghost" { | ||
user = "demo" | ||
password = "${var.password}" | ||
endpoint = "https://localhost" | ||
} | ||
|
||
// This example shows the minimal configuration required to create an app. | ||
// Be aware that such a minimal configuration is not recommended for real usage. | ||
resource "ghost_app" "basic" { | ||
name = "wordpress" | ||
env = "dev" | ||
role = "webfront" | ||
vpc_id = "vpc-1234567" | ||
|
||
build_infos = { | ||
subnet_id = "subnet-1234567" | ||
source_ami = "ami-1234567" | ||
} | ||
|
||
environment_infos = {} | ||
|
||
modules = [] | ||
} |