summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-04-17 08:52:38 +0200
committerLeif Johansson <leifj@sunet.se>2015-04-17 08:52:38 +0200
commitddc16e894133dc37dafb7a2aaa6ae023db9ffb13 (patch)
treef02b46ecf1252d51bd0b00c6a603fb547c4ddffb /global/overlay/etc/puppet
parent8a6e3d41723b3d212a49c895c31bd4d48febfd33 (diff)
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/docker_run.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/docker_run.pp b/global/overlay/etc/puppet/modules/sunet/manifests/docker_run.pp
index 2552644..4b56a03 100644
--- a/global/overlay/etc/puppet/modules/sunet/manifests/docker_run.pp
+++ b/global/overlay/etc/puppet/modules/sunet/manifests/docker_run.pp
@@ -7,7 +7,8 @@ define sunet::docker_run(
$env = [],
$net = 'bridge',
$extra_parameters = [],
- $command = ""
+ $command = "",
+ $hostname = undef,
) {
# Make container use unbound resolver on dockerhost
@@ -27,6 +28,7 @@ define sunet::docker_run(
'/etc/passwd:/etc/passwd:ro', # uid consistency
'/etc/group:/etc/group:ro', # gid consistency
]),
+ hostname => $hostname,
ports => $ports,
env => $env,
net => $net,