From c8576380c2a49a7d0feccd49ce8a5ea8066170ff Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Tue, 14 Apr 2015 09:36:15 +0200 Subject: [PATCH] Fix download location for install_puppet.sh get_url does not create folders on its own, thus downloading the install_puppet.sh file to /tmp --- roles/bootstrap_puppet_infra_nodes/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/bootstrap_puppet_infra_nodes/tasks/main.yml b/roles/bootstrap_puppet_infra_nodes/tasks/main.yml index 6b5bb7f..134b206 100644 --- a/roles/bootstrap_puppet_infra_nodes/tasks/main.yml +++ b/roles/bootstrap_puppet_infra_nodes/tasks/main.yml @@ -5,15 +5,18 @@ # Download install_puppet.sh from system-config - get_url: url=https://git.openstack.org/cgit/openstack-infra/system-config/plain/install_puppet.sh - dest=/tmp/infra-ansible/install_puppet.sh + dest=/tmp/install_puppet.sh # Install puppet -- command: bash /tmp/infra-ansible/install_puppet.sh +- command: bash -x /tmp/install_puppet.sh tags: install_puppet # Deploy puppet.conf template - template: src=puppet.conf.j2 dest=/etc/puppet/puppet.conf +# Set puppet service running +- service: name=puppet enabled=yes state=started + # Run puppet agent to request certificate - command: puppet agent --test ignore_errors: True