Add a note to generated systemd proxy files #278

Merged
merged 1 commit into from May 2, 2017

Conversation

Projects
None yet
3 participants
Member

wupeka commented May 1, 2017

Add a comment in juju proxy systemd config file on how to enable systemd to use it.

LGTM with a suggestion for a slightly different phrasing.

proxy/proxy.go
@@ -92,7 +92,10 @@ func (s *Settings) AsEnvironmentValues() []string {
// DefaultEnvironment="http_proxy=...." "HTTP_PROXY=..." ...
func (s *Settings) AsSystemdDefaultEnv() string {
lines := s.AsEnvironmentValues()
- rv := `[Manager]
+ rv := `# To make juju control global systemd proxy settings create
@rogpeppe

rogpeppe May 2, 2017

Owner

I'm finding this a bit hard to parse.

Perhaps:

# To allow juju to control the global systemd proxy settings,
# create symbolic links to this file from within /etc/systemd/system.conf.d/
# and /etc/systemd/users.conf.d/.

?

Member

wupeka commented May 2, 2017

$$merge$$

Contributor

jujubot commented May 2, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-utils

Contributor

jujubot commented May 2, 2017

Member

wupeka commented May 2, 2017

$$merge$$

Contributor

jujubot commented May 2, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-utils

@jujubot jujubot merged commit b16611e into juju:master May 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment