Hello community,

here is the log from the commit of package puppet.5688 for openSUSE:13.2:Update 
checked in at 2016-10-12 07:46:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:13.2:Update/puppet.5688 (Old)
 and      /work/SRC/openSUSE:13.2:Update/.puppet.5688.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "puppet.5688"

Changes:
--------
New Changes file:

--- /dev/null   2016-09-15 12:42:18.240042505 +0200
+++ /work/SRC/openSUSE:13.2:Update/.puppet.5688.new/puppet.changes      
2016-10-12 07:46:21.000000000 +0200
@@ -0,0 +1,624 @@
+-------------------------------------------------------------------
+Thu Sep 29 15:46:04 UTC 2016 - [email protected]
+
+- Replace the greps with %fillup-only macros to update the sysconfig
+  files properly [bsc#995975]
+
+-------------------------------------------------------------------
+Mon Apr 11 15:27:22 UTC 2016 - [email protected]
+
+- add puppet-3.8.5-non_ASCII_user_comment.patch to fix non-ASCII
+  user comment with ruby >= 2.1 [bnc#971223]
+
+-------------------------------------------------------------------
+Tue Feb 16 10:15:57 UTC 2016 - [email protected]
+
+- update to 3.8.5:
+  * release notes:
+    http://docs.puppetlabs.com/puppet/3.8/reference/release_notes.html
+  * remove puppet-3.7.1-undef-res-param.patch
+  * replace puppet-3.7.1-systemd_default_service_provider.patch by
+    puppet-3.8.5-systemd_default_service_provider.patch
+ 
+-------------------------------------------------------------------
+Wed Feb  3 17:53:42 UTC 2016 - [email protected]
+
+- add puppet-3.7.1-undef-res-param.patch to fix problem with passing
+  explicit undef res parameter [bsc#951553]
+
+-------------------------------------------------------------------
+Mon Jun  1 09:47:10 UTC 2015 - [email protected]
+
+- add puppet-3.7.1-systemd_default_service_provider.patch to make 
+  systemd the default service provider for openSUSE >= 12 and
+  SLES 12 [bnc#927946]
+
+-------------------------------------------------------------------
+Sat Sep 27 06:31:18 UTC 2014 - [email protected]
+
+- Also create user/group when only installing the puppet client
+
+-------------------------------------------------------------------
+Wed Sep 24 15:23:25 UTC 2014 - [email protected]
+
+- Updated systemd coding style 
+
+-------------------------------------------------------------------
+Thu Sep 18 17:32:47 UTC 2014 - [email protected]
+
+- Fix packaging for SLE_11
+
+-------------------------------------------------------------------
+Tue Sep 16 19:59:22 UTC 2014 - [email protected]
+
+- Update to 3.7.1
+  * PUP-3222: Windows service provider references a non-existent class
+  * PUP-3190: “each” no longer supported in Puppet 3.7.0
+  * PUP-3191: Symlinks to missing targets cause a File Not Found error
+    instead of a warning
+  * PUP-3231: Specifying –tags doesn’t cause suitability check to be
+    skipped for skipped resources
+  * PUP-894: Too easy to hit “CRL not yet valid for <host>” 
+    (and not very informative)
+  * PUP-1680: “incorrect header check” using Ruby 2
+  * PUP-3177: Resource titles ending with square brackets fail
+  * PUP-3174: After enabling directory environments the manifestdir
+    setting is still required to be valid
+  * PUP-3162: Block $environment in directory based environment
+    configuration settings
+  * PUP-3186: Puppetmaster removes /etc/puppet/environments/production
+    if it’s a link rather than a directory
+
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    
https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=11854
+
+-------------------------------------------------------------------
+Fri Sep  5 16:57:18 UTC 2014 - [email protected]
+
+- Update to 3.7.0 
+  * A nearly-final implementation of the Puppet 4 language
+  * Preview support for a new, fast, natively compiled Facter
+  * 64-bit Puppet packages for Windows
+  * Lots of deprecations to prepare for Puppet 4.0
+
+  See release notes for update information:
+    https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html
+
+  For a full list of bugs fixes see:
+    https://tickets.puppetlabs.com/issues/?filter=12643
+
+-------------------------------------------------------------------
+Sun Aug  3 08:19:53 UTC 2014 - [email protected]
+
+- Add Supplements: packageand(vim,puppet), in order to trigger automatic
+  installation for users of both packages. Suggested by dimstar
+
+-------------------------------------------------------------------
+Sat Jul 26 18:36:00 UTC 2014 - [email protected]
+
+- Split the vim syntax files to separate subpackage, puppet-vim
+
+-------------------------------------------------------------------
+Wed Jun 11 13:06:50 UTC 2014 - [email protected]
+
+- Update to 3.6.2
+  Security Fixes
+  * CVE-2014-3248
+    (Arbitrary Code Execution with Required Social Engineering)
+  * CVE-2014-3253
+    (Apache 2.4+ does not enforce CRL checks by default)
+  * [PUP-2635] - user purge_ssh_keys not purged
+  * [PUP-2639] - Increase environment_timeout default.
+  * [PUP-2650] - 3.6.1 issues "warning" message for deprecation
+  * [PUP-2659] - Puppet stops working with error 'Attempted to pop,
+     but already at root of the context stack.'
+  * [PUP-2660] - purging ssh_authorized_key fails because of missing user value
+  * [PUP-2689] - A node can't always collect its own exported resources
+  * [PUP-2692] - Puppet master passenger processes keep growing
+  * [PUP-2705] - Regression with external facts pluginsync not preserving
+     executable bit
+
+-------------------------------------------------------------------
+Tue May 27 12:03:10 UTC 2014 - [email protected]
+
+- Puppet 3.6.1 is a bug fix release in the Puppet 3.6 series.
+  It also makes the transaction_uuid more reliably available to extensions. 
+
+-------------------------------------------------------------------
+Wed May 21 20:30:00 UTC 2014 - [email protected]
+
+- Update to 3.6.0
+  Bug Fixes
+  * [PUP-530] - Installer for Puppet 3 does not check for hiera
+  * [PUP-748] - PR (2067): Zypper provider install options - darix
+  * [PUP-1041] - PR (2385) naginator not parsing blank parameters
+  * [PUP-1114] - Deprecate environment configuration in puppet.conf
+  * [PUP-1332] - "puppet resource service" fails on Ubuntu
+  * [PUP-1547] - PR (2311) Undefined method `groups' for nil:NilClass
+  * [PUP-1552] - V2.0 API reports Not Authorized as a "RUNTIME_ERROR"
+  * [PUP-1585] - PR (2342) cron resources with target specified generate
+    duplicate entries
+  * [PUP-1586] - PR (2331) Cron Type sanity check for the command parameter
+     is broken
+  * [PUP-1624] - PR (2342) Cron handles crontab's equality of target
+    and user strangely
+  * [PUP-1749] - Puppet module tool does not work on Solaris
+  * [PUP-1751] - PR (2383): Suse chkconfig --check boot.<service> always
+    returns 1 whether the service is enabled/disabled. - m4ce
+
+  Improvement
+  * [PUP-485] - Add assert_type functions for type checks
+  * [PUP-620] - (PR 2429) Add install_options to gem provider
+  * [PUP-740] - Validator
+  * [PUP-1174] - PR (2247) Ability to purge .ssh/authorized_keys
+  * [PUP-1596] - Make modulepath, manifest, and config_version configurable
+    per-environment
+  * [PUP-1699] - Cache environments
+  * [PUP-1769] - PR (2414) yum provider to support install_options
+  * [PUP-1799] - New Function API
+
+  For a full list of fixes and improvemtnts see:
+  
https://tickets.puppetlabs.com/secure/ReleaseNote.jspa?projectId=10102&version=11200
+- removed puppet-3.3.1-systemd-units.patch
+
+-------------------------------------------------------------------
+Wed May 21 19:06:40 UTC 2014 - [email protected]
+
+- Set proper ownership permission on /var/{lib,log}/puppet
+  directories. 
+
+-------------------------------------------------------------------
+Fri Apr 25 12:45:03 UTC 2014 - [email protected]
+
+-Version update: 3.5.1 is a backward-compatible features and fixes release in 
the Puppet 3 series. It fixes the problems that 3.5.0 caused with dynamic 
environments and the yumrepo provider, as well as a couple of smaller bugs. 
+
+-------------------------------------------------------------------
+Thu Apr 10 07:33:04 CEST 2014 - [email protected]
+
+- display update message about systemd service rename only when relevant
+
+-------------------------------------------------------------------
+Wed Apr  9 15:01:54 CEST 2014 - [email protected]
+
+- update to puppet 3.5.0, see
+  * http://docs.puppetlabs.com/puppet/3/reference/release_notes.html
+  * http://docs.puppetlabs.com/puppet/latest/reference/release_notes.html
+- replaced puppet-3.3.1-systemd-units.patch with 
puppet-3.5.0-systemd-units.patch
+  * adopted to the latest version
+- drooped puppet-2.6.6-yumconf.diff
+  * doesn't apply anymore and upstream reworked yum module quite extensively
+  * AFAIK we don't use yum anywhere
+- require facter > 1.6.0 as upstream does
+
+-------------------------------------------------------------------
+Mon Apr  7 10:57:44 CEST 2014 - [email protected]
++++ 427 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:13.2:Update/.puppet.5688.new/puppet.changes

New:
----
  puppet-3.8.5-non_ASCII_user_comment.patch
  puppet-3.8.5-systemd_default_service_provider.patch
  puppet-3.8.5.tar.gz
  puppet.changelog
  puppet.changes
  puppet.fw
  puppet.spec
  puppetmaster.fw

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ puppet.spec ++++++
#
# spec file for package puppet
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


# backward compatible requirement SLE...
%{?!_initddir:%define _initddir %_initrddir}

%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services

Name:           puppet
Version:        3.8.5
Release:        0
Summary:        A network tool for managing many disparate systems
License:        Apache-2.0
Group:          Productivity/Networking/System
Url:            http://puppetlabs.com/puppet/what-is-puppet/
Source:         http://downloads.puppetlabs.com/puppet/%{name}-%{version}.tar.gz
Source1:        puppetmaster.fw
Source2:        puppet.fw
Source7:        puppet.changelog
# PATCH-FIX-UPSTREAM bnc#927946 [email protected] -- enable systemd as a 
default service provider
Patch:          puppet-3.8.5-systemd_default_service_provider.patch
# PATCH-FIX-UPSTREAM bnc#971223 [email protected] -- fix non-ASCII user 
comment with ruby >= 2.1
Patch1:         puppet-3.8.5-non_ASCII_user_comment.patch
Obsoletes:      hiera-puppet < 1.0.0
Provides:       hiera-puppet >= 1.0.0
Requires:       facter >= 1.7.0
Requires:       ruby >= 1.8.7
Requires:       rubygem-hiera >= 1.0.0
Requires:       rubygem-ruby-shadow >= 2.1.4
BuildRequires:  facter >= 1.7.0
BuildRequires:  fdupes
BuildRequires:  ruby >= 1.8.7
BuildRequires:  rubygem-hiera >= 1.0.0
# not really required but we do not wanna own their folders
BuildRequires:  emacs-nox
BuildRequires:  vim

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  /usr/sbin/groupadd
Requires(pre):  /usr/sbin/useradd
Requires(pre):  %fillup_prereq
%if 0%{?suse_version} >= 1210
BuildRequires:  systemd
%{?systemd_requires}
%define has_systemd 1
%endif

%define         _unitdir /usr/lib/systemd

%description
Puppet lets you centrally manage every important aspect of your system
using a cross-platform specification language that manages all the
separate elements normally aggregated in different files, like users,
cron jobs, and hosts, along with obviously discrete elements like
packages, services, and files.

%package server
Summary:        A network tool for managing many disparate systems
Group:          Productivity/Networking/System
%if 0%{?suse_version} > 1210
%{?systemd_requires}
%endif

%description server
Puppet lets you centrally manage every important aspect of your system
using a cross-platform specification language that manages all the
separate elements normally aggregated in different files, like users,
cron jobs, and hosts, along with obviously discrete elements like
packages, services, and files.

%package vim
Summary:        Vim syntax files for Puppet manifests
Group:          Productivity/Text/Editors
Requires:       vim
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
Supplements:    packageand(vim:%{name})
%{!?vim_data_dir:%global vim_data_dir /usr/share/vim/%(readlink 
/usr/share/vim/current)}

%description vim
Vim ftdetect and syntax files for Puppet manifests

%prep
%setup -q
cp %{S:7} ChangeLog
%patch -p1
%patch1 -p1

%build

%install
ruby install.rb install --destdir=%{buildroot} 
--sitelibdir=%{_libdir}/ruby/vendor_ruby/%{rb_ver}
mkdir -p %{buildroot}%{_sysconfdir}/puppet
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}%{_localstatedir}/lib/puppet
mkdir -p %{buildroot}%{_localstatedir}/log/puppet
mkdir -p %{buildroot}/%{_fwdefdir}
mkdir -p %{buildroot}%{_unitdir}/system
install -m0644 ext/redhat/puppet.conf 
%{buildroot}%{_sysconfdir}/puppet/puppet.conf
install -m0644 conf/auth.conf %{buildroot}%{_sysconfdir}/puppet/auth.conf
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
cp ext/redhat/client.sysconfig 
%{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.puppet
cp ext/redhat/server.sysconfig 
%{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.puppetmaster
#
%if 0%{?has_systemd}
ln -sf service %{buildroot}/%{_sbindir}/rcpuppet
ln -sf service %{buildroot}/%{_sbindir}/rcpuppetmaster
%else
mkdir -p %{buildroot}%_initddir
install -m0755 ext/suse/client.init %{buildroot}/%_initddir/puppet
install -m0755 ext/suse/server.init %{buildroot}/%_initddir/puppetmaster
ln -sf %_initddir/puppet %{buildroot}/%{_sbindir}/rcpuppet
ln -sf %_initddir/puppetmaster %{buildroot}/%{_sbindir}/rcpuppetmaster
%endif
#
install -m 644 %{SOURCE1} %{buildroot}/%{_fwdefdir}/puppetmasterd
install -m 644 %{SOURCE2} %{buildroot}/%{_fwdefdir}/puppet
# Latest git calls the service for agent puppet again
install -m 644 ext/systemd/puppet.service  
%{buildroot}%{_unitdir}/system/puppet.service
install -m 644 ext/systemd/puppetmaster.service 
%{buildroot}%{_unitdir}/system/puppetmaster.service
%fdupes -s %{buildroot}/%{_mandir}

# puppet ext/ data
install -d -m0755 %{buildroot}%{_datadir}/%{name}
install -d -m0755 %{buildroot}%{_datadir}/%{name}/ext

# be specific, we don't need/want the OS specific stuff
for ii in \
    autotest \
    cert_inspector \
    dbfix.sql \
    envpuppet \
    ldap \
    logcheck \
    nagios \
    puppetlisten \
    puppet-load.rb \
    puppet-test \
    pure_ruby_dsl \
    rack \
    regexp_nodes \
    upload_facts.rb \
    yaml_nodes.rb 
do
    cp -a ext/$ii %{buildroot}%{_datadir}/%{name}/ext
done

# Install vim syntax files
install -Dp -m0644 ext/vim/ftdetect/puppet.vim 
%{buildroot}%{vim_data_dir}/ftdetect/puppet.vim
install -Dp -m0644 ext/vim/syntax/puppet.vim 
%{buildroot}%{vim_data_dir}/syntax/puppet.vim

# Install emacs mode files
emacsdir=%{buildroot}%{_datadir}/emacs/site-lisp
install -Dp -m0644 ext/emacs/puppet-mode.el $emacsdir/puppet-mode.el
install -Dp -m0644 ext/emacs/puppet-mode-init.el \
    $emacsdir/site-start.d/puppet-mode-init.el

%pretrans server
if [ -x /usr/bin/puppet ] && [ "`/usr/bin/puppet --version | grep '^3.3.1'`" ]; 
then
    echo old > /run/puppet_migrate
fi

%pre server
getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet

%if 0%{?has_systemd}
%service_add_pre puppetmaster.service
%endif

%pre
getent group puppet >/dev/null || /usr/sbin/groupadd -r puppet
getent passwd puppet >/dev/null || /usr/sbin/useradd -r -g puppet -d 
/var/lib/puppet -s /bin/false -c "Puppet daemon" puppet
%if 0%{?has_systemd}
%service_add_pre puppet.service
%endif

%preun
%if 0%{?has_systemd}
%service_del_preun puppet.service
%endif

%if 0%{?suse_version} == 1110
%stop_on_removal %{name}
%endif

%postun
%if 0%{?has_systemd}
%service_del_postun puppet.service
%endif

%if 0%{?suse_version} == 1110
%insserv_cleanup
%endif

%post
%if 0%{?has_systemd}
%service_add_post puppet.service
%endif
%fillup_only -n puppet

%preun server
%if 0%{?has_systemd}
%service_del_preun puppetmaster.service
%endif

%if 0%{?suse_version} == 1110
%stop_on_removal %{name}
%endif

%postun server
%if 0%{?has_systemd}
%service_del_postun puppetmaster.service
%endif

%if 0%{?suse_version} == 1110
%insserv_cleanup
%endif

%post server
%if 0%{?has_systemd}
%service_add_post puppetmaster.service
%endif
%fillup_only -n puppetmaster

if [ -f /run/puppet_migrate ]; then
cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} << EOF
Warning: If you used puppet on openSUSE/SLE before be aware, that service is now
Warning: called puppemaster instead of puppetmasterd. This was done to comply
Warning: with upstream naming of the service and hopefully with everybody else
EOF
rm -f /run/puppet_migrate
fi

%files
%defattr(-,root,root,-)
%doc LICENSE README.* ChangeLog
%{_bindir}/puppet
%{_bindir}/extlookup2hiera
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppet/
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/hiera/
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/hiera_puppet.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppet.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/semver.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppetx.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/puppetx/
%dir %{_sysconfdir}/puppet
%attr(0750,%{name},%{name}) %dir %{_localstatedir}/lib/puppet
%attr(0750,%{name},%{name}) %dir %{_localstatedir}/log/puppet
# emacs-mode files
%{_datadir}/emacs/site-lisp/puppet-mode.el
# emacs by default does not own it so we must own it...
%dir %{_datadir}/emacs/site-lisp/site-start.d
%{_datadir}/emacs/site-lisp/site-start.d/puppet-mode-init.el
# puppet extensions
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ext
%{_datadir}/%{name}/ext/autotest
%{_datadir}/%{name}/ext/cert_inspector
%{_datadir}/%{name}/ext/dbfix.sql
%{_datadir}/%{name}/ext/envpuppet
%{_datadir}/%{name}/ext/ldap
%{_datadir}/%{name}/ext/logcheck
%{_datadir}/%{name}/ext/nagios
%{_datadir}/%{name}/ext/puppetlisten
%{_datadir}/%{name}/ext/puppet-load.rb
%{_datadir}/%{name}/ext/puppet-test
%{_datadir}/%{name}/ext/pure_ruby_dsl
%{_datadir}/%{name}/ext/rack
%{_datadir}/%{name}/ext/regexp_nodes
%{_datadir}/%{name}/ext/upload_facts.rb
%{_datadir}/%{name}/ext/yaml_nodes.rb
#
%config %{_sysconfdir}/puppet/puppet.conf
%config %{_sysconfdir}/puppet/auth.conf
%{_mandir}/man?/*
%{_sbindir}/rcpuppet
%config %{_fwdefdir}/puppet
%{_unitdir}/system/puppet.service
%if 0%{?suse_version} == 1110
%_initddir/puppet
%dir /usr/lib/systemd
%dir /usr/lib/systemd/system
%endif
%{_localstatedir}/adm/fillup-templates/sysconfig.puppet

%files server
%defattr(-, root, root, 0755)
%dir %attr(755,root,root)
%{_sbindir}/rcpuppetmaster
%config %{_fwdefdir}/puppetmasterd
%{_unitdir}/system/puppetmaster.service
%if 0%{?suse_version} == 1110
%_initddir/puppetmaster
%dir /usr/lib/systemd
%dir /usr/lib/systemd/system
%endif
%{_localstatedir}/adm/fillup-templates/sysconfig.puppetmaster

%files vim
%defattr(-, root, root)
%dir %{vim_data_dir}/ftdetect
%{vim_data_dir}/ftdetect/puppet.vim
%{vim_data_dir}/syntax/puppet.vim

%changelog
++++++ puppet-3.8.5-non_ASCII_user_comment.patch ++++++
>From 302369f4c335ffb87983506dcac6679de22878cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Barboiron?= <[email protected]>
Date: Thu, 28 May 2015 14:30:05 +0200
Subject: [PATCH] (PUP-4633) fix non-ASCII user comment with ruby >= 2.1

---
 lib/puppet/type/user.rb     |  6 ++++--
 spec/unit/type/user_spec.rb | 21 ++++++++++++++-------
 2 files changed, 18 insertions(+), 9 deletions(-)

Index: puppet-3.8.5/lib/puppet/type/user.rb
===================================================================
--- puppet-3.8.5.orig/lib/puppet/type/user.rb
+++ puppet-3.8.5/lib/puppet/type/user.rb
@@ -167,8 +167,10 @@ module Puppet
 
     newproperty(:comment) do
       desc "A description of the user.  Generally the user's full name."
-      munge do |v|
-        v.respond_to?(:force_encoding) ? 
v.force_encoding(Encoding::ASCII_8BIT) : v
+      if RUBY_VERSION < "2.1.0"
+        munge do |v|
+          v.respond_to?(:force_encoding) ? 
v.force_encoding(Encoding::ASCII_8BIT) : v
+        end
       end
     end
 
Index: puppet-3.8.5/spec/unit/type/user_spec.rb
===================================================================
--- puppet-3.8.5.orig/spec/unit/type/user_spec.rb
+++ puppet-3.8.5/spec/unit/type/user_spec.rb
@@ -344,13 +344,20 @@ describe Puppet::Type.type(:user) do
     end
   end
 
-  describe "when managing comment on Ruby 1.9", :if => 
String.method_defined?(:encode) do
-    it "should force value encoding to ASCII-8BIT" do
-      value = 'abcd™'
-      value.encoding.should == Encoding::UTF_8
-      user = described_class.new(:name => 'foo', :comment => value)
-      user[:comment].encoding.should == Encoding::ASCII_8BIT
-      user[:comment].should == value.force_encoding(Encoding::ASCII_8BIT)
+  describe "when managing comment" do
+    before :each do
+      @value = 'abcd™'
+      expect(@value.encoding).to eq(Encoding::UTF_8)
+      @user = described_class.new(:name => 'foo', :comment => @value)
+    end
+
+    it "should be converted to ASCII_8BIT for ruby 1.9 / 2.0", :if => 
RUBY_VERSION < "2.1.0" && String.method_defined?(:encode) do
+      expect(@user[:comment].encoding).to eq(Encoding::ASCII_8BIT)
+      expect(@user[:comment]).to 
eq(@value.force_encoding(Encoding::ASCII_8BIT))
+    end
+
+    it "must not be converted for ruby >= 2.1", :if => RUBY_VERSION >= "2.1.0" 
do
+      expect(@user[:comment].encoding).to eq(Encoding::UTF_8)
     end
   end
 
++++++ puppet-3.8.5-systemd_default_service_provider.patch ++++++
>From bdd0dfdda47032a269b42a53c864fe91856eaedd Mon Sep 17 00:00:00 2001
From: Rob Braden <[email protected]>
Date: Wed, 24 Sep 2014 11:41:51 -0700
Subject: [PATCH] (pup-3338) Make systemd the default service provider for SLES
 12

OpenSuSE >= 12 and SLES 12 use systemd as the default service management 
framework. This
updates puppet to use the systemd provider by default on OpenSuSE 12 and 13 and
SLES 12
---
 lib/puppet/provider/service/systemd.rb     |  1 +
 spec/unit/provider/service/systemd_spec.rb | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

Index: puppet-3.8.5/lib/puppet/provider/service/systemd.rb
===================================================================
--- puppet-3.8.5.orig/lib/puppet/provider/service/systemd.rb
+++ puppet-3.8.5/lib/puppet/provider/service/systemd.rb
@@ -8,6 +8,7 @@ Puppet::Type.type(:service).provide :sys
   defaultfor :osfamily => [:archlinux]
   defaultfor :osfamily => :redhat, :operatingsystemmajrelease => "7"
   defaultfor :osfamily => :redhat, :operatingsystem => :fedora, 
:operatingsystemmajrelease => ["17", "18", "19", "20", "21"]
+  defaultfor :osfamily => :suse, :operatingsystemmajrelease => ["12", "13"]
 
   def self.instances
     i = []
Index: puppet-3.8.5/spec/unit/provider/service/systemd_spec.rb
===================================================================
--- puppet-3.8.5.orig/spec/unit/provider/service/systemd_spec.rb
+++ puppet-3.8.5/spec/unit/provider/service/systemd_spec.rb
@@ -52,6 +52,24 @@ describe Puppet::Type.type(:service).pro
     end
   end
 
+  it "should be the default provider on sles12" do
+    Facter.expects(:value).with(:osfamily).at_least_once.returns(:suse)
+    Facter.expects(:value).with(:operatingsystemmajrelease).returns("12")
+    described_class.default?.should be_true
+  end
+
+  it "should be the default provider on opensuse13" do
+    Facter.expects(:value).with(:osfamily).at_least_once.returns(:suse)
+    Facter.expects(:value).with(:operatingsystemmajrelease).returns("13")
+    described_class.default?.should be_true
+  end
+
+  it "should not be the default provider on sles11" do
+    Facter.expects(:value).with(:osfamily).at_least_once.returns(:suse)
+    Facter.expects(:value).with(:operatingsystemmajrelease).returns("11")
+    described_class.default?.should_not be_true
+  end
+
   [:enabled?, :enable, :disable, :start, :stop, :status, :restart].each do 
|method|
     it "should have a #{method} method" do
       provider.should respond_to(method)
++++++ puppet.changelog ++++++
++++ 150400 lines (skipped)

++++++ puppet.fw ++++++
## Name: Puppet
## Description: Retrieve the client configuration from the central puppet 
server and apply it to the local host.

# space separated list of allowed TCP ports
TCP="8139"

++++++ puppetmaster.fw ++++++
## Name: Puppet
## Description: The central puppet server. Functions as a certificate authority 
by default.

# space separated list of allowed TCP ports
TCP="8140"


Reply via email to