ansible: add /etc/mercurial/hgrc to Ansible control on hgssh
authorGregory Szorc <gps@mozilla.com>
Mon, 18 May 2015 11:03:27 -0700
changeset 360800 934bfd06a2b849c71af9ffcf2ad27ddc49e3cf02
parent 360799 df623616c0857ee1556bcb86b7495a5f5e928715
child 360801 61514e29364121373abb12b4731ee25781dcaad0
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
ansible: add /etc/mercurial/hgrc to Ansible control on hgssh Puppet was recently changed to not manage this file. The Puppet template hasn't changed since the file was imported into Ansible. So this is pretty straightforward. The hg-ssh role isn't yet ready to be used on hgssh1. In time...
ansible/deploy-hgmo-extensions.yml
--- a/ansible/deploy-hgmo-extensions.yml
+++ b/ansible/deploy-hgmo-extensions.yml
@@ -1,26 +1,35 @@
 ---
-- hosts:
-    - hgssh1.dmz.scl3.mozilla.com
-    - hgweb-prod
+- hosts: hgssh1.dmz.scl3.mozilla.com
   tasks:
     - name: notify IRC of deployment
       irc: server=irc.mozilla.org
            port=6697
            use_ssl=true
            channel="#vcs"
            nick=hg-deploy-bot
            color=red
            msg="Starting deploy of hooks and extensions to hg.mozilla.org"
       delegate_to: 127.0.0.1
       run_once: true
 
+- hosts:
+  - hgssh1.dmz.scl3.mozilla.com
+  - hgweb-prod
+
+  tasks:
     - include: tasks/hgmo-extensions.yml
 
+- hosts: hgssh1.dmz.scl3.mozilla.com
+  tasks:
+    # TODO we should integrate the hg-ssh role.
+    - name: install global hgrc
+      copy: src=roles/hg-ssh/files/hgrc dest=/etc/mercurial/hgrc mode=0644 owner=root group=root
+
     - name: notify IRC of deployment
       irc: server=irc.mozilla.org
            port=6697
            use_ssl=true
            channel="#vcs"
            nick=hg-deploy-bot
            color=red
            msg="Finished deploy of hooks and extensions to hg.mozilla.org"