anchor.diff:  export PATH=/opt/puppet/bin:$PATH
   <% end -%>
   %if 0%{?_with_systemd}
  -# Always reload the .service files if using systemd, in case they have changed.
  -/usr/bin/systemctl daemon-reload
  +%if 0%{?fedora} || 0%{?rhel}
  +%systemd_post %{name}.service
  +%else
  +%if 0%{?suse_version}
  +%service_add_post %{name}.service
  +%endif
  +%endif
   %else
   # If this is an install (as opposed to an upgrade)...
   if [ "$1" = "1" ]; then
  
positive.code: %endif
  <% end -%>
  
  # Fedora 17 and later and EL > 7 use systemd
  %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
  %global _with_systemd 1
  %else
  %global _with_systemd 0
  
negative.code: if [ -f "<%= @install_dir %>/start_service_after_upgrade" ] ; then
     rm <%= @install_dir %>/start_service_after_upgrade
  fi
  # Add PuppetDB user
  getent group %{name} > /dev/null || groupadd -r %{name}
  getent passwd %{name} > /dev/null || \
  