Example of configuration file

This section shows example of configuration used for GIS.lab master provision, see related sections virtual and physical installation.

The name of file determines machine name for master. In the case of virtual mode, the name of file should be gislab_vagrant or other when more master virtual machines are provisioned. In physical mode, the name of file will be probably more generic <name-of-gislab-unit>, eg. gislab-my-organization. The file must be placed in system/host_vars directory located in GIS.lab code tree. See Configuration section for details.

Let’s see practical example of configuration with some changes related to GIS.lab network and client keyboards.

GISLAB_ADMIN_FIRST_NAME: Ludmila
GISLAB_ADMIN_SURNAME: Furtkevicova
GISLAB_ADMIN_EMAIL: ludmilafurtkevicov@gmail.com

GISLAB_NETWORK: 192.168.50
GISLAB_TIMEZONE: Europe/Rome
GISLAB_DNS_SERVERS:
 - 10.234.10.10
 - 8.8.8.8

GISLAB_CLIENT_ARCHITECTURE: amd64
GISLAB_CLIENT_LANGUAGES:
 - en
 - sk
 - it

GISLAB_CLIENT_KEYBOARDS:
  - layout: en
    variant: qwerty
  - layout: sk
    variant: qwerty
  - layout: it
    variant: qwerty

GISLAB_CLIENT_OWS_WORKER_MIN_MEMORY: 4000

Variables GISLAB_NETWORK and GISLAB_CLIENT_KEYBOARDS in gislab_vagrant file will be different. Results after the successful installation for both cases is demonstrated in Fig. 31.

file gislab_vagrant 'A'                        file gislab_vagrant 'B'
-----------------------                        -----------------------
GISLAB_NETWORK: 192.168.50                     GISLAB_NETWORK: 192.168.30

GISLAB_CLIENT_KEYBOARDS:                       GISLAB_CLIENT_KEYBOARDS:
- layout: sk                                   - layout: it
  variant: qwerty                                variant: qwerty
../_images/config_virtual.png

Fig. 31 Two different results using different Vagrant configuration file.

Fourth number of server’s IP address will always be 5. In our case client’s IP address terminates with 50. For left case of Fig. 31 these addresses would look like 192.168.50.5 and 192.168.50.50, for right case 192.168.30.5 and 192.168.30.50

Note

note This information is useful in manual GIS.lab server selection using HTTP boot when server’s IP address is required.