diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-05 11:57:19 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-05 13:23:58 +0300 |
commit | 5b296c0be8158e973fa1b916542f20ddff8b6c9b (patch) | |
tree | 7a482e15b730f1fe7cb393de045868cf886af4ba /_support/terraform/roles/gitaly/tasks/main.yml | |
parent | 54ca71696b00e80613f3b7c2ac50e967fa706045 (diff) |
terraform: Create Ansible playbook to roll out configuration
Right now, our Terraform scripts only handle creation of machines in
GCP, but not their respective configuration. As it's a task we're doing
rather frequently which takes some time, this commit creates an Ansible
playbook which automates this task.
On creation of the cluster, our scripts now automatically generate a
`hosts.ini` file containing all necessary connection information. With
this file, the admin may now run `./configure-demo-cluster`, which will
invoke Ansible and automatically generate and apply configuration for
each of the nodes, restarting services as required. The task can be run
repeatedly in order to update configuration on the target nodes.
Diffstat (limited to '_support/terraform/roles/gitaly/tasks/main.yml')
-rw-r--r-- | _support/terraform/roles/gitaly/tasks/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_support/terraform/roles/gitaly/tasks/main.yml b/_support/terraform/roles/gitaly/tasks/main.yml new file mode 100644 index 000000000..d5c47eea1 --- /dev/null +++ b/_support/terraform/roles/gitaly/tasks/main.yml @@ -0,0 +1,7 @@ +- name: /etc/gitlab/gitlab.rb + template: + src: gitaly-gitlab.rb.j2 + dest: /etc/gitlab/gitlab.rb + notify: + - gitlab-ctl reconfigure + - gitlab-ctl restart |