DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (002cae39b87d)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
---
- name: prepare local files for deployment
  hosts: localhost
  gather_facts: no
  tasks:
    - name: produce mozvcssync Python wheel
      command: '{{ vct | mandatory }}/venv/vcssync/bin/pip wheel --no-deps -w {{ vct }}/venv/wheelhouse {{ vct }}/vcssync/'
    - name: produce mozautomation Python wheel
      command: '{{ vct | mandatory }}/venv/vcssync/bin/pip wheel --no-deps -w {{ vct }}/venv/wheelhouse {{ vct }}/pylib/mozautomation/'

- name: deploy vcs syncing service
  hosts: servovcssync
  user: centos
  become: true

  pre_tasks:
    - name: import vcs-sync secrets
      shell: cat /opt/secrets/vcssync/vars.yml
      register: secrets

    # Ansible's variable interpolation behavior is crazy and this ugly redundancy
    # parsing the YAML is the only way gps could get this to work.
    - name: set fact with secrets
      set_fact:
        pulse_userid: "{{ (secrets.stdout | from_yaml).pulse_userid | mandatory }}"
        pulse_password: "{{ (secrets.stdout | from_yaml).pulse_password | mandatory }}"
        servo_github_token: "{{ (secrets.stdout | from_yaml).servo_github_token | mandatory }}"
        servo_github_email: "{{ (secrets.stdout | from_yaml) .servo_github_email | mandatory }}"
        servo_github_name: "{{ (secrets.stdout | from_yaml) .servo_github_name | mandatory }}"
        servo_github_ssh_key: "{{ (secrets.stdout | from_yaml).servo_github_ssh_key | mandatory }}"
        servo_hgmo_ssh_key: "{{ (secrets.stdout | from_yaml).servo_hgmo_ssh_key | mandatory }}"
        servo_hgmo_ssh_user: "{{ (secrets.stdout | from_yaml).servo_hgmo_ssh_user | mandatory }}"

  roles:
    - common
    - { role: journald-cloudwatch, journald_cloudwatch_group: /vcssync }
    - vcs-sync