From e5aaed31ac7e213936c2ce68660e86e7bf42b5b5 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Tue, 7 Jul 2015 21:40:21 +0200 Subject: [PATCH] Esteso ansible-pull.sh per gestire anche branch e playbook, comunque a default. --- roles/pxe/templates/ks/ansible-pull.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/pxe/templates/ks/ansible-pull.sh b/roles/pxe/templates/ks/ansible-pull.sh index af52e1c..d4531cd 100644 --- a/roles/pxe/templates/ks/ansible-pull.sh +++ b/roles/pxe/templates/ks/ansible-pull.sh @@ -1,9 +1,13 @@ #!/bin/bash -url=https://github.com/syntaxerrormmm/pulltest.git +# Script provvisorio. +# Potremmo decidere di far eseguire uno script generato da servizio +# domainhelper contenente anche l'eventuale branch da usare. + +url=git://{{ serverfqdn }}/client-pull-installation.git repo=/var/lib/{{ domainfull }}/config logfile=/var/lib/ansible-pull.log +branch=master +playbook=local.yml -export https_proxy=https://{{ serverip }}:3128 -ansible-pull -d "${repo}" -U "${url}" -unset https_proxy +ansible-pull -d "${repo}" -U "${url}" -C "${branch}" "${playbook}"