Skip to content

Commit

Permalink
Feature toggles for pdp_push and crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Aug 27, 2024
1 parent e47101e commit 563d762
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions environments/template/group_vars/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ manage:
backdoor_api_user: backdoor_api_user
oidcng_name: "OpenConext OIDC-NG"
oidc_push_enabled: false
pdp_push_enabled: false
crypto_enabled: true
pdp_name: "PdP"
run_migrations: false
push_after_migration: false
Expand Down
2 changes: 2 additions & 0 deletions environments/vm/group_vars/vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ manage:
backdoor_api_user: backdoor_api_user
oidcng_name: "OpenConext OIDC-NG"
oidc_push_enabled: true
pdp_push_enabled: true
crypto_enabled: true
pdp_name: "PdP"
features: push, validation, push_preview, orphans, find_my_data, edugain, auto_refresh
environment: vm
Expand Down
2 changes: 2 additions & 0 deletions roles/manage/templates/application.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ push:
name: {{ manage.pdp_name }}
user: {{ pdp.username }}
password: "{{ pdp.password }}"
enabled: {{ manage.pdp_push_enabled }}

product:
name: Manage
Expand All @@ -70,6 +71,7 @@ security:
crypto:
development-mode: False
public-key-location: file://{{ manage_dir }}/public_invite_key.pem
enabled: {{ manage.crypto_enabled }}

spring:
mail:
Expand Down
5 changes: 3 additions & 2 deletions tests/githubactions-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,18 @@ cat <<-'EOF' > ansible.cfg
EOF

# Prepare the environment
echo "Prepping the environment"
echo "Prepping the environment"
mkdir -p environments-external
/bin/cp -r environments/vm/ environments-external/github
/bin/mv environments-external/github/group_vars/vm.yml environments-external/github/group_vars/github.yml
sed -i 's/192.168.66.98/0.0.0.0/g' environments-external/github/group_vars/github.yml
sed -i 's/192.168.66.99/127.0.0.1/g' environments-external/github/group_vars/github.yml
sed -i 's/oidc_push_enabled: true/oidc_push_enabled: false/g' environments-external/github/group_vars/github.yml
sed -i 's/pdp_push_enabled: true/pdp_push_enabled: false/g' environments-external/github/group_vars/github.yml
# Change the hostname in the inventory
/bin/cp environments/template/inventory environments-external/github/
sed -i 's/%env%/github/g' environments-external/github/inventory
sed -i 's/%target_host%/ansible-test-ga ansible_connection=docker/g' environments-external/github/inventory
sed -i 's/%target_host%/ansible-test-ga ansible_connection=docker/g' environments-external/github/inventory

# Create the proper host_vars file
/bin/cp environments/template/host_vars/template.yml environments-external/github/host_vars/ansible-test-ga.yml
Expand Down

0 comments on commit 563d762

Please sign in to comment.