-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[Global] | ||
jenkins_description: Keycloak setup with two backups, one with keycloak and one without. SSO via keycloak is activated in the portal | ||
logfile: autotest-keycloak-mariadb-setup.log | ||
|
||
kvm_server: [ENV:KVM_BUILD_SERVER] | ||
kvm_user: [ENV:KVM_USER] | ||
kvm_extra_label: ucs-[ENV:UCS_MINORRELEASE]-keycloak-mariadb-setup | ||
|
||
kvm_template: [ENV:KVM_TEMPLATE] | ||
kvm_ucsversion: [ENV:KVM_UCSVERSION] | ||
kvm_architecture: amd64 | ||
kvm_memory: [ENV:KVM_MEMORY] | ||
kvm_vcpus: [ENV:KVM_CPUS] | ||
|
||
kvm_dhcp: 1 | ||
kvm_interface: eth0 | ||
|
||
recover: 3 | ||
|
||
[master] | ||
kvm_operating_system: Others | ||
kvm_template: ucs-joined-master | ||
kvm_ucsversion: 5.0-2 | ||
command1: | ||
. utils.sh && basic_setup | ||
. utils.sh && basic_setup_ucs_joined "[ENV:master_IP]" | ||
. utils.sh && import_license | ||
. utils.sh && add_tech_key_authorized_keys | ||
. utils.sh && jenkins_updates | ||
command2: | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install univention-mariadb | ||
mysql -p"$(cat /etc/mysql.secret)" -e 'CREATE database keycloak;' | ||
mysql -p"$(cat /etc/mysql.secret)" -D keycloak -e "GRANT ALL PRIVILEGES ON * TO [email protected] IDENTIFIED BY \"$(cat /etc/mysql.secret)\";" | ||
command3: | ||
. utils.sh && switch_to_test_app_center || : | ||
echo "univention" > pwdfile | ||
univention-app install keycloak="[ENV:APPVERSION]" --username=Administrator --pwdfile=/root/pwdfile --skip --noninteractive --set kc/db/url='jdbc:mariadb://master.ucs.test:3306/keycloak' kc/db/username=root kc/db/password="$(cat /etc/mysql.secret)" | ||
. utils.sh && assert_join | ||
. utils.sh && install_ucs_test | ||
command4: | ||
. utils.sh && run_tests -s appcenter -r app_specific_test | ||
univention-app logs keycloak || : | ||
. utils.sh && prepare_results | ||
LOCAL utils/utils-local.sh fetch-results [SELF_IP] [SELF] | ||
files: | ||
~/ec2/scripts/activate-errata-test-scope.sh /root/ | ||
utils/utils.sh /root/ | ||
~/ec2/license/license.secret /etc/ |