Skip to content

Commit

Permalink
add ldap envvars to nomad job
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom committed Nov 14, 2024
1 parent 745e92c commit 915af04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/deploy/production.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ job "blockbot" {
data = <<EOF
TOKEN={{ key "blockbot/discord/token" }}
DEBUG=false
LDAP_USERNAME={{ key "blockbot/ldap/username" }}
LDAP_PASSWORD={{ key "blockbot/ldap/password" }}
UID_MAP={{ key "blockbot/ldap/uid_map" }}
EOF
destination = "local/.env"
env = true
Expand Down
3 changes: 3 additions & 0 deletions .github/deploy/review.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ job "blockbot-[[.environment_slug]]" {
data = <<EOF
TOKEN={{ key "blockbot-dev/discord/token" }}
DEBUG=false
LDAP_USERNAME={{ key "blockbot-dev/ldap/username" }}
LDAP_PASSWORD={{ key "blockbot-dev/ldap/password" }}
UID_MAP={{ key "blockbot-dev/ldap/uid_map" }}
EOF
destination = "local/.env"
env = true
Expand Down
5 changes: 3 additions & 2 deletions src/extensions/action_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import requests
import re

# not used, functionality for times/deadlines to be added later
from datetime import datetime, timezone

from src.utils import role_mention
from src.hooks import restrict_to_channels, restrict_to_roles
from src.config import CHANNEL_IDS, ROLE_IDS, UID_MAPS, LDAP_USERNAME, LDAP_PASSWORD

# not used, functionality for times/deadlines to be added later
from datetime import datetime, timezone

action_items = arc.GatewayPlugin(name="Action Items")

Expand Down

0 comments on commit 915af04

Please sign in to comment.