---
- name: continuous-deployment-ocis-individual-services-latest
  server:
    server_type: cx31
    image: ubuntu-20.04
    location: nbg1
    initial_ssh_key_names:
      - owncloud-ocis@drone.owncloud.com
    labels:
      owner: wkloucek
      for: oCIS-continuous-deployment-examples
    rebuild: $REBUILD
    rebuild_carry_paths:
      - /var/lib/docker/volumes/ocis_certs

  domains:
    - "*.ocis-individual-services.latest.owncloud.works"

  vars:
    ssh_authorized_keys:
      - https://github.com/butonic.keys
      - https://github.com/C0rby.keys
      - https://github.com/fschade.keys
      - https://github.com/kulmann.keys
      - https://github.com/micbar.keys
      - https://github.com/wkloucek.keys
    docker_compose_projects:
      - name: ocis
        git_url: https://github.com/owncloud/ocis.git
        ref: master
        docker_compose_path: deployments/examples/ocis_individual_services
        env:
          INSECURE: "false"
          TRAEFIK_ACME_MAIL: wkloucek@owncloud.com
          OCIS_DOCKER_TAG: latest
          OCIS_SCALE: 6
          OCIS_DOMAIN: ocis.ocis-individual-services.latest.owncloud.works
          DEMO_USERS: "true"
          COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
          IDP_LDAP_BIND_PASSWORD: "elirwlketrwe53453rt"
          STORAGE_LDAP_BIND_PASSWORD: "ekrwelkjrtlkwertjlkertkert3423"
          OCIS_JWT_SECRET: "kdfjlkertlk234534534589345"
          OCIS_MACHINE_AUTH_API_KEY: "rekwelkrjttwer534534-5"
          SYSTEM_USER_API_KEY: "ekrjwelrtj235345345g,mdfglk.ert"
          IDM_SVC_PASSWORD: "kljrhewrlkj3479734534t"
          IDM_REVASVC_PASSWORD: "lklkjhuihir2342839i90o4dsadsd"
          IDM_IDPSVC_PASSWORD: "jrhekr3453458734tkjert"
          OCIS_SYSTEM_USER_ID: "d9d0f4d1-fe3c-457e-92e3-e18b3b366bbe"
          SYSTEM_USER_ID: "3693ecf8-4164-4879-bdf3-ea3425df3c6e"
          ADMIN_USER_ID: "09246a85-682a-4cd5-996d-8e8d2aca50af"
          ADMIN_USER_PASSWORD: "admin"
          PROXY_ENABLE_BASIC_AUTH: "true"
      - name: monitoring
        git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
        ref: master
        env:
          NETWORK_NAME: ocis-net
          TELEMETRY_SERVE_DOMAIN: telemetry.ocis-individual-services.latest.owncloud.works
          JAEGER_COLLECTOR: jaeger-collector.infra.owncloud.works:443
          TELEGRAF_SPECIFIC_CONFIG: ocis_individual_services
          OCIS_URL: ocis.ocis-individual-services.latest.owncloud.works
          OCIS_DEPLOYMENT_ID: continuous-deployment-ocis-individual-services-latest
