Skip to content

Commit

Permalink
Merge pull request #3457 from keshavprasadms/release-4.10.0
Browse files Browse the repository at this point in the history
fix: bootstrap on a multinode scenario
  • Loading branch information
saiakhil46 authored Aug 24, 2022
2 parents 583ed37 + 1cb0186 commit 2417fc4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ansible/roles/keycloak-deploy/tasks/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
shell: "nohup {{keycloak_home}}/bin/standalone.sh -Dkeycloak.profile.feature.upload_scripts=enabled -b={{ansible_default_ipv4.address}} -bprivate={{ansible_default_ipv4.address}} --server-config standalone-ha.xml &"
become: yes
become_user: "{{ wildfly_user }}"
run_once: true
notify: wait for keycloak to start

- meta: flush_handlers
Expand All @@ -37,7 +36,6 @@
apt:
name: ["python-setuptools"]
update_cache: true
run_once: true

- name: Ensure python packages are installed
apt:
Expand All @@ -55,38 +53,32 @@
copy:
src: "{{ role_path }}/files/python-keycloak-0.12.0"
dest: /tmp/
run_once: true

- name: Initialize python library to run keycloak bootstrap script
shell: cd /tmp/python-keycloak-0.12.0 && python setup.py install
run_once: true

- name: Save keycloak vars to json
template:
src: "keycloak-bootstrap.conf.j2"
dest: "/tmp/keycloak-bootstrap.conf.json"
mode: "0644"
run_once: true

- name: Copy realm json file to tmp location
template:
src: "keycloak-realm.j2"
dest: "/tmp/keycloak-realm.json"
mode: "0644"
run_once: true

- name: Copy user manager roles file to tmp location
copy:
src: "files/python-keycloak-0.12.0/roles.json"
dest: "/tmp/roles.json"
mode: "0644"
run_once: true

- name: Copy the keycloak bootstrap script
copy:
src: "{{ role_path }}/files/python-keycloak-0.12.0/keycloak"
dest: /tmp
run_once: true

- name: Run the keycloak bootstrap script
shell: cd /tmp/keycloak/ && python keycloak_main.py /tmp/keycloak-bootstrap.conf.json
Expand Down

0 comments on commit 2417fc4

Please sign in to comment.