openstack-ansible-lxc_hosts/templates/systemd-proxy-unit.conf.j2
Logan V 89625e66b0 Configure proxy settings for machined
The machined pull does not utilize the lxc_cache_environment
variable to configure its environment, so it will not use proxies.

This fixes machined to properly configure its environment so pulls
can operate through proxies.

Based on https://wbl.krm.io/howto-proxify-systemd-machined/

Change-Id: I17c452a8ba67561435737ee9d672219a2e306489
2017-04-22 00:57:27 +00:00

7 lines
140 B
Django/Jinja

# {{ ansible_managed }}
[Service]
{% for key, value in lxc_cache_environment.iteritems() %}
Environment={{ key }}={{ value }}
{% endfor %}