Skip to content

Commit 5950203

Browse files
authored
Merge pull request #697 from CodeNow/revert-685-add-new-self-hosted-environment
Revert "Add new self hosted environment Part 1"
2 parents 5330bce + 5605514 commit 5950203

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+82
-571
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environments/*/secrets/**/*
1414
# Leaving for now while PR is merged
1515
environments/*/k8
1616
# Meant to not break anything. Might remove later
17-
environments/runnable-on-prem-test
17+
environments/self-hosted-test
1818
*.retry
1919
*.tfstate*
2020
terraform/credentials.tfvars

ansible/consul-values-job.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

ansible/consul-values.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
tasks:
66
- name: make sure httplib2 is installed
77
become: true
8-
pip:
9-
name: httplib2
10-
executable: pip
8+
apt: package=python-httplib2 state=present
119

1210
- name: put values into consul
1311
run_once: true
1412
when: write_values is defined
1513
uri:
1614
method=PUT
17-
url={{ consul_url }}/v1/kv/{{ item.key }}
15+
url=http://{{ ansible_default_ipv4.address }}:8500/v1/kv/{{ item.key }}
1816
body="{{ item.value }}"
1917
with_items: "{{ consul_seed }}"
2018

@@ -24,7 +22,7 @@
2422
when: read_values is defined
2523
uri:
2624
method=GET
27-
url={{ consul_url }}/v1/kv/{{ item.key }}
25+
url=http://{{ ansible_default_ipv4.address }}:8500/v1/kv/{{ item.key }}
2826
with_items: "{{ consul_seed }}"
2927
register: values
3028

ansible/enterprise-sign-in.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
- group_vars/alpha-enterprise-sign-in.yml
55
roles:
66
- { role: builder, tags: "build" }
7-
- { role: k8-job }
7+
- { role: container_start }
8+
- { role: wait_for_container_exit }

ansible/group_vars/all.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ docker_client_root: "{{ secrets_root }}/docker-client/"
1414
config_maps_path: "{{ opts_root }}/configMaps"
1515
services_path: "{{ opts_root }}/services"
1616
deployments_path: "{{ opts_root }}/deployments"
17-
jobs_path: "{{ opts_root }}/jobs"
1817
cron_jobs_path: "{{ opts_root }}/crons"
1918
volumes_path: "{{ opts_root }}/volumes"
2019
daemon_sets_path: "{{ opts_root }}/daemonSets"
@@ -104,7 +103,6 @@ clio_mongo_database: clio
104103
# consul
105104
consul_api_port: 8500
106105
consul_https_port: 8501
107-
consul_storage_size_gb: 10
108106

109107
# cream
110108
cream_port: 8899
@@ -174,9 +172,6 @@ marketing_url: https://{{ domain }}
174172
# metabase
175173
metabase_port: 3000
176174

177-
# mongo
178-
mongo_storage_size_gb: 50
179-
180175
# navi
181176
navi_host_address: navi
182177
navi_http_port: 3567
@@ -197,12 +192,8 @@ palantiri_rollbar_token: ed971bbca9ea44a29268afc606ab8c7d
197192
pheidi_email_github_token: 115b4d854e34e8a5ba99ab73eefe4bf7a8944d6d
198193
pheidi_rollbar_token: 6fc422ac645441bea7f6f14853eb01ab
199194

200-
# postgres
201-
postgres_storage_size_gb: 50
202-
203195
# prometheus
204196
prometheus_port: 9090
205-
prometheus_storage_size_gb: 100
206197
prometheus_aws_access_key: AKIAIFG37NSI6O2QMRRQ
207198
prometheus_aws_secret_key: 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
208199

@@ -213,12 +204,10 @@ prometheus_alert_url: http://prometheus-alerts:{{ prometheus_alert_port }}
213204
# rabbit
214205
rabbit_host_address: rabbitmq
215206
rabbit_port: 5672
216-
rabbit_storage_size_gb: 50
217207

218208
# redis
219209
redis_host_address: redis
220210
redis_port: 6379
221-
redis_storage_size_gb: 50
222211

223212
# sauron
224213
sauron_rollbar_token: 83157ae2d50d4b6398e404c0b9978d26
@@ -252,7 +241,6 @@ user_vault_host_address: user-vault
252241
# local-vault
253242
vault_local_port: 31836
254243
vault_addr: http://127.0.0.1:{{ vault_local_port }}
255-
vault_consul_address: "consul.{{ domain }}"
256244

257245
# userland
258246
userland_host_address: userland

ansible/group_vars/alpha-api-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ api_base_container_envs:
7373
- name: KRAIN_PORT
7474
value: "{{ krain_port }}"
7575
- name: MIXPANEL_APP_ID
76-
value: "{{ api_mixpanel_app_id | default('ansible_undefined') }}"
76+
value: "{{ api_mixpanel_app_id }}"
7777
- name: MONGO_AUTH
7878
value: "{{ api_mongo_auth }}"
7979
- name: MONGO_DB

ansible/group_vars/alpha-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ num_replicas: 16
88

99
envs:
1010
- name: ROLLBAR_KEY
11-
value: "{{ api_rollbar_key | default('ansible_undefined') }}"
11+
value: "{{ api_rollbar_key }}"
1212

1313
volume_mounts:
1414
- name: "{{ name }}-docker-ssl-certs"

ansible/group_vars/alpha-arithmancy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ container_envs:
2323
- name: RABBITMQ_USERNAME
2424
value: "{{ rabbit_username }}"
2525
- name: ROLLBAR_KEY
26-
value: "{{ arithmancy_rollbar_key | default('ansible_undefined') }}"
26+
value: "{{ arithmancy_rollbar_key }}"

ansible/group_vars/alpha-big-poppa-base.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ big_poppa_base_container_envs:
5858
- name: GITHUB_PROTOCOL
5959
value: "http"
6060
- name: STRIPE_API_KEY
61-
value: "{{ cream_stripe_secret_key | default('ansible_undefined') }}"
61+
value: "{{ cream_stripe_secret_key }}"
6262
- name: STRIPE_PUBLISHABLE_KEY
63-
value: "{{ cream_stripe_publishable_key | default('ansible_undefined') }}"
63+
value: "{{ cream_stripe_publishable_key }}"

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ envs:
88
- name: PORT
99
value: "{{ big_poppa_port }}"
1010
- name: ROLLBAR_KEY
11-
value: "{{ big_poppa_http_rollbar_token | default('ansible_undefined') }}"
11+
value: "{{ big_poppa_http_rollbar_token }}"
1212
- name: NEW_RELIC_APP_NAME
1313
value: "{{ big_poppa_new_relic_app_name | default('ansible_undefined') }}"
1414
- name: NEW_RELIC_LICENSE_KEY

0 commit comments

Comments
 (0)