Skip to content

Commit

Permalink
Set variable: mailman core db (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Jan 2, 2025
1 parent 2fc04a1 commit 577acf6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 119 deletions.
13 changes: 2 additions & 11 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,25 +300,16 @@
else:
HYPERKITTY_DATABASE_URL = ""

# Mailman API credentials
MAILMAN_REST_API_URL = env("MAILMAN_REST_API_URL", default="http://localhost:8001")
MAILMAN_REST_API_USER = env("MAILMAN_REST_API_USER", default="restadmin")
MAILMAN_REST_API_PASS = env("MAILMAN_REST_API_PASS", default="restpass")
MAILMAN_ARCHIVER_KEY = env("MAILMAN_ARCHIVER_KEY", default="password")
MAILMAN_ELASTIC_INDEX = env("MAILMAN_ELASTIC_INDEX", default="haystack")
MAILMAN_HAYSTACK_URL = env("MAILMAN_HAYSTACK_URL", default="http://127.0.0.1:9200/")
MAILMAN_CORE_DATABASE = env("MAILMAN_CORE_DATABASE", default="unknown")

# Fastly API credentials
FASTLY_SERVICE = env("FASTLY_SERVICE", default="empty")
FASTLY_SERVICE2 = env("FASTLY_SERVICE2", default="empty")
FASTLY_API_TOKEN = env("FASTLY_API_TOKEN", default="empty")

# Must still be configured:
HAYSTACK_CONNECTIONS = {
"default": {
"ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine",
"URL": MAILMAN_HAYSTACK_URL,
"INDEX_NAME": MAILMAN_ELASTIC_INDEX,
"ENGINE": "haystack.backends.simple_backend.SimpleEngine",
},
}

Expand Down
29 changes: 2 additions & 27 deletions kube/boost/values-cppal-dev-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,11 @@ Env:
key: key
- name: MAILGUN_SENDER_DOMAIN
value: cppal-dev.boost.cppalliance.org
- name: MAILMAN_REST_API_URL
- name: MAILMAN_CORE_DATABASE
valueFrom:
secretKeyRef:
name: mailman
key: api_url
- name: MAILMAN_REST_API_USER
valueFrom:
secretKeyRef:
name: mailman
key: api_user
- name: MAILMAN_REST_API_PASS
valueFrom:
secretKeyRef:
name: mailman
key: api_pass
- name: MAILMAN_ARCHIVER_KEY
valueFrom:
secretKeyRef:
name: mailman
key: archiver_key
- name: MAILMAN_ELASTIC_INDEX
valueFrom:
secretKeyRef:
name: mailman
key: elastic_index
- name: MAILMAN_HAYSTACK_URL
valueFrom:
secretKeyRef:
name: mailman
key: haystack_url
key: core_database
- name: CALENDAR_API_KEY
valueFrom:
secretKeyRef:
Expand Down
29 changes: 2 additions & 27 deletions kube/boost/values-production-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,11 @@ Env:
key: key
- name: MAILGUN_SENDER_DOMAIN
value: boost.cppalliance.org
- name: MAILMAN_REST_API_URL
- name: MAILMAN_CORE_DATABASE
valueFrom:
secretKeyRef:
name: mailman
key: api_url
- name: MAILMAN_REST_API_USER
valueFrom:
secretKeyRef:
name: mailman
key: api_user
- name: MAILMAN_REST_API_PASS
valueFrom:
secretKeyRef:
name: mailman
key: api_pass
- name: MAILMAN_ARCHIVER_KEY
valueFrom:
secretKeyRef:
name: mailman
key: archiver_key
- name: MAILMAN_ELASTIC_INDEX
valueFrom:
secretKeyRef:
name: mailman
key: elastic_index
- name: MAILMAN_HAYSTACK_URL
valueFrom:
secretKeyRef:
name: mailman
key: haystack_url
key: core_database
- name: CALENDAR_API_KEY
valueFrom:
secretKeyRef:
Expand Down
29 changes: 2 additions & 27 deletions kube/boost/values-stage-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,11 @@ Env:
key: key
- name: MAILGUN_SENDER_DOMAIN
value: stage.boost.cppalliance.org
- name: MAILMAN_REST_API_URL
- name: MAILMAN_CORE_DATABASE
valueFrom:
secretKeyRef:
name: mailman
key: api_url
- name: MAILMAN_REST_API_USER
valueFrom:
secretKeyRef:
name: mailman
key: api_user
- name: MAILMAN_REST_API_PASS
valueFrom:
secretKeyRef:
name: mailman
key: api_pass
- name: MAILMAN_ARCHIVER_KEY
valueFrom:
secretKeyRef:
name: mailman
key: archiver_key
- name: MAILMAN_ELASTIC_INDEX
valueFrom:
secretKeyRef:
name: mailman
key: elastic_index
- name: MAILMAN_HAYSTACK_URL
valueFrom:
secretKeyRef:
name: mailman
key: haystack_url
key: core_database
- name: CALENDAR_API_KEY
valueFrom:
secretKeyRef:
Expand Down
29 changes: 2 additions & 27 deletions kube/boost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,36 +139,11 @@ Env:
secretKeyRef:
name: mailgun
key: key
- name: MAILMAN_REST_API_URL
- name: MAILMAN_CORE_DATABASE
valueFrom:
secretKeyRef:
name: mailman
key: api_url
- name: MAILMAN_REST_API_USER
valueFrom:
secretKeyRef:
name: mailman
key: api_user
- name: MAILMAN_REST_API_PASS
valueFrom:
secretKeyRef:
name: mailman
key: api_pass
- name: MAILMAN_ARCHIVER_KEY
valueFrom:
secretKeyRef:
name: mailman
key: archiver_key
- name: MAILMAN_ELASTIC_INDEX
valueFrom:
secretKeyRef:
name: mailman
key: elastic_index
- name: MAILMAN_HAYSTACK_URL
valueFrom:
secretKeyRef:
name: mailman
key: haystack_url
key: core_database
- name: CALENDAR_API_KEY
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 577acf6

Please sign in to comment.