Advertisement
shaggycat

Untitled

Sep 27th, 2015
2,831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 1.39 KB | None | 0 0
  1. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template docker/etc/sysconfig/docker.erb:
  2.   Filepath: /etc/puppet/environments/production/modules/docker/templates/etc/sysconfig/docker.erb
  3.   Line: 9
  4.   Detail: undefined method `each' for nil:NilClass
  5.  at /etc/puppet/environments/production/modules/docker/manifests/config.pp:7 on node puppet.***.local
  6. Warning: Not using cache on failed catalog
  7. Error: Could not retrieve catalog; skipping run
  8.  
  9.  
  10. ===Line 7:===
  11.  
  12. class docker::config {
  13.   file { '/etc/sysconfig/docker':
  14.     ensure  => present,
  15.     force   => true,
  16.     content => template("${module_name}/etc/sysconfig/docker.erb"),
  17.   }
  18.  
  19. ===erb template: =====
  20.  
  21.  
  22. # /etc/sysconfig/docker
  23. # This file is managed by Puppet and local changes may be overwritten
  24.  
  25. # Modify these options if you want to change the way the docker daemon runs
  26. OPTIONS='<% -%>
  27. <% if @selinux_enabled %> --selinux-enabled=<%= @selinux_enabled -%><% end -%>
  28. <% if @bind_to %> -H <%= @bind_to -%><% end -%>
  29. <% if @log_level %> -l <%= @log_level -%><% end -%>
  30. <% if @dns %><% @dns_array.each do |address| %> --dns <%= address -%><% end %><% end -%> #!!! here is line 9!!!
  31. <% if @dns_search %><% @dns_search.each do |domain| %> --dns-search <%= domain -%><% end %><% end -%>
  32. <% if @extra_parameters %><% @extra_parameters_array.each do |param| %> <%= param -%><% end %><% end -%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement