ansible/hg-web: convert hgrc to a template; r=sheehan
authorGregory Szorc <gps@mozilla.com>
Mon, 05 Nov 2018 20:28:58 +0000
changeset 6702 1bde25a5751ba97e560c1bcdefcefe558e3c18c9
parent 6701 da1f0340faca261387c2e2f0eae08acb04a01c55
child 6703 5545fedd9bd8f760ac67b9d97b18c88ef4e4da5c
push id3314
push usergszorc@mozilla.com
push dateMon, 05 Nov 2018 20:41:14 +0000
treeherderversion-control-tools@ff5e66697be9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssheehan
ansible/hg-web: convert hgrc to a template; r=sheehan This will be needed for some upcoming magic around static file serving. Differential Revision: https://phabricator.services.mozilla.com/D10784
ansible/roles/hg-web/files/hgrc
ansible/roles/hg-web/tasks/main.yml
ansible/roles/hg-web/templates/hgrc.j2
--- a/ansible/roles/hg-web/tasks/main.yml
+++ b/ansible/roles/hg-web/tasks/main.yml
@@ -261,17 +261,21 @@
     - { venv: venv_tools, path: hghooks, pth: mozhghooks }
     - { venv: venv_replication, path: pylib/mozhg, pth: mozhg }
     - { venv: venv_tools, path: pylib/mozhg, pth: mozhg }
     - { venv: venv_replication, path: hgserver/hgmolib, pth: hgmolib }
 
 # Settings from this file are inherited by every hg command run on the
 # system.
 - name: install global hgrc
-  copy: src=hgrc dest=/etc/mercurial/hgrc mode=0644 owner=root group=root
+  template: src=hgrc.j2
+            dest=/etc/mercurial/hgrc
+            mode=0644
+            owner=root
+            group=root
 
 - name: install fastannotate hgrc recipe
   copy: src=hgrc-fastannotate
         dest=/etc/mercurial/hgrc-fastannotate
         mode=0644
         owner=root
         group=root
 
rename from ansible/roles/hg-web/files/hgrc
rename to ansible/roles/hg-web/templates/hgrc.j2