Add roles dir in system-config to roles path

This doesn't exist yet, but is coming in the needed-by patch. Add the
roles dir in system-config to the roles path.

Change-Id: If05f02e856598403d7f94edf5e6e52c5fa69e8e6
Needed-By: https://review.openstack.org/590753
This commit is contained in:
Monty Taylor 2018-08-10 07:08:24 -05:00
parent 2fa5458994
commit 54ed0aa7a1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -16,13 +16,15 @@ end
def setup_host(host)
add_platform_foss_defaults(host, 'unix')
host.ssh_permit_user_environment()
host.add_env_var(
'ANSIBLE_ROLES_PATH', "#{ENV['HOME']}/src/#{SYSTEM_CONFIG}/roles")
if ENV['PUPPET_VERSION'] == '4'
host.ssh_permit_user_environment()
host.add_env_var('PATH', '/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin/:/opt/puppetlabs/bin')
# The SSH connection needs to be closed in order to refresh the SSH environment changes.
# It will reopen the next time a host action starts.
host.close
end
# The SSH connection needs to be closed in order to refresh the SSH environment changes.
# It will reopen the next time a host action starts.
host.close
end
def install_system_config(host)