add host.tf configuration

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-04-02 18:34:00 +02:00
parent 79a22d61b7
commit f1cb7240ff
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 32 additions and 2 deletions

View File

@ -4,8 +4,8 @@ This repo configures infrastructure for the [starterpack-service](https://github
# Endpoints
* https://starter-pack-prod.status.im/ - Production
* https://starter-pack-dev.status.im/ - Development
* https://prod.starter-pack.status.im/ - Production
* https://test.starter-pack.status.im/ - Testing
# Repo Usage

View File

@ -1,4 +1,11 @@
---
# Narrow users for host
bootstrap__active_users:
- { name: jakub, uid: 7006, groups: [] }
- { name: petty, uid: 7028, groups: [] }
- { name: igor, uid: 7015, groups: [] }
- { name: jarrad, uid: 7030, groups: [], key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwNIJ07rCf23WJYPHBAU2PGhGuWrvx8Zu8eguiyaxtk2QN+bGQ0FBUCTl7CyJGtSckEF06u2JvaUj7qdfzNnxUZbppZCKwLh9hcLGEM0cU54SHrOl9akcPjMDNuOHWomPPIxLzmUDwjBlryYLTSjijf07BVeY2dEzVyWneU+a9RHbkUt6L2uKDTF1VYSK165GDDQrFTZFrgsJ0Zjm4xCSyFtK6ChwnLmF/ECpn1W8t1LzWdX/5QgcC7ohUPfxupGq2PG0cLiqR2RSSt23G1FKgCxKaJNh2okRwwZgIccMN8uovKxSJp9DwwLVAkU9HVS5EAZhIf1jFLdDVKWRfUfBn me@jarradhope.com' }
# general container config
cont_state: started
cont_recreate: false

23
host.tf Normal file
View File

@ -0,0 +1,23 @@
/**
* This is a dev machine for developing the Starter Pack service.
* https://github.com/status-im/starterpack-service
**/
module "main" {
source = "github.com/status-im/infra-tf-digital-ocean"
host_count = 1
env = "starter"
group = "starter"
size = "s-2vcpu-4gb"
domain = var.domain
open_tcp_ports = ["80", "443"]
}
resource "cloudflare_record" "starter_dev" {
zone_id = local.zones["status.im"]
name = "starter-pack-${terraform.workspace}"
type = "A"
proxied = true
value = module.main.public_ips[0]
}