August 2019
Beginner
608 pages
16h 7m
English
The first declaration in this file is which role the instance will play in our infrastructure:
# Enable Redisredis['enable'] = true
Again, all other functions are disabled:
# Disable all other services sidekiq['enable'] = false gitlab_workhorse['enable'] = false unicorn['enable'] = false postgresql['enable'] = false nginx['enable'] = false prometheus['enable'] = false alertmanager['enable'] = false pgbouncer_exporter['enable'] = false gitlab_monitor['enable'] = false gitaly['enable'] = false
In this part, we also check the role of the Redis node, which is passed through by Terraform to Ansible via the dynamic inventory:
# Check the role of the redis server {% if hostvars[inventory_hostname].role == "master" ...Read now
Unlock full access