mirror of
https://github.com/kasmtech/ansible
synced 2024-12-04 17:19:11 +00:00
KASM-4182 update logic to support passing an alternative port from 443
This commit is contained in:
parent
79402adc1b
commit
b321aafe3f
5 changed files with 11 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
- name: Check connection from agent to webserver
|
||||
uri:
|
||||
url: "https://{{ web_ip }}/api/__healthcheck"
|
||||
url: "https://{{ web_ip }}:{{ proxy_port }}/api/__healthcheck"
|
||||
timeout: 5
|
||||
validate_certs: false
|
||||
register: _result
|
||||
|
@ -9,7 +9,7 @@
|
|||
delay: 5
|
||||
|
||||
- name: Install agent role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -e -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -e -L {{ proxy_port }} -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
@ -18,7 +18,7 @@
|
|||
when: test is not defined
|
||||
|
||||
- name: Install agent role - test
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -I -e -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -I -e -L {{ proxy_port }} -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: Install database role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S db -e -Q {{database_password}} -R {{redis_password}} -U {{user_password}} -P {{admin_password}} -M {{manager_token}} --registration-token {{registration_token}} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S db -e -L {{proxy_port}} -Q {{database_password}} -R {{redis_password}} -U {{user_password}} -P {{admin_password}} -M {{manager_token}} --registration-token {{registration_token}} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
@ -8,7 +8,7 @@
|
|||
when: test is not defined
|
||||
|
||||
- name: Install database role - test
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S db -e -I -Q {{database_password}} -R {{redis_password}} -U {{user_password}} -P {{admin_password}} -M {{manager_token}} --registration-token {{registration_token}} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S db -e -L {{proxy_port}} -I -Q {{database_password}} -R {{redis_password}} -U {{user_password}} -P {{admin_password}} -M {{manager_token}} --registration-token {{registration_token}} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- name: Check connection from guac to webserver
|
||||
uri:
|
||||
url: "https://{{ web_ip }}/api/__healthcheck"
|
||||
url: "https://{{ web_ip }}:{{ proxy_port }}/api/__healthcheck"
|
||||
timeout: 5
|
||||
validate_certs: false
|
||||
register: _result
|
||||
|
@ -9,7 +9,7 @@
|
|||
delay: 5
|
||||
|
||||
- name: Install guac role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S guac -e --api-hostname {{ web_ip }} --public-hostname {{ guac_ip }} --registration-token {{ registration_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S guac -e -L {{ proxy_port }} --api-hostname {{ web_ip }} --public-hostname {{ guac_ip }} --registration-token {{ registration_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
timeout: 60
|
||||
|
||||
- name: Install web role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S app -e -q {{ db_ip }} -Q {{ database_password }} -R {{ redis_password }} -n {{ target_ip }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S app -e -L {{ proxy_port }} -q {{ db_ip }} -Q {{ database_password }} -R {{ redis_password }} -n {{ target_ip }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
|
|
|
@ -16,5 +16,8 @@
|
|||
# Token that agents use to connect to webapp
|
||||
#manager_token: changeme
|
||||
|
||||
# Port to listen on
|
||||
proxy_port: 443
|
||||
|
||||
# Start docker daemon at boot
|
||||
start_docker_on_boot: true
|
||||
|
|
Loading…
Reference in a new issue