1
0
Fork 0
mirror of https://github.com/kasmtech/ansible.git synced 2026-01-23 02:25:25 +00:00

KASM-7433 - removing redis

This commit is contained in:
Arpit Gupta 2025-08-06 05:47:52 +00:00
parent ddd21ca834
commit 6d80c6b656
No known key found for this signature in database
GPG key ID: 5097892F41EA5CEF
8 changed files with 0 additions and 49 deletions

View file

@ -96,7 +96,6 @@ Before running the installation against a modified inventory file please ensure
user_password: PASSWORD
admin_password: PASSWORD
database_password: PASSWORD
redis_password: PASSWORD
manager_token: PASSWORD
registration_token: PASSWORD
```
@ -207,12 +206,6 @@ If for any reason you have misplaced your inventory file post installation crede
sudo grep " password" /opt/kasm/current/conf/app/api/api.app.config.yaml
```
- Existing Redis password can be obtained by logging into a webapp host and running the following command:
```
sudo grep "redis_password" /opt/kasm/current/conf/app/api/api.app.config.yaml
```
- Existing Manager token can be obtained by logging into an agent host and running the following command:
```
@ -252,10 +245,6 @@ In order to deploy with a dedicated remote database that is not managed by ansib
database_name: kasm
database_port: 5432
database_ssl: true
## redis settings ##
# redis connection parameters if hostname is set the web role will use a remote redis server
redis_hostname: REDIS_HOSTNAME
redis_password: REDIS_PASSWORD
```
3. Run the deployment:

View file

@ -88,7 +88,6 @@ all:
#user_password: {{ user_password }}
#admin_password: {{ admin_password }}
#database_password: {{ database_password }}
#redis_password: {{ redis_password }}
#manager_token: {{ manager_token }}
#registration_token: {{ registration_token }}
@ -124,10 +123,6 @@ all:
database_port: 5432
database_ssl: true
## redis settings ##
# redis connection parameters if hostname is set the web role will use a remote redis server
redis_hostname: false
## Database Backup settings ##
# These settings will only work when zone1_db_1 is set in host inventory, this does not support remote database type installations
# Directory where backups are placed on db server

View file

@ -7,7 +7,6 @@
--database-user {{ database_user }}
--database-name {{ database_name }}
--db-password {{ database_password }}
--redis-password {{ redis_password }}
--user-password {{ user_password }}
--admin-password {{ admin_password }}
--manager-token {{ manager_token }}

View file

@ -5,12 +5,6 @@
when: database_password is not defined
run_once: true
delegate_to: localhost
- set_fact:
redis_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
when: redis_password is not defined
run_once: true
delegate_to: localhost
- set_fact:
user_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"

View file

@ -29,14 +29,6 @@
db_ip: "{{ database_hostname }}"
when: database_hostname
- set_fact:
redis_ip: "{{ hostvars['zone1_db_1'].ansible_default_ipv4.address }}"
when: not redis_hostname
- set_fact:
redis_ip: "{{ redis_hostname }}"
when: redis_hostname
- name: Override manager hostname if configured
set_fact:
web_ip: "{{ manager_hostname }}"
@ -162,7 +154,6 @@
debug:
msg:
- "Database Password: {{ database_password }}"
- "Redis Password: {{ redis_password }}"
- "Manager Token: {{ manager_token }}"
- "Registration Token: {{ registration_token }}"
- "user@kasm.local password: {{ user_password }}"
@ -187,7 +178,6 @@
- {from: "#user_password", to: "user_password"}
- {from: "#admin_password", to: "admin_password"}
- {from: "#database_password", to: "database_password"}
- {from: "#redis_password", to: "redis_password"}
- {from: "#manager_token", to: "manager_token"}
- {from: "#registration_token", to: "registration_token"}

View file

@ -4,12 +4,6 @@
host: "{{ db_ip }}"
timeout: 60
- name: Check connection from web to redis on db server
wait_for:
port: 6379
host: "{{ redis_ip }}"
timeout: 60
- name: Init remote Database
expect:
timeout: 600
@ -28,7 +22,6 @@
--server-zone {{ zones[0] }}
--manager-token {{ manager_token }}
--registration-token {{ registration_token }}
--redis-password {{ redis_password }}
--user-password {{ user_password }}
--admin-password {{ admin_password }}
{{ '--no-db-ssl ' if not database_ssl }}

View file

@ -4,12 +4,6 @@
host: "{{ db_ip }}"
timeout: 60
- name: Check connection from web to redis on db server
wait_for:
port: 6379
host: "{{ redis_ip }}"
timeout: 60
- name: Install web role
command: >
bash {{ tempdir.path }}/kasm_release/install.sh
@ -18,13 +12,11 @@
--proxy-port {{ proxy_port }}
--db-hostname {{ db_ip }}
--db-password {{ database_password }}
--redis-password {{ redis_password }}
--api-hostname {{ target_ip }}
--database-user {{ database_user }}
--database-name {{ database_name }}
--db-port {{ database_port }}
--server-zone {{ group_names[0] }}
--redis-hostname {{ redis_ip }}
{{ '--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 }}

View file

@ -81,7 +81,6 @@
docker images kasmweb/kasm-guac-private -q
docker images kasmweb/proxy -q
docker images kasmweb/proxy-private -q
docker images redis -q
docker images postgres -q
docker images kasmweb/rdp-gateway -q
docker images kasmweb/rdp-gateway-private -q