#cloud-config write_files: - path: "/etc/systemd/system.conf.d/10-default-env.conf" content: | [Manager] DefaultEnvironment=HTTP_PROXY=http://www-proxy.us.oracle.com:80 - path: "/etc/profile.env" content: | export HTTP_PROXY=http://www-proxy.us.oracle.com:80
However, this http proxy configuration doesnot work for etcd, systemd-timesyncd, update-engine
#cloud-config coreos: etcd2: discovery-proxy: http://www-proxy.us.oracle.com:80
#cloud-config write_files: - path: /etc/systemd/timesyncd.conf content: | [Time] NTP=ntp1.example.com ntp2.example.com