Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module should have option to manage DOCKER_HOST environment variable #103

Closed
mlehner616 opened this issue Sep 15, 2014 · 2 comments
Closed

Comments

@mlehner616
Copy link

When specifying a tcp_bind, in order for this to actually be usable the DOCKER_HOST environment variable needs to be populated with the tcp_bind value:

Proposed solution:

if $tcp_bind {
  file { '/etc/profile.d/docker-host.sh': 
    ensure  => file,
    content => "export DOCKER_HOST=${tcp_bind}"
  }
}
@garethr
Copy link
Owner

garethr commented Sep 27, 2014

I think the correct way of setting this is in https://github.com/garethr/garethr-docker/blob/master/templates/etc/default/docker.erb, rather than doing something at the profile level. I'd definitely be open to a pull request for this, good idea.

@garethr
Copy link
Owner

garethr commented Jan 2, 2015

As of #171 you can now pass an array of shell values to the module, which should support this usecase.

@garethr garethr closed this as completed Jan 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants