File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 348348# [*storage_pool_autoextend_percent*]
349349# Extend the pool by specified percentage when threshold is hit.
350350#
351+ # [*tmp_dir_config*]
352+ # Whether to set the TMPDIR value in the systemd config file
353+ # Default: true (set the value); false will comment out the line.
354+ # Note: false is backwards compatible prior to PR #58
355+ #
356+ # [*tmp_dir*]
357+ # Sets the tmp dir for Docker (path)
358+ #
351359class docker (
352360 $version = $docker::params::version,
353361 $ensure = $docker::params::ensure,
401409 $service_enable = $docker::params::service_enable,
402410 $manage_service = $docker::params::manage_service,
403411 $root_dir = $docker::params::root_dir,
412+ $tmp_dir_config = $docker::params::tmp_dir_config,
404413 $tmp_dir = $docker::params::tmp_dir,
405414 $manage_kernel = $docker::params::manage_kernel,
406415 $dns = $docker::params::dns,
Original file line number Diff line number Diff line change 4343 $service_enable = true
4444 $manage_service = true
4545 $root_dir = undef
46+ $tmp_dir_config = true
4647 $tmp_dir = ' /tmp/'
4748 $dns = undef
4849 $dns_search = undef
Original file line number Diff line number Diff line change 7878 $dm_loopmetadatasize = $docker::dm_loopmetadatasize,
7979 $dm_datadev = $docker::dm_datadev,
8080 $dm_metadatadev = $docker::dm_metadatadev,
81+ $tmp_dir_config = $docker::tmp_dir_config,
8182 $tmp_dir = $docker::tmp_dir,
8283 $nowarn_kernel = $docker::nowarn_kernel,
8384 $dm_thinpooldev = $docker::dm_thinpooldev,
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ OPTIONS="<% if @root_dir %> -g <%= @root_dir %><% end -%>
2929 https_proxy='<%= @proxy %> '<% end %>
3030<% if @no_proxy %> no_proxy='<%= @no_proxy %> '<% end %>
3131# This is also a handy place to tweak where Docker's temporary files go.
32- TMPDIR="<%= @tmp_dir %> "
32+ <% if @tmp_dir_config %> TMPDIR="<%= @tmp_dir %> "<% else %> # TMPDIR=" <%= @tmp_dir %> " <% end %>
3333<% if @shell_values %> <% @shell_values_array.each do |param| %> <%= param %> <% end %> <% end -%>
You can’t perform that action at this time.
0 commit comments