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
This commit is contained in:
James E. Blair 2019-03-18 07:22:14 -07:00
parent 96641b0edb
commit 5e9a106e6d
2 changed files with 8 additions and 0 deletions

View File

@ -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':

View File

@ -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 -%>