AutolabJS/AutolabJS

View on GitHub
deploy/plays/templates/load_balancer/nodes_data_conf.json.j2

Summary

Maintainability
Test Coverage
{
  "Nodes": [
   {% for enode in executionnodes %}
 {
         "role": "execution_node",
         "hostname": "{{ hostvars[enode]['ansible_host'] }}",
         "port": "{{ hostvars[enode]['en_port'] }}"
   {% if loop.index != loop.length %}
    },
   {% else %}
    }
   {% endif %}
   {% endfor %}
  ],
  "server_info": {
    "role": "main_server",
    "hostname": "{{ ms_hostname }}",
    "port" : "{{ ms_port }}"
  },
  "database" :
  {
    "role": "database",
    "host"     : "{{ db_hostname }}",
    "user"    : "root",
    "password" : "{{ mysql_root_pass }}",
    "database" : "AutolabJS"
  },
  "gitlab": {
    "role": "gitlab",
    "hostname": "{{ gitlab_hostname }}",
    "port": "{{ gitlab_port }}"
  },
  "load_balancer": {
    "role": "load_balancer",
    "hostname": "{{ lb_hostname }}",
    "port": "{{ lb_port }}",
    "maxLogLength": "{{ max_eval_log_size }}"
  }
}