Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
TER-235: Update readme and examples with new tf config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Caussat committed Mar 20, 2018
1 parent 45d6f78 commit a0973be
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 14 deletions.
49 changes: 42 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ provider "ghost" {
}
resource "ghost_app" "test" {
name = "wordpress"
name = "%s"
env = "dev"
role = "webfront"
Expand All @@ -86,22 +86,47 @@ resource "ghost_app" "test" {
environment_infos = {
instance_profile = "iam.ec2.demo"
key_name = "ghost-demo"
root_block_device = {}
optional_volumes = []
root_block_device = {
name = "testblockdevice"
size = 20
}
optional_volumes = [{
device_name = "/dev/xvdd"
volume_type = "gp2"
volume_size = 20
}]
subnet_ids = ["subnet-a7e849fe"]
security_groups = ["sg-6814f60c"]
security_groups = ["sg-6814f60c", "sg-2414f60c"]
instance_tags = [{
tag_name = "Name"
tag_value = "wordpress"
},
{
tag_name = "Type"
tag_value = "front"
}]
}
autoscale = {
name = ""
name = "autoscale"
min = 1
max = 3
}
modules = [{
name = "symfony2"
pre_deploy = "ZXhpdCAx"
name = "wordpress"
pre_deploy = ""
path = "/var/www"
scope = "code"
git_repo = "https://github.com/KnpLabs/KnpIpsum.git"
},
{
name = "wordpress2"
pre_deploy = "ZXhpdCAx"
post_deploy = "ZXhpdCAx"
path = "/var/www"
scope = "code"
git_repo = "https://github.com/KnpLabs/KnpIpsum.git"
}]
features = [{
Expand All @@ -112,5 +137,15 @@ resource "ghost_app" "test" {
version = "2.2"
name = "apache2"
}]
lifecycle_hooks = {
pre_buildimage = "#!/usr/bin/env bash"
post_buildimage = "#!/usr/bin/env bash"
}
environment_variables = [{
key = "myvar"
value = "myvalue"
}]
}
```
49 changes: 42 additions & 7 deletions examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ provider "ghost" {
}

resource "ghost_app" "test" {
name = "wordpress"
name = "%s"
env = "dev"
role = "webfront"

Expand All @@ -26,22 +26,47 @@ resource "ghost_app" "test" {
environment_infos = {
instance_profile = "iam.ec2.demo"
key_name = "ghost-demo"
root_block_device = {}
optional_volumes = []
root_block_device = {
name = "testblockdevice"
size = 20
}
optional_volumes = [{
device_name = "/dev/xvdd"
volume_type = "gp2"
volume_size = 20
}]
subnet_ids = ["subnet-a7e849fe"]
security_groups = ["sg-6814f60c"]
security_groups = ["sg-6814f60c", "sg-2414f60c"]
instance_tags = [{
tag_name = "Name"
tag_value = "wordpress"
},
{
tag_name = "Type"
tag_value = "front"
}]
}

autoscale = {
name = ""
name = "autoscale"
min = 1
max = 3
}

modules = [{
name = "symfony2"
pre_deploy = "ZXhpdCAx"
name = "wordpress"
pre_deploy = ""
path = "/var/www"
scope = "code"
git_repo = "https://github.com/KnpLabs/KnpIpsum.git"
},
{
name = "wordpress2"
pre_deploy = "ZXhpdCAx"
post_deploy = "ZXhpdCAx"
path = "/var/www"
scope = "code"
git_repo = "https://github.com/KnpLabs/KnpIpsum.git"
}]

features = [{
Expand All @@ -52,4 +77,14 @@ resource "ghost_app" "test" {
version = "2.2"
name = "apache2"
}]

lifecycle_hooks = {
pre_buildimage = "#!/usr/bin/env bash"
post_buildimage = "#!/usr/bin/env bash"
}

environment_variables = [{
key = "myvar"
value = "myvalue"
}]
}

0 comments on commit a0973be

Please sign in to comment.