Commit b435cb2e authored by Petras, Randy's avatar Petras, Randy
Browse files

Update 3 files

- /main.tf
- /ansible/persistent-volume.yaml
- /.gitlab-ci.yml
parent 22bdbe92
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ apply:
          -v ${TF_ROOT}/ssh-key:/root/.ssh/id_rsa
          -v ${TF_ROOT}/ssh-key.pub:/root/.ssh/id_rsa.pub
          -v $PWD/ansible/:/ansible/playbooks/
          -v $PWD/terraform:/terraform
          -v $PWD:/terraform
          -e ANSIBLE_STDOUT_CALLBACK=default
          ${ANSIBLE_TERRAFORM_IMAGE}
          /bin/bash -c "chmod 600 /root/.ssh/id_rsa
+1 −1
Original line number Diff line number Diff line
---
- name: Configure storage
  hosts: all
  hosts: runner_node
  become: yes
  vars:
    ceph_storage_path: "/var/lib/docker"
+12 −0
Original line number Diff line number Diff line
@@ -73,3 +73,15 @@ module "drtsans_lfs_runners_blue" {
    echo "TODO: Add monitoring here!"
EOF
}

resource "ansible_host" "runner" {
    inventory_hostname = module.drtsans_lfs_runners_green.ip
    groups = ["runner_node"]
    vars = {
        ansible_user = var.ssh_username
        ansible_host = module.drtsans_lfs_runners_green.ip
        access_ip_v4 = module.drtsans_lfs_runners_green.ip
        access_ip    = module.drtsans_lfs_runners_green.ip
        ip           = module.drtsans_lfs_runners_green.ip
    }
}