[csw-devel] SF.net SVN: gar:[13775] csw/mgar/pkg/puppet/trunk

phipsy at users.sourceforge.net phipsy at users.sourceforge.net
Sun Mar 13 21:29:47 CET 2011


Revision: 13775
          http://gar.svn.sourceforge.net/gar/?rev=13775&view=rev
Author:   phipsy
Date:     2011-03-13 20:29:47 +0000 (Sun, 13 Mar 2011)

Log Message:
-----------
Cut of puppet 2.6.6 before release

Modified Paths:
--------------
    csw/mgar/pkg/puppet/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/puppet/trunk/files/README.CSW
    csw/mgar/pkg/puppet/trunk/files/puppet.conf.example-CSW

Modified: csw/mgar/pkg/puppet/trunk/Makefile
===================================================================
--- csw/mgar/pkg/puppet/trunk/Makefile	2011-03-13 20:09:46 UTC (rev 13774)
+++ csw/mgar/pkg/puppet/trunk/Makefile	2011-03-13 20:29:47 UTC (rev 13775)
@@ -29,6 +29,8 @@
 # pkgutil.rb is from https://github.com/gw42/puppet/blob/tickets%2Fmaster%2F4258-dev/lib/puppet/provider/package/pkgutil.rb
 # Dom Cleal of RedHat has advised this is a good working version
 DISTFILES += pkgutil.rb
+DISTFILES += README.CSW
+DISTFILES += puppet.conf.example-CSW
 SPKG_SOURCEURL = http://puppetlabs.com/
 
 INITSMF += $(sysconfdir)/init\.d/cswpuppetd
@@ -65,9 +67,6 @@
 TEST_SCRIPTS      =
 INSTALL_SCRIPTS   = puppet
 
-# Not required. As soon as I've confirmed the downloaded version works well, I'll cut this fromt he Makefile.
-# PATCHFILES  = 0001-pkgutil-support.patch
-# PATCHFILES += 0002-Using-the-single-option-of-pkgutil.patch
 PATCHFILES = 0003-Use-opt-csw-share-puppet-modules-as-default.patch
 # https://projects.puppetlabs.com/issues/6324
 PATCHFILES += 0004-patch-to-smf-provider-6324.patch
@@ -76,18 +75,26 @@
 CHECKPKG_OVERRIDES_CSWpuppet       += missing-dependency|CSWpython
 CHECKPKG_OVERRIDES_CSWpuppetmaster += surplus-dependency|CSWpuppet
 
-# CRONDIR = $(sysconfdir)/pkg/CSWpuppet/crontabs
-# CRONTABS = $(CRONDIR)/root
 CHECKPKG_OVERRIDES_CSWpuppet += init-file-missing-cswinitsmf-class|/etc/opt/csw/init.d/cswpuppetd|class=none
 CHECKPKG_OVERRIDES_CSWpuppetmaster += surplus-dependency|CSWruby
 # Puppet has hardcoded paths to look at for many OSes, many of which involve
 # /usr/share and /usr/local.
 CHECKPKG_OVERRIDES_CSWpuppet += file-with-bad-content
 
+# These two files are quite deliberate - without them users will not get
+# CSW behaviour. The README explains
+CHECKPKG_OVERRIDES_CSWpuppet += bad-location-of-file|file=/etc/puppet
+CHECKPKG_OVERRIDES_CSWpuppet += bad-location-of-file|file=/etc/puppet/README.CSW
+CHECKPKG_OVERRIDES_CSWpuppet += bad-location-of-file|file=/etc/puppet/puppet.conf.example-CSW
+
+
 include gar/category.mk
 
 install-puppet:
 	ginstall -m 755 -d $(DESTDIR)
+	ginstall -m 755 -d $(DESTDIR)/etc/puppet
+	ginstall -m 644 $(FILEDIR)/README.CSW $(DESTDIR)/etc/puppet/README.CSW
+	ginstall -m 644 $(FILEDIR)/puppet.conf.example-CSW $(DESTDIR)/etc/puppet/puppet.conf.example-CSW
 	ginstall -m 755 -d $(DESTDIR)$(sysconfdir)/puppet
 	ginstall -m 755 -d $(DESTDIR)$(localstatedir)/puppet/run
 	ginstall -m 755 -d $(DESTDIR)$(sysconfdir)/init.d
@@ -108,6 +115,8 @@
 	        chmod 644 $(DESTDIR)$(sysconfdir)/puppet/$$f.example; \
 	    fi; \
 	done)
+	mv $(DESTDIR)$(sysconfdir)/puppet/auth.conf $(DESTDIR)$(sysconfdir)/puppet/auth.conf.example
+	ginstall -m 644 $(FILEDIR)/puppet.conf.example-CSW $(DESTDIR)$(sysconfdir)/puppet/puppet.conf.example
 	ginstall -d -m 755 $(DESTDIR)$(sysconfdir)/pkg/puppet
 	ginstall -m 644 $(FILEDIR)/cswusergroup \
 		$(DESTDIR)$(sysconfdir)/pkg/puppet/cswusergroup

Added: csw/mgar/pkg/puppet/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/puppet/trunk/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/puppet/trunk/files/README.CSW	2011-03-13 20:29:47 UTC (rev 13775)
@@ -0,0 +1,14 @@
+README.CSW
+
+Puppet will insist on /etc/puppet and /var/lib/puppet being directories, it's
+no good making them symlinks, Puppet will just change them to actual
+directories - this does not fit with the OpenCSW paths, so in /etc/puppet you
+will find an example skeleton puppet.conf that is designed to make the product
+confirm to our paths. To use the daemon with CSW paths, put the puppet.conf
+examples in /etc/puppet and /etc/opt/csw/puppet into place and start the
+daemon.
+
+Naturally you're free to discard the examples and use the product's own
+preferred paths. If no puppet.conf is present in /etc/puppet this is how the
+program will behave.
+

Added: csw/mgar/pkg/puppet/trunk/files/puppet.conf.example-CSW
===================================================================
--- csw/mgar/pkg/puppet/trunk/files/puppet.conf.example-CSW	                        (rev 0)
+++ csw/mgar/pkg/puppet/trunk/files/puppet.conf.example-CSW	2011-03-13 20:29:47 UTC (rev 13775)
@@ -0,0 +1,9 @@
+# puppet.conf
+#
+# points puppet at OpenCSW default paths
+
+[main]
+    confdir = /etc/opt/csw/puppet
+    config = $confdir/puppet.conf
+    vardir = /var/opt/csw/puppet
+    ssldir = $vardir/ssl


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list