diff --git a/README.md b/README.md index acfe164..728f1f6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 680a908..e35b529 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -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 diff --git a/host.tf b/host.tf new file mode 100644 index 0000000..0e3a732 --- /dev/null +++ b/host.tf @@ -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] +}