From 5e9a106e6d2804624da3b982727b7190fc5b8002 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 18 Mar 2019 07:22:14 -0700 Subject: [PATCH] Update executor ansible on installation There are two deployment options for the new multi-ansible support: the executor can install Ansible on startup (the default), or we can pre-install ansible when we install Zuul, so that it's ready for the next executor restart. This change implements the latter. Change-Id: I0c75724b4376f68128590eaabdd8a10ed63dcda0 --- manifests/executor.pp | 7 +++++++ templates/zuulv3.conf.erb | 1 + 2 files changed, 8 insertions(+) diff --git a/manifests/executor.pp b/manifests/executor.pp index 8a52d6f..cf28659 100644 --- a/manifests/executor.pp +++ b/manifests/executor.pp @@ -40,6 +40,13 @@ class zuul::executor ( } } + exec { 'zuul_manage_ansible': + command => 'zuul-manage-ansible', + path => '/usr/local/bin:/usr/bin:/bin/', + subscribe => Exec['install_zuul'], + refreshonly => true, + } + include ::pip::python3 exec { 'install-ara-safely': diff --git a/templates/zuulv3.conf.erb b/templates/zuulv3.conf.erb index 9b0ac28..2b998ec 100644 --- a/templates/zuulv3.conf.erb +++ b/templates/zuulv3.conf.erb @@ -56,6 +56,7 @@ git_user_name=<%= @git_name %> <% end -%> [executor] +manage_ansible=false log_config=/etc/zuul/executor-logging.conf job_dir=/var/lib/zuul/builds <% if @site_variables_yaml_file != nil -%>