Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template docker/etc/sysconfig/docker.erb:
- Filepath: /etc/puppet/environments/production/modules/docker/templates/etc/sysconfig/docker.erb
- Line: 9
- Detail: undefined method `each' for nil:NilClass
- at /etc/puppet/environments/production/modules/docker/manifests/config.pp:7 on node puppet.***.local
- Warning: Not using cache on failed catalog
- Error: Could not retrieve catalog; skipping run
- ===Line 7:===
- class docker::config {
- file { '/etc/sysconfig/docker':
- ensure => present,
- force => true,
- content => template("${module_name}/etc/sysconfig/docker.erb"),
- }
- ===erb template: =====
- # /etc/sysconfig/docker
- # This file is managed by Puppet and local changes may be overwritten
- # Modify these options if you want to change the way the docker daemon runs
- OPTIONS='<% -%>
- <% if @selinux_enabled %> --selinux-enabled=<%= @selinux_enabled -%><% end -%>
- <% if @bind_to %> -H <%= @bind_to -%><% end -%>
- <% if @log_level %> -l <%= @log_level -%><% end -%>
- <% if @dns %><% @dns_array.each do |address| %> --dns <%= address -%><% end %><% end -%> #!!! here is line 9!!!
- <% if @dns_search %><% @dns_search.each do |domain| %> --dns-search <%= domain -%><% end %><% end -%>
- <% if @extra_parameters %><% @extra_parameters_array.each do |param| %> <%= param -%><% end %><% end -%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement