anchor.diff:  name=<%=@dist%>-<%=@release%>-<%=@arch%>-updates
   mirrorlist=<%=mirrorlist_updates%>
   failovermethod=priority
  +<% end %>
   
   # Puppetlabs Products
   [puppetlabs-products-<%=@dist%>-<%=@release%>-<%=@arch%>]
  
positive.code: # **********************************
  <%
    # Set up internal variables for fedora and centos mirrors, which vary greatly in format.
    if @dist == "fedora"
      tag = "fc"
      prefix = "f"
  
negative.code:   end
  %>
  
  <%
    if @dist == "sles" && @arch == "i386"
      t_arch = 'i586'
    else
      t_arch = @arch
    end
  %>
  
  config_opts['root'] = '<%=@name%>'
  config_opts['target_arch'] = '<%=t_arch%>'
  config_opts['legal_host_arches'] = (<%= if @arch =~ /i\d86/ then "'i386', 'i586', 'i686', 'x86_64'" else "'x86_64'" end %>)
  <% if @dist == "el" and @release == "7" %>
  config_opts['chroot_setup_cmd'] = 'install @buildsys-build redhat-release-everything systemd'
  <% elsif @dist == "sles" %>
  config_opts['chroot_setup_cmd'] = 'install pwdutils aaa_base autoconf bash buildsys-macros coreutils findutils gawk glibc glibc-devel glibc-locale sles-release rpm rpm-build make bzip2 gzip make patch tar cpio gcc gcc-c++ gnupg sed unzip util-linux'
  <% else %>
  config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
  <% end %>
  config_opts['dist'] = '<%=@dist%>'  # only useful for --resultdir variable subst
  config_opts['macros']['%_host_vendor'] = '<%=@vendor%>'
  
  <% if @dist == "sles" %>
  config_opts['plugin_conf']['ccache_enable'] = True
  config_opts['macros']['%vendor'] = '<%=@vendor%>'
  config_opts['macros']['%dist'] = '.<%=@dist%><%=@release%>'
  config_opts['useradd'] = '/usr/sbin/useradd -o -m -u %(uid)s -g %(gid)s -d %(home)s mockbuild '
  <% end %>
  
  <% if @dist == "el" %>
  config_opts['macros']['%rhel'] = '<%=@release%>'
  