1+ ##################
2+ # Host inventory #
3+ ##################
4+ all:
5+ children:
6+ # First zone
7+ # Optionally modify names to reference zone location IE east
8+ zone1:
9+ children:
10+ # The datbase can only be defined once, if initializing a remote database omit this host
11+ # It will always be named zone1_db_1 if used, regardless of zone name modifications
12+ zone1_db:
13+ hosts:
14+ zone1_db_1:
15+ ansible_host: zone1_db_hostname
16+ ansible_port: 22
17+ ansible_ssh_user: ubuntu
18+ ansible_ssh_private_key_file: ~/.ssh/id_rsa
19+ zone1_web:
20+ hosts:
21+ zone1_web_1:
22+ ansible_host: zone1_web_hostname
23+ ansible_port: 22
24+ ansible_ssh_user: ubuntu
25+ ansible_ssh_private_key_file: ~/.ssh/id_rsa
26+ zone1_agent:
27+ hosts:
28+ zone1_agent_1:
29+ ansible_host: zone1_agent_hostname
30+ ansible_port: 22
31+ ansible_ssh_user: ubuntu
32+ ansible_ssh_private_key_file: ~/.ssh/id_rsa
33+ zone1_guac:
34+ hosts:
35+ zone1_guac_1:
36+ ansible_host: zone1_guac_hostname
37+ ansible_port: 22
38+ ansible_ssh_user: ubuntu
39+ ansible_ssh_private_key_file: ~/.ssh/id_rsa
40+ # Optional Web Proxy server
41+ #zone1_proxy:
42+ #hosts:
43+ #zone1_proxy_1:
44+ #ansible_host: zone1_proxy_hostname
45+ #ansible_port: 22
46+ #ansible_ssh_user: ubuntu
47+ #ansible_ssh_private_key_file: ~/.ssh/id_rsa
48+ # Second zone
49+ # Optionally modify names to reference zone location IE west
50+ #zone2:
51+ #children:
52+ #zone2_web:
53+ #hosts:
54+ #zone2_web_1:
55+ #ansible_host: zone2_web_hostname
56+ #ansible_port: 22
57+ #ansible_ssh_user: ubuntu
58+ #ansible_ssh_private_key_file: ~/.ssh/id_rsa
59+ #zone2_agent:
60+ #hosts:
61+ #zone2_agent_1:
62+ #ansible_host: zone2_agent_hostname
63+ #ansible_port: 22
64+ #ansible_ssh_user: ubuntu
65+ #ansible_ssh_private_key_file: ~/.ssh/id_rsa
66+ #zone2_guac:
67+ #hosts:
68+ #zone2_guac_1:
69+ #ansible_host: zone2_guac_hostname
70+ #ansible_port: 22
71+ #ansible_ssh_user: ubuntu
72+ #ansible_ssh_private_key_file: ~/.ssh/id_rsa
73+ # Optional Web Proxy server
74+ #zone2_proxy:
75+ #hosts:
76+ #zone2_proxy_1:
77+ #ansible_host: zone2_proxy_hostname
78+ #ansible_port: 22
79+ #ansible_ssh_user: ubuntu
80+ #ansible_ssh_private_key_file: ~/.ssh/id_rsa
81+ ##############################
82+ # Installation configuration #
83+ ##############################
84+ vars:
85+
86+ ## Credentials ##
87+ # If left commented secure passwords will be generated during the installation and substituted in upon completion
88+ #user_password: {{ user_password }}
89+ #admin_password: {{ admin_password }}
90+ #database_password: {{ database_password }}
91+ #redis_password: {{ redis_password }}
92+ #manager_token: {{ manager_token }}
93+ #registration_token: {{ registration_token }}
94+
95+ ## Scaling Configuration ##
96+ # Stick scaled agents/guacs/proxys to a default web server
97+ # IE when set to 1 all additional hosts in that zone will use zone1_web_1 as their webserver
98+ # Set to false to scale out as a linked group IE zone1_web_1/zone1_agent_1/zone1_guac_1/zone1_proxy_1
99+ default_web: 1
100+
101+ ## Zone configuration ##
102+ # Define multiple zones here if defined in inventory above
103+ zones:
104+ - zone1
105+ #- zone2
106+
107+ ## General settings ##
108+ proxy_port: 443
109+ start_docker_on_boot: true
110+ desired_swap_size: 5g # Default agent swap size for all agents
111+
112+ ## PostgreSQL settings ##
113+ ##############################################
114+ # PostgreSQL remote DB connection parameters #
115+ ##############################################
116+ # The following parameters need to be set only once on database initialization
117+ init_remote_db: false # swap to true to activate
118+ #database_master_user: postgres
119+ #database_master_password: changeme
120+ database_hostname: false # swap to a string to activate
121+ # The remaining variables can be modified to suite your needs or left as is in a normal deployment
122+ database_user: kasmapp
123+ database_name: kasm
124+ database_port: 5432
125+ database_ssl: true
126+
127+ ## redis settings ##
128+ # redis connection parameters if hostname is set the web role will use a remote redis server
129+ redis_hostname: false
130+
131+ ## Database Backup settings ##
132+ # These settings will only work when zone1_db_1 is set in host inventory, this does not support remote database type installations
133+ # Directory where backups are placed on db server
134+ remote_backup_dir: /srv/backup/kasm/
135+ # Number of days that logs backups are retained on db host
136+ retention_days: 10
137+ # If this is uncommented, backups will be copied from remote server to the local ansible host
138+ #local_backup_dir: backup/
139+
140+ # Number of seconds to wait for system to come up after reboot
141+ # Change this if you have a system that normally takes a long time to boot
142+ reboot_timeout_seconds: 600
0 commit comments