Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/install_common/tasks/agent_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{{ '-s ' ~ service_images_copy.dest if service_images_file }}
{{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}
{{ '-x ' ~ network_plugin_copy.dest if network_plugin_file }}
{{ '--offline-logger-plugin ' ~ logging_plugin_copy.dest if logging_plugin_file }}
register: install_output
become: true
retries: 20
Expand Down
13 changes: 11 additions & 2 deletions roles/install_common/tasks/copy_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
installer_glob: "{{ lookup('fileglob', '{{role_path}}/files/kasm_workspaces_*.tar.gz', wantlist=True) + lookup('fileglob', '{{role_path}}/files/kasm_release_*.tar.gz', wantlist=True) }}"
service_images_glob: "{{ lookup('fileglob', '{{role_path}}/files/kasm_workspaces_service_images*.tar.gz', wantlist=True) + lookup('fileglob', '{{role_path}}/files/kasm_release_service_images*.tar.gz', wantlist=True) }}"
workspace_images_glob: "{{ lookup('fileglob', '{{role_path}}/files/kasm_workspaces_workspace_images_*.tar.gz', wantlist=True) + lookup('fileglob', '{{role_path}}/files/kasm_release_workspace_images_*.tar.gz', wantlist=True) }}"
network_plugin_glob: "{{ lookup('fileglob', '{{role_path}}//files/kasmweb_network_plugin_*.tar.gz', wantlist=True)}}"
network_plugin_glob: "{{ lookup('fileglob', '{{role_path}}//files/kasmweb_network_plugin_*.tar.gz', wantlist=True) + lookup('fileglob', '{{role_path}}//files/kasm_release_network_plugin_images_*.tar.gz', wantlist=True)}}"
logging_plugin_glob: "{{ lookup('fileglob', '{{role_path}}//files/kasmweb_logging_plugin_*.tar.gz', wantlist=True) + lookup('fileglob', '{{role_path}}//files/kasm_release_logging_plugin_images_*.tar.gz', wantlist=True)}}"
delegate_to: localhost

- set_fact:
# Our installer glob search will also include service_images and workspace_images so we filter them out with difference()
installer_file: "{{ installer_glob | difference(service_images_glob) | difference(workspace_images_glob) | first | default(None) }}"
installer_file: "{{ installer_glob | difference(service_images_glob) | difference(workspace_images_glob) | difference(network_plugin_glob) | difference(logging_plugin_glob) | first | default(None) }}"
service_images_file: "{{ service_images_glob | first | default(None) }}"
workspace_images_file: "{{ workspace_images_glob | first | default(None) }}"
network_plugin_file: "{{ network_plugin_glob | first | default(None) }}"
logging_plugin_file: "{{ logging_plugin_glob | first | default(None) }}"

- name: Assert that Kasm installer exists
assert:
Expand Down Expand Up @@ -46,3 +48,10 @@
dest: "{{ tempdir.path }}"
register: network_plugin_copy
when: network_plugin_file

- name: Copy Logging Plugin
copy:
src: "{{ logging_plugin_file }}"
dest: "{{ tempdir.path }}"
register: logging_plugin_copy
when: logging_plugin_file
1 change: 1 addition & 0 deletions roles/install_common/tasks/remote_db_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
--admin-password {{ admin_password }}
{{ '--no-db-ssl ' if not database_ssl }}
{{ '--offline-service ' ~ service_images_copy.dest if service_images_file }}
{{ '--offline-workspaces ' ~ workspace_images_copy.dest if workspace_images_file }}
responses:
Continue(?i): "y"
run_once: true
Expand Down