Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Announcing Puppet REST API documentation

PATCH/puppet 1/1] Fixed #4364 - Reduced audit msg from info to debug
(29 lines)
PATCH/puppet 1/1] [#4344] Fix for failing templates when module name matches file in local dir.
(149 lines)
Jul 28, 2010
James Turnbull
James Turnbull
Puppet finally has some API docs thanks to the hard work of Matt
Robinson (*crowd goes wild*).  You can find the initial documentation at:

http://docs.puppetlabs.com/guides/rest_api.html

We'd really welcome input and feedback on them and what else you'd like
to see:

http://projects.puppetlabs.com/projects/puppet-docs

Thanks

James Turnbull







Reply
Tags: feedbackinput
Messages in this thread
Announcing Puppet REST API documentation
reply Re: Announcing Puppet REST API documentation
(20 lines) Jul 28, 2010 18:11
Similar Threads
PATCH/puppet 1/1] Fixes errant Trac references in documentation
Signed-off-by: James Turnbull <jam### @lovedthanlost.net>
---
 examples/modules/sample-module/README.txt          |    2 +-
 .../lib/puppet/parser/functions/hostname_to_dn.rb  |    2 +-
 ext/extlookup.rb                                   |    2 +-
 ext/regexp_nodes/regexp_nodes.rb                   |    2 +-
 lib/puppet/parser/functions/inline_template.rb     |    2 +-
 lib/puppet/provider/package/pkgdmg.rb              |    2 +-
 lib/puppet/reference/providers.rb                  |    2 +-
 lib/puppet/util/command_line/filebucket            |    2 +-
 lib/puppet/util/command_line/puppet                |    2 +-
 lib/puppet/util/command_line/puppetd               |    2 +-
 lib/puppet/util/command_line/puppetmasterd         |    2 +-
 lib/puppet/util/command_line/puppetqd              |    2 +-
 lib/puppet/util/command_line/ralsh                 |    2 +-
 man/man8/filebucket.8                              |    2 +-
 man/man8/puppet.8                                  |    2 +-
 man/man8/puppetd.8                                 |    2 +-
 man/man8/puppetmasterd.8                           |    2 +-
 man/man8/puppetqd.8                                |    2 +-
 man/man8/ralsh.8                                   |    2 +-
 19 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/examples/modules/sample-module/README.txt
b/examples/modules/sample-module/README.txt
index ee4b820..bdced62 100644
--- a/examples/modules/sample-module/README.txt
+++ b/examples/modules/sample-module/README.txt
@@ -13,5 +13,5 @@ Note the consistent naming of files for
Puppet::Util::Autoload
 
 Reference Documents:
 http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation
-http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+http://docs/puppetlabs.com/guides/custom_functions.html
 http://reductivelabs.com/trac/puppet/wiki/FunctionReference
diff --git
a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
index 34ab280..8c6fb3c 100644
---
a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
+++
b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
@@ -27,7 +27,7 @@
 
 # Jeff McCune <jeff.### @northstarlabs.net>
 # 2007-08-14
-# See: http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+# See: http://docs/puppetlabs.com/guides/custom_functions.html
 
 module Puppet::Parser::Functions
   newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given
'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
diff --git a/ext/extlookup.rb b/ext/extlookup.rb
index b72fc12..b732812 100644
--- a/ext/extlookup.rb
+++ b/ext/extlookup.rb
@@ -74,7 +74,7 @@
 # need to edit a load of manifests to do simple things like adjust a
desired version number.
 #
 # For more information on installing and writing your own custom
functions see:
-#    http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+#    http://docs/puppetlabs.com/guides/custom_functions.html
 #
 # For further help contact Volcane on #puppet
 require 'csv'
diff --git a/ext/regexp_nodes/regexp_nodes.rb
b/ext/regexp_nodes/regexp_nodes.rb
index e234985..e5a787e 100644
--- a/ext/regexp_nodes/regexp_nodes.rb
+++ b/ext/regexp_nodes/regexp_nodes.rb
@@ -2,7 +2,7 @@
 
 # = Synopsis
 # This is an external node classifier script, after
-# http://reductivelabs.com/trac/puppet/wiki/ExternalNodes
+# http://docs/puppetlabs.com/guides/external_nodes.html
 #
 # = Usage
 # regexp_nodes.rb <host>
diff --git a/lib/puppet/parser/functions/inline_template.rb
b/lib/puppet/parser/functions/inline_template.rb
index 11d980f..3aac51e 100644
--- a/lib/puppet/parser/functions/inline_template.rb
+++ b/lib/puppet/parser/functions/inline_template.rb
@@ -1,6 +1,6 @@
 Puppet::Parser::Functions::newfunction(:inline_template, :type =>
:rvalue, :doc =>
   "Evaluate a template string and return its value.  See `the templating
docs
-  </trac/puppet/wiki/PuppetTemplating>`_ for more information. 
Note that
+  <http://docs/puppetlabs.com/guides/templating.html>`_ for more
information.  Note that
   if multiple template strings are specified, their output is all
concatenated
   and returned as the output of the function.") do |vals|
     require 'erb'
diff --git a/lib/puppet/provider/package/pkgdmg.rb
b/lib/puppet/provider/package/pkgdmg.rb
index 4506fbf..39e377d 100644
--- a/lib/puppet/provider/package/pkgdmg.rb
+++ b/lib/puppet/provider/package/pkgdmg.rb
@@ -29,7 +29,7 @@ require 'puppet/provider/package'
 require 'facter/util/plist'
 
 Puppet::Type.type(:package).provide :pkgdmg, :parent =>
Puppet::Provider::Package do
-  desc "Package management based on Apple's Installer.app and
DiskUtility.app.  This package works by checking the contents of a DMG
image for Apple pkg or mpkg files. Any number of pkg or mpkg files may
exist in the root directory of the DMG file system. Sub directories are not
checked for packages.  See `the wiki docs
</trac/puppet/wiki/DmgPackages>` for more detail."
+  desc "Package management based on Apple's Installer.app and
DiskUtility.app.  This package works by checking the contents of a DMG
image for Apple pkg or mpkg files. Any number of pkg or mpkg files may
exist in the root directory of the DMG file system. Sub directories are not
checked for packages.  See `the wiki docs
<http://projects.puppetlabs.com/projec...Dmg_Patterns>`
for more detail."
 
   confine :operatingsystem => :darwin
   defaultfor :operatingsystem => :darwin
diff --git a/lib/puppet/reference/providers.rb
b/lib/puppet/reference/providers.rb
index a0f1063..bac536b 100644
--- a/lib/puppet/reference/providers.rb
+++ b/lib/puppet/reference/providers.rb
@@ -95,7 +95,7 @@ providers = Puppet::Util::Reference.newreference
:providers, :title => "Provider
 
     ret += h(type.name.to_s + "_", 2)
 
-    ret += ".. _#{type.name}:
#{"http://reductivelabs.com/trac/puppet/...ence##{type.name}"}\n\n"
+    ret += ".. _#{type.name}:
#{"http://docs/puppetlabs.com/references...html##{type.name}"}\n\n"
     ret += option("Default provider", default)
     ret += doctable(headers, table_data)
 
diff --git a/lib/puppet/util/command_line/filebucket
b/lib/puppet/util/command_line/filebucket
index ba9d8cd..f262818 100755
--- a/lib/puppet/util/command_line/filebucket
+++ b/lib/puppet/util/command_line/filebucket
@@ -53,7 +53,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppet
b/lib/puppet/util/command_line/puppet
index f65ef90..4952108 100755
--- a/lib/puppet/util/command_line/puppet
+++ b/lib/puppet/util/command_line/puppet
@@ -22,7 +22,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetd
b/lib/puppet/util/command_line/puppetd
index 3af2fda..e394734 100755
--- a/lib/puppet/util/command_line/puppetd
+++ b/lib/puppet/util/command_line/puppetd
@@ -69,7 +69,7 @@
 # parameter, so you can specify '--server <servername>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet agent
with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetmasterd
b/lib/puppet/util/command_line/puppetmasterd
index c58612c..4d94fef 100755
--- a/lib/puppet/util/command_line/puppetmasterd
+++ b/lib/puppet/util/command_line/puppetmasterd
@@ -21,7 +21,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppetmasterdd
with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetqd
b/lib/puppet/util/command_line/puppetqd
index 439db5c..78a940a 100755
--- a/lib/puppet/util/command_line/puppetqd
+++ b/lib/puppet/util/command_line/puppetqd
@@ -20,7 +20,7 @@
 # parameter, so you can specify '--server <servername>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppetd with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/ralsh
b/lib/puppet/util/command_line/ralsh
index b866ede..a89a1eb 100755
--- a/lib/puppet/util/command_line/ralsh
+++ b/lib/puppet/util/command_line/ralsh
@@ -34,7 +34,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs/puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/man/man8/filebucket.8 b/man/man8/filebucket.8
index de2dee7..2cfc82c 100644
--- a/man/man8/filebucket.8
+++ b/man/man8/filebucket.8
@@ -64,7 +64,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppet.8 b/man/man8/puppet.8
index 02176ce..d34711b 100644
--- a/man/man8/puppet.8
+++ b/man/man8/puppet.8
@@ -30,7 +30,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetd.8 b/man/man8/puppetd.8
index c2d5cb5..a913531 100644
--- a/man/man8/puppetd.8
+++ b/man/man8/puppetd.8
@@ -66,7 +66,7 @@ configuration parameter, so you can specify
\(aq\-\-server <servername>\(aq as
 an argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetd with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetmasterd.8 b/man/man8/puppetmasterd.8
index 5bfea2e..680e505 100644
--- a/man/man8/puppetmasterd.8
+++ b/man/man8/puppetmasterd.8
@@ -29,7 +29,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetmasterdd
 with \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetqd.8 b/man/man8/puppetqd.8
index bf08f2b..2da8b98 100644
--- a/man/man8/puppetqd.8
+++ b/man/man8/puppetqd.8
@@ -24,7 +24,7 @@ configuration parameter, so you can specify
\(aq\-\-server <servername>\(aq as
 an argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetd with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/ralsh.8 b/man/man8/ralsh.8
index 98892e0..8380b88 100644
--- a/man/man8/ralsh.8
+++ b/man/man8/ralsh.8
@@ -42,7 +42,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...onfiguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.






PATCH/puppet 1/1] Fixes errant Trac references in documentation
Signed-off-by: James Turnbull <jam### @lovedthanlost.net>
---
 examples/modules/sample-module/README.txt          |    2 +-
 .../lib/puppet/parser/functions/hostname_to_dn.rb  |    2 +-
 ext/extlookup.rb                                   |    2 +-
 ext/regexp_nodes/regexp_nodes.rb                   |    2 +-
 lib/puppet/parser/functions/inline_template.rb     |    2 +-
 .../provider/nameservice/directoryservice.rb       |    2 +-
 lib/puppet/provider/package/pkgdmg.rb              |    2 +-
 lib/puppet/reference/providers.rb                  |    2 +-
 lib/puppet/util/command_line/filebucket            |    2 +-
 lib/puppet/util/command_line/puppet                |    2 +-
 lib/puppet/util/command_line/puppetd               |    2 +-
 lib/puppet/util/command_line/puppetmasterd         |    2 +-
 lib/puppet/util/command_line/puppetqd              |    2 +-
 lib/puppet/util/command_line/ralsh                 |    2 +-
 man/man8/filebucket.8                              |    2 +-
 man/man8/puppet.8                                  |    2 +-
 man/man8/puppetd.8                                 |    2 +-
 man/man8/puppetmasterd.8                           |    2 +-
 man/man8/puppetqd.8                                |    2 +-
 man/man8/ralsh.8                                   |    2 +-
 20 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/examples/modules/sample-module/README.txt
b/examples/modules/sample-module/README.txt
index ee4b820..cd35c83 100644
--- a/examples/modules/sample-module/README.txt
+++ b/examples/modules/sample-module/README.txt
@@ -13,5 +13,5 @@ Note the consistent naming of files for
Puppet::Util::Autoload
 
 Reference Documents:
 http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation
-http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+http://docs.puppetlabs.com/guides/custom_functions.html
 http://reductivelabs.com/trac/puppet/wiki/FunctionReference
diff --git
a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
index 34ab280..fe4e549 100644
---
a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
+++
b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
@@ -27,7 +27,7 @@
 
 # Jeff McCune <jeff.m### @northstarlabs.net>
 # 2007-08-14
-# See: http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+# See: http://docs.puppetlabs.com/guides/custom_functions.html
 
 module Puppet::Parser::Functions
   newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given
'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
diff --git a/ext/extlookup.rb b/ext/extlookup.rb
index b72fc12..d87583b 100644
--- a/ext/extlookup.rb
+++ b/ext/extlookup.rb
@@ -74,7 +74,7 @@
 # need to edit a load of manifests to do simple things like adjust a
desired version number.
 #
 # For more information on installing and writing your own custom
functions see:
-#    http://reductivelabs.com/trac/puppet/...gYourOwnFunctions
+#    http://docs.puppetlabs.com/guides/custom_functions.html
 #
 # For further help contact Volcane on #puppet
 require 'csv'
diff --git a/ext/regexp_nodes/regexp_nodes.rb
b/ext/regexp_nodes/regexp_nodes.rb
index e234985..8712155 100644
--- a/ext/regexp_nodes/regexp_nodes.rb
+++ b/ext/regexp_nodes/regexp_nodes.rb
@@ -2,7 +2,7 @@
 
 # = Synopsis
 # This is an external node classifier script, after
-# http://reductivelabs.com/trac/puppet/wiki/ExternalNodes
+# http://docs.puppetlabs.com/guides/external_nodes.html
 #
 # = Usage
 # regexp_nodes.rb <host>
diff --git a/lib/puppet/parser/functions/inline_template.rb
b/lib/puppet/parser/functions/inline_template.rb
index 11d980f..46e0003 100644
--- a/lib/puppet/parser/functions/inline_template.rb
+++ b/lib/puppet/parser/functions/inline_template.rb
@@ -1,6 +1,6 @@
 Puppet::Parser::Functions::newfunction(:inline_template, :type =>
:rvalue, :doc =>
   "Evaluate a template string and return its value.  See `the templating
docs
-  </trac/puppet/wiki/PuppetTemplating>`_ for more information. 
Note that
+  <http://docs.puppetlabs.com/guides/templating.html>`_ for more
information.  Note that
   if multiple template strings are specified, their output is all
concatenated
   and returned as the output of the function.") do |vals|
     require 'erb'
diff --git a/lib/puppet/provider/nameservice/directoryservice.rb
b/lib/puppet/provider/nameservice/directoryservice.rb
index 76fc466..965a2aa 100644
--- a/lib/puppet/provider/nameservice/directoryservice.rb
+++ b/lib/puppet/provider/nameservice/directoryservice.rb
@@ -41,7 +41,7 @@ class DirectoryService <
Puppet::Provider::NameService
 
   # JJM 2007-07-25: This map is used to map NameService attributes to
their
   #     corresponding DirectoryService attribute names.
-  #     See: http://images.apple.com/server/docs/Open_Directory_v10.4.pdf
+  #     See: http://images.apple.com/server/docs.Open_Directory_v10.4.pdf
   # JJM: Note, this is de-coupled from the Puppet::Type, and must
   #     be actively maintained.  There may also be collisions with
different
   #     types (Users, Groups, Mounts, Hosts, etc...)
diff --git a/lib/puppet/provider/package/pkgdmg.rb
b/lib/puppet/provider/package/pkgdmg.rb
index 4506fbf..39e377d 100644
--- a/lib/puppet/provider/package/pkgdmg.rb
+++ b/lib/puppet/provider/package/pkgdmg.rb
@@ -29,7 +29,7 @@ require 'puppet/provider/package'
 require 'facter/util/plist'
 
 Puppet::Type.type(:package).provide :pkgdmg, :parent =>
Puppet::Provider::Package do
-  desc "Package management based on Apple's Installer.app and
DiskUtility.app.  This package works by checking the contents of a DMG
image for Apple pkg or mpkg files. Any number of pkg or mpkg files may
exist in the root directory of the DMG file system. Sub directories are not
checked for packages.  See `the wiki docs
</trac/puppet/wiki/DmgPackages>` for more detail."
+  desc "Package management based on Apple's Installer.app and
DiskUtility.app.  This package works by checking the contents of a DMG
image for Apple pkg or mpkg files. Any number of pkg or mpkg files may
exist in the root directory of the DMG file system. Sub directories are not
checked for packages.  See `the wiki docs
<http://projects.puppetlabs.com/projec...Dmg_Patterns>`
for more detail."
 
   confine :operatingsystem => :darwin
   defaultfor :operatingsystem => :darwin
diff --git a/lib/puppet/reference/providers.rb
b/lib/puppet/reference/providers.rb
index a0f1063..ef33a55 100644
--- a/lib/puppet/reference/providers.rb
+++ b/lib/puppet/reference/providers.rb
@@ -95,7 +95,7 @@ providers = Puppet::Util::Reference.newreference
:providers, :title => "Provider
 
     ret += h(type.name.to_s + "_", 2)
 
-    ret += ".. _#{type.name}:
#{"http://reductivelabs.com/trac/puppet/...ence##{type.name}"}\n\n"
+    ret += ".. _#{type.name}:
#{"http://docs.puppetlabs.com/references...html##{type.name}"}\n\n"
     ret += option("Default provider", default)
     ret += doctable(headers, table_data)
 
diff --git a/lib/puppet/util/command_line/filebucket
b/lib/puppet/util/command_line/filebucket
index ba9d8cd..8302d7b 100755
--- a/lib/puppet/util/command_line/filebucket
+++ b/lib/puppet/util/command_line/filebucket
@@ -53,7 +53,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppet
b/lib/puppet/util/command_line/puppet
index f65ef90..7b6c0ae 100755
--- a/lib/puppet/util/command_line/puppet
+++ b/lib/puppet/util/command_line/puppet
@@ -22,7 +22,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetd
b/lib/puppet/util/command_line/puppetd
index 3af2fda..571b154 100755
--- a/lib/puppet/util/command_line/puppetd
+++ b/lib/puppet/util/command_line/puppetd
@@ -69,7 +69,7 @@
 # parameter, so you can specify '--server <servername>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet agent
with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetmasterd
b/lib/puppet/util/command_line/puppetmasterd
index c58612c..74efb38 100755
--- a/lib/puppet/util/command_line/puppetmasterd
+++ b/lib/puppet/util/command_line/puppetmasterd
@@ -21,7 +21,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppetmasterdd
with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/puppetqd
b/lib/puppet/util/command_line/puppetqd
index 439db5c..48fc952 100755
--- a/lib/puppet/util/command_line/puppetqd
+++ b/lib/puppet/util/command_line/puppetqd
@@ -20,7 +20,7 @@
 # parameter, so you can specify '--server <servername>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppetd with
 # '--genconfig'.
diff --git a/lib/puppet/util/command_line/ralsh
b/lib/puppet/util/command_line/ralsh
index b866ede..68ad92d 100755
--- a/lib/puppet/util/command_line/ralsh
+++ b/lib/puppet/util/command_line/ralsh
@@ -34,7 +34,7 @@
 # parameter, so you can specify '--ssldir <directory>' as an
argument.
 #
 # See the configuration file documentation at
-# http://reductivelabs.com/trac/puppet/...gurationReference for
+# http://docs.puppetlabs.com/references...onfiguration.html for
 # the full list of acceptable parameters. A commented list of all
 # configuration options can also be generated by running puppet with
 # '--genconfig'.
diff --git a/man/man8/filebucket.8 b/man/man8/filebucket.8
index de2dee7..2cfc82c 100644
--- a/man/man8/filebucket.8
+++ b/man/man8/filebucket.8
@@ -64,7 +64,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppet.8 b/man/man8/puppet.8
index 02176ce..d34711b 100644
--- a/man/man8/puppet.8
+++ b/man/man8/puppet.8
@@ -30,7 +30,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetd.8 b/man/man8/puppetd.8
index c2d5cb5..a913531 100644
--- a/man/man8/puppetd.8
+++ b/man/man8/puppetd.8
@@ -66,7 +66,7 @@ configuration parameter, so you can specify
\(aq\-\-server <servername>\(aq as
 an argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetd with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetmasterd.8 b/man/man8/puppetmasterd.8
index 5bfea2e..680e505 100644
--- a/man/man8/puppetmasterd.8
+++ b/man/man8/puppetmasterd.8
@@ -29,7 +29,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetmasterdd
 with \(aq\-\-genconfig\(aq.
diff --git a/man/man8/puppetqd.8 b/man/man8/puppetqd.8
index bf08f2b..2da8b98 100644
--- a/man/man8/puppetqd.8
+++ b/man/man8/puppetqd.8
@@ -24,7 +24,7 @@ configuration parameter, so you can specify
\(aq\-\-server <servername>\(aq as
 an argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppetd with
 \(aq\-\-genconfig\(aq.
diff --git a/man/man8/ralsh.8 b/man/man8/ralsh.8
index 98892e0..8380b88 100644
--- a/man/man8/ralsh.8
+++ b/man/man8/ralsh.8
@@ -42,7 +42,7 @@ configuration parameter, so you can specify
\(aq\-\-ssldir <directory>\(aq as an
 argument.
 .sp
 See the configuration file documentation at
-\fI\%http://reductivelabs.com/trac/puppet/...gurationReference\fP
for the
+\fI\%http://docs/puppetlabs.com/references...iguration.html\fP
for the
 full list of acceptable parameters. A commented list of all
 configuration options can also be generated by running puppet with
 \(aq\-\-genconfig\(aq.






Announcing CRS v2.0.7
http://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project#tab=Download

This update has a number of improvements, most notably the inclusion of
new experimental 
protection rules for CSRF and Application Defects (missing HTTPOnly flag
and identifying 
apps that are not properly output encoding/escaping user-supplied data). 
See my previous 
Blackhat presos for more info - 
http://www.blackhat.com/html/bh-dc-09...ives.html#Barnett

Note that this release includes the rules-updater.pl script in the /util
directory and we 
have activated the CRS rules repository on the www.modsecurity.org site so
you can now 
auto-download the rules.  Read the README file in the /util directory for
usage info.


Announcing Pydoop 0.3.6_rc2
Hi,

we've just released version 0.3.6_rc2 of Pydoop
(http://pydoop.sourceforge.net). Pydoop is a Python MapReduce and HDFS
API for Hadoop, built upon the C++ Pipes and the C libhdfs APIs, that
allows to write full-fledged MapReduce applications with HDFS access.
Its key features are:

 * access to most MapReduce application components: Mapper, Reducer,
RecordReader, RecordWriter, Partitioner;
 * direct access to JobConf parameters; support for counters and status
messages;
 * CPython implementation: any Python module can be used, either pure
Python or C/C++ extension (note that this is not possible with Jython);
 * Direct HDFS access from Python.

With Pydoop you can write complete applications in Python, using a
programming style that's very similar to the one supported by the Java
and C++ APIs: developers define classes that are instantiated and used
by the framework. This allows for much cleaner and faster [1] code with
respect to the traditional Python + Streaming approach.

See http://pydoop.sourceforge.net/docs/examples for a collection of
Pydoop usage examples, including a complete application that leverages
the Hadoop Distributed Cache to distribute all required Python packages,
including Pydoop itself, to Hadoop cluster nodes.

Pydoop is actively used in production at our site, mostly for
data-intensive biocomputing applications.

The 0.3.6_rc2 release is being used internally in production. We'd
greatly appreciate any kind of feedback before we release it as 0.3.6
(stable), which we expect to do within two weeks or so.

Links:

 * download page: http://sourceforge.net/projects/pydoop/files
 * release notes:
http://sourceforge.net/apps/mediawiki...tle=Release_Notes

[1] Simone Leo and Gianluigi Zanetti. "Pydoop: a Python MapReduce and
HDFS API for Hadoop". In Proceedings of the 19th ACM International
Symposium on High Performance Distributed Computing (HPDC 2010), pages
819–825. ACM, 2010.





FW: Announcing Howl development list
FYI - howl is a project to create a shared metadata system between Pig,
Hive, and Map Reduce based on hive metastore - below is a mail from Alan
Gates on the pig dev list about it with pointers to a wiki and a mailing
list.

Pradeep

-----Original Message-----
From: Alan Gates [mailto:gat### @yahoo-inc.com] 
Sent: Tuesday, July 20, 2010 10:04 AM
To: pig-d### @hadoop.apache.org
Cc: Carl Steinbach; Dmitriy Ryaboy
Subject: Announcing Howl development list

A wiki page outlining Howl is at http://wiki.apache.org/pig/Howl

A howldev mailing list has been set up on Yahoo! groups for  
discussions on Howl.  You can subscribe by sending mail to
howldev-subsc### @yahoogroups.com 
.  We plan on putting the code on github in a read only repository.   
It will be a few more days before we get there.  It will be announced  
on the list when it is.

Alan.



ANNOUNCING Tahoe, the Least-Authority File System, v1.7.1
Folks:

Tahoe-LAFS is a secure, distributed filesystem that can be used as an
alternate filesystem to HDFS, as described in these slides [1] and
implemented in this project named hadoop-lafs.

We just released v1.7.1 of Tahoe-LAFS. Here is the release
announcement. If you try it out then by all means let us know what you
think!

Regards,

Zooko Wilcox-O'Hearn

[1]
http://docs.google.com/fileview?id=0B...p;hl=en&pli=1
[2] http://code.google.com/p/hadoop-lafs


ANNOUNCING Tahoe, the Least-Authority File System, v1.7.1

The Tahoe-LAFS team is pleased to announce the immediate
availability of version 1.7.1 of Tahoe-LAFS, an extremely
reliable distributed storage system.

Tahoe-LAFS is the first distributed storage system which
offers "provider-independent security"—meaning that not even
the operators of your storage servers can read or alter your
data without your consent. Here is the one-page explanation of
its unique security and fault-tolerance properties:

http://tahoe-lafs.org/source/tahoe/trunk/docs/about.html

Tahoe-LAFS v1.7.1 is the successor to v1.7.0, which was
released June 18, 2010 [1].

v1.7.1 is a stable minor release which adds several bugfixes
and improvements in security, forward-compatibility,
packaging, usability, and portability. See the NEWS file [2]
for details.


WHAT IS IT GOOD FOR?

With Tahoe-LAFS, you distribute your filesystem across
multiple servers, and even if some of the servers are
compromised by by an attacker, the entire filesystem continues
to work correctly, and continues to preserve your privacy and
security. You can easily share specific files and directories
with other people.

In addition to the core storage system itself, volunteers have
built other projects on top of Tahoe-LAFS and have integrated
Tahoe-LAFS with existing systems.

These include frontends for Windows, Macintosh, JavaScript,
iPhone, and Android, and plugins for Hadoop, bzr, mercurial,
duplicity, TiddlyWiki, and more. See the Related Projects page
on the wiki [3].

We believe that strong cryptography, Free and Open Source
Software, erasure coding, and principled engineering practices
make Tahoe-LAFS safer than RAID, removable drive, tape,
on-line backup or "cloud storage" systems.

This software is developed under test-driven development, and
there are no known bugs or security flaws which would
compromise confidentiality or data integrity under recommended
use. (For all currently known issues please see the
known_issues.txt file [4].)


COMPATIBILITY

This release is fully compatible with the version 1 series of
Tahoe-LAFS. Clients from this release can write files and
directories in the format used by clients of all versions back
to v1.0 (which was released March 25, 2008). Clients from this
release can read files and directories produced by clients of
all versions since v1.0. Servers from this release can serve
clients of all versions back to v1.0 and clients from this
release can use servers of all versions back to v1.0.

This is the tenth release in the version 1 series. This series
of Tahoe-LAFS will be actively supported and maintained for
the forseeable future, and future versions of Tahoe-LAFS will
retain the ability to read and write files compatible with
this series.


LICENCE

You may use this package under the GNU General Public License,
version 2 or, at your option, any later version. See the file
"COPYING.GPL" [5] for the terms of the GNU General Public
License, version 2.

You may use this package under the Transitive Grace Period
Public Licence, version 1 or, at your option, any later
version. (The Transitive Grace Period Public Licence has
requirements similar to the GPL except that it allows you to
delay for up to twelve months after you redistribute a derived
work before releasing the source code of your derived work.)
See the file "COPYING.TGPPL.html" [6] for the terms of the
Transitive Grace Period Public Licence, version 1.

(You may choose to use this package under the terms of either
licence, at your option.)


INSTALLATION

Tahoe-LAFS works on Linux, Mac OS X, Windows, Cygwin, Solaris,
*BSD, and probably most other systems. Start with
"docs/quickstart.html" [7].


HACKING AND COMMUNITY

Please join us on the mailing list [8]. Patches are gratefully
accepted -- the RoadMap page [9] shows the next improvements
that we plan to make and CREDITS [10] lists the names of people
who've contributed to the project. The Dev page [11] contains
resources for hackers.


SPONSORSHIP

Tahoe-LAFS was originally developed by Allmydata, Inc., a
provider of commercial backup services. After discontinuing
funding of Tahoe-LAFS R&D in early 2009, they have continued
to provide servers, bandwidth, small personal gifts as tokens
of appreciation, and bug reports. Thank you to Allmydata,
Inc. for their generous and public-spirited support.

Google, Inc. is sponsoring Tahoe-LAFS development as part of
the Google Summer of Code 2010. Google suggested that we
should apply for the Summer of Code program, and when we did
they generously awarded four sponsorships to students from
around the world to hack on Tahoe-LAFS this summer. Thank you
to Google, Inc. for their generous and public-spirited
support.


HACK TAHOE-LAFS!

If you can find a security flaw in Tahoe-LAFS which is serious
enough that feel compelled to warn our users and issue a fix,
then we will award you with a customized t-shirts with your
exploit printed on it and add you to the "Hack Tahoe-LAFS Hall
Of Fame" [12].


ACKNOWLEDGEMENTS

This is the fifth release of Tahoe-LAFS to be created solely
as a labor of love by volunteers. Thank you very much to the
team of "hackers in the public interest" who make Tahoe-LAFS
possible.

David-Sarah Hopwood and Zooko Wilcox-O'Hearn
on behalf of the Tahoe-LAFS team

July 18, 2010
Rainhill, Merseyside, UK and Boulder, Colorado, USA


[1] http://tahoe-lafs.org/trac/tahoe/brow...otes.txt?rev=4514
[2] http://tahoe-lafs.org/trac/tahoe/browser/NEWS?rev=4577
[3] http://tahoe-lafs.org/trac/tahoe/wiki/RelatedProjects
[4] http://tahoe-lafs.org/trac/tahoe/brow.../known_issues.txt
[5] http://tahoe-lafs.org/trac/tahoe/browser/COPYING.GPL
[6] http://tahoe-lafs.org/source/tahoe/trunk/COPYING.TGPPL.html
[7] http://tahoe-lafs.org/source/tahoe/tr...s/quickstart.html
[8] http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev
[9] http://tahoe-lafs.org/trac/tahoe/roadmap
[10] http://tahoe-lafs.org/trac/tahoe/browser/CREDITS?rev=4567
[11] http://tahoe-lafs.org/trac/tahoe/wiki/Dev
[12] http://tahoe-lafs.org/hacktahoelafs/


Learning-by-doing (also announcing a new Ruby Client Codename: "Greek Architect")
Howdy!

So, last week I finally got around to playing with Cassandra. After a
while I understood the basics. To test this assumption I started
working on my own Client implementation since "Learning-by-doing" is
what I do and existing Ruby Clients (which are awesome) already
abstracted too much for me to really grasp what was going on. Java is
not really my thing (anymore) so I began with the Thrift API and Ruby.

Anyways back to Topic.

This library is now is available at:
http://github.com/thheller/greek_architect

Since I have virtually no experience with Cassandra (but plenty with
SQL) I started with the first use-case which I have programmed a bunch
of times before. User Management. I build websites which are used by
other people, so I need to store them somewhere.

Step #1: Creating Users and persisting them in Cassandra

Example here:
http://github.com/thheller/greek_architect/blob/master/spec/examples/user_create_spec.rb

I hope my rspec-style documentation doesnt confuse too many people
since I already have a gazillion questions for this simple, but also
VERY common use-case. Since a question is best asked with a concrete
example to refer to, here goes my first one:

Would any of you veterans build what I built the way I did? (refering
to the cassandra design, not the ruby client)

I insert Users with UUID keys into one ColumnFamily. I then index them
by creating a row in another ColumnFamily using the Name as Key and
then adding one column holding a reference to the User UUID. I also
insert a reference into another ColumnFamily holding a List of Users
partitioned by Date.

I'm really unsure about the index design, since they dont get updated
when a User row is removed. I could hook into the remove call (like I
did into mutations) and cascade the deletes where needed, but 10+
years of SQL always want to tell me I'm crazy for doing this stuff!

I'd really appreciate some feedback.

Cheers,
Thomas


Puppet Standalone Client + Fileserving, not working.... (+ nice tutorial for puppet stand-alone) :)
Puppet local fileserving not working, as  described here:

http://docs.reductivelabs.com/guides/modules.html

I've made a project to demonstrate this:
https://mindre### @github.com/mindr...alone_testing.git

There is more in the README...(http://github.com/mindreframer/
puppet_stand_alone_testing/blob/master/Readme.md)

Would be nice to get this working, it seems wasteful the rewrite the
modules only for stand-alone usage...

Thx!





PATCH/puppet 1/1] [#4264] Fix failing specs run as root due to missing puppet group
These specs 'use' some settings which create directories belonging
to the 'service' user/group. If the default service group doesn't
exist, these fail. This patch explicitly sets the service group to
the gid of the process, which is known to be accessible by the user.

Signed-off-by: Nick Lewis <ni### @puppetlabs.com>
---
 .../indirector/bucket_file/rest_spec.rb            |    1 +
 .../indirector/certificate/rest_spec.rb            |    1 +
 .../indirector/certificate_request/rest_spec.rb    |    1 +
 .../certificate_revocation_list/rest_spec.rb       |    1 +
 spec/integration/indirector/report/rest_spec.rb    |    1 +
 spec/integration/indirector/rest_spec.rb           |    1 +
 spec/integration/network/server/webrick_spec.rb    |    1 +
 spec/integration/ssl/certificate_authority_spec.rb |    1 +
 spec/integration/ssl/certificate_request_spec.rb   |    1 +
 .../ssl/certificate_revocation_list_spec.rb        |    1 +
 spec/integration/ssl/host_spec.rb                  |    1 +
 11 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/spec/integration/indirector/bucket_file/rest_spec.rb
b/spec/integration/indirector/bucket_file/rest_spec.rb
index 4d90a8c..dc10faa 100644
--- a/spec/integration/indirector/bucket_file/rest_spec.rb
+++ b/spec/integration/indirector/bucket_file/rest_spec.rb
@@ -17,6 +17,7 @@ describe "Filebucket REST Terminus" do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git a/spec/integration/indirector/certificate/rest_spec.rb
b/spec/integration/indirector/certificate/rest_spec.rb
index 356a7d3..58aa96c 100755
--- a/spec/integration/indirector/certificate/rest_spec.rb
+++ b/spec/integration/indirector/certificate/rest_spec.rb
@@ -17,6 +17,7 @@ describe "Certificate REST Terminus" do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git a/spec/integration/indirector/certificate_request/rest_spec.rb
b/spec/integration/indirector/certificate_request/rest_spec.rb
index 2c98ef6..c718b78 100755
--- a/spec/integration/indirector/certificate_request/rest_spec.rb
+++ b/spec/integration/indirector/certificate_request/rest_spec.rb
@@ -19,6 +19,7 @@ describe "Certificate Request REST Terminus" do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git
a/spec/integration/indirector/certificate_revocation_list/rest_spec.rb
b/spec/integration/indirector/certificate_revocation_list/rest_spec.rb
index 62a2f80..86f2b01 100755
--- a/spec/integration/indirector/certificate_revocation_list/rest_spec.rb
+++ b/spec/integration/indirector/certificate_revocation_list/rest_spec.rb
@@ -17,6 +17,7 @@ describe "Certificate REST Terminus" do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git a/spec/integration/indirector/report/rest_spec.rb
b/spec/integration/indirector/report/rest_spec.rb
index 089f8fd..fdc2189 100644
--- a/spec/integration/indirector/report/rest_spec.rb
+++ b/spec/integration/indirector/report/rest_spec.rb
@@ -17,6 +17,7 @@ describe "Report REST Terminus" do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git a/spec/integration/indirector/rest_spec.rb
b/spec/integration/indirector/rest_spec.rb
index e904839..14e9e95 100755
--- a/spec/integration/indirector/rest_spec.rb
+++ b/spec/integration/indirector/rest_spec.rb
@@ -39,6 +39,7 @@ describe Puppet::Indirector::REST do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
     Puppet.settings[:server] = "127.0.0.1"
     Puppet.settings[:masterport] = "34343"
 
diff --git a/spec/integration/network/server/webrick_spec.rb
b/spec/integration/network/server/webrick_spec.rb
index 2809df7..2b14dfb 100755
--- a/spec/integration/network/server/webrick_spec.rb
+++ b/spec/integration/network/server/webrick_spec.rb
@@ -18,6 +18,7 @@ describe Puppet::Network::Server do
 
       Puppet.settings[:confdir] = @dir
       Puppet.settings[:vardir] = @dir
+      Puppet.settings[:group] = Process.gid
 
       Puppet::SSL::Host.ca_location = :local
 
diff --git a/spec/integration/ssl/certificate_authority_spec.rb
b/spec/integration/ssl/certificate_authority_spec.rb
index be82b5f..fca17b4 100755
--- a/spec/integration/ssl/certificate_authority_spec.rb
+++ b/spec/integration/ssl/certificate_authority_spec.rb
@@ -17,6 +17,7 @@ describe Puppet::SSL::CertificateAuthority do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
 
     Puppet::SSL::Host.ca_location = :local
     @ca = Puppet::SSL::CertificateAuthority.new
diff --git a/spec/integration/ssl/certificate_request_spec.rb
b/spec/integration/ssl/certificate_request_spec.rb
index 365ecce..8426b9d 100755
--- a/spec/integration/ssl/certificate_request_spec.rb
+++ b/spec/integration/ssl/certificate_request_spec.rb
@@ -21,6 +21,7 @@ describe Puppet::SSL::CertificateRequest do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
 
     Puppet::SSL::Host.ca_location = :none
 
diff --git a/spec/integration/ssl/certificate_revocation_list_spec.rb
b/spec/integration/ssl/certificate_revocation_list_spec.rb
index 127654c..44eee36 100755
--- a/spec/integration/ssl/certificate_revocation_list_spec.rb
+++ b/spec/integration/ssl/certificate_revocation_list_spec.rb
@@ -17,6 +17,7 @@ describe Puppet::SSL::CertificateRevocationList do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
 
     Puppet::SSL::Host.ca_location = :local
   end
diff --git a/spec/integration/ssl/host_spec.rb
b/spec/integration/ssl/host_spec.rb
index 9b4152e..05862df 100755
--- a/spec/integration/ssl/host_spec.rb
+++ b/spec/integration/ssl/host_spec.rb
@@ -17,6 +17,7 @@ describe Puppet::SSL::Host do
 
     Puppet.settings[:confdir] = @dir
     Puppet.settings[:vardir] = @dir
+    Puppet.settings[:group] = Process.gid
 
     Puppet::SSL::Host.ca_location = :local
 






Could not retrieve information from source(s) puppet://puppet/plugins error message
Hi.

After I upgraded to latest puppet, I started receiving this message
both in clients and in master.

Following the advice below, i create an empty stub module, with empty
"lib" directory:
http://projects.puppetlabs.com/issues/2244


Any idea if this is a clean solution, or there is another, better fix?

Regards.





unique behavior on puppet agent running on puppet master node
(reposted from irc)

Having just upgraded to 2.6, I am seeing different behavior between
the agent running on the master node and the rest of the agents.

Most importantly, it complains about "warning: You cannot collect
without storeconfigs being set" even though storeconfigs=true in the
[master] section of puppet.conf

Less important, but still curious: the logging is quite different,
including lots of "info: Automatically imported <blah>" lines).

my puppet.conf: http://pastebin.com/nLZu9zrf

~jon





PATCH/puppet] [#4219] Install misses command_line dir, puppet $app --help fails
---
 install.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/install.rb b/install.rb
index d35aaa0..b06ec09 100755
--- a/install.rb
+++ b/install.rb
@@ -84,7 +84,7 @@ bins  = glob(%w{bin/*})
 rdoc  = glob(%w{bin/* sbin/* lib/**/*.rb README README-library CHANGELOG
TODO Install}).reject { |e| e=~ /\.(bat|cmd)$/ }
 ri    = glob(%w{bin/*.rb sbin/* lib/**/*.rb}).reject { |e| e=~
/\.(bat|cmd)$/ }
 man   = glob(%w{man/man[0-9]/*})
-libs  = glob(%w{lib/**/*.rb lib/**/*.py})
+libs  = glob(%w{lib/**/*.rb lib/**/*.py lib/puppet/util/command_line/*})
 tests = glob(%w{test/**/*.rb})
 
 def do_bins(bins, target, strip = 's?bin/')








PATCH/puppet 1/1] [#4247] storeconfigs was calling Puppet::Parser::Resource.new with the wrong argu
When the interface to Puppet::Resource changed, its subclass
Puppet::Parser::Resource was also affected. One case of initializing
those objects did not get updated when the code changed, causing
storeconfigs to break.

Also, this patch adds a error message that would have made it easier to
catch this problem (as puppet could consume all memory and die trying to
print the old error message)

Signed-off-by: Jesse Wolfe <jes5### @gmail.com>
---
 lib/puppet/rails/resource.rb     |    6 +++---
 lib/puppet/resource.rb           |    3 +++
 spec/unit/rails/resource_spec.rb |   16 ++++++++++++++++
 spec/unit/resource_spec.rb       |    6 ++++++
 4 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb
index a5cdd0c..cac9de2 100644
--- a/lib/puppet/rails/resource.rb
+++ b/lib/puppet/rails/resource.rb
@@ -212,16 +212,16 @@ class Puppet::Rails::Resource <
ActiveRecord::Base
     end
     hash[:scope] = scope
     hash[:source] = scope.source
-    hash[:params] = []
+    hash[:parameters] = []
     names = []
     self.param_names.each do |pname|
       # We can get the same name multiple times because of how the
       # db layout works.
       next if names.include?(pname.name)
       names << pname.name
-      hash[:params] << pname.to_resourceparam(self, scope.source)
+      hash[:parameters] << pname.to_resourceparam(self,
scope.source)
     end
-    obj = Puppet::Parser::Resource.new(hash)
+    obj = Puppet::Parser::Resource.new(hash["type"], hash["title"], hash)
 
     # Store the ID, so we can check if we're re-collecting the same
resource.
     obj.rails_id = self.id
diff --git a/lib/puppet/resource.rb b/lib/puppet/resource.rb
index 31237e3..d68e0ee 100644
--- a/lib/puppet/resource.rb
+++ b/lib/puppet/resource.rb
@@ -409,6 +409,9 @@ class Puppet::Resource
     if    (argtitle || argtype) =~ /^([^\[\]]+)\[(.+)\]$/m then [ $1,    
            $2            ]
     elsif argtitle                                         then [
argtype,            argtitle      ]
     elsif argtype.is_a?(Puppet::Type)                      then [
argtype.class.name, argtype.title ]
+    elsif argtype.is_a?(Hash)                              then
+      raise ArgumentError, "Puppet::Resource.new does not take a hash as
the first argument. "+
+        "Did you mean (#{(argtype[:type] || argtype["type"]).inspect},
#{(argtype[:title] || argtype["title"]).inspect }) ?"
     else raise ArgumentError, "No title provided and #{argtype.inspect}
is not a valid resource reference"
     end
   end
diff --git a/spec/unit/rails/resource_spec.rb
b/spec/unit/rails/resource_spec.rb
index ac74693..08deda6 100755
--- a/spec/unit/rails/resource_spec.rb
+++ b/spec/unit/rails/resource_spec.rb
@@ -104,4 +104,20 @@ describe "Puppet::Rails::Resource" do
       @resource.merge_parameters(merge_resource)
     end
   end
+
+  describe "#to_resource" do
+    it "should instantiate a Puppet::Parser::Resource" do
+      scope = stub "scope", :source => nil
+
+      @resource = Puppet::Rails::Resource.new
+      @resource.stubs(:attributes).returns({
+        "restype" => 'notify',
+        "title"   => 'hello'
+      })
+      @resource.stubs(:param_names).returns([])
+
+      @resource.to_resource(scope).should be_a(Puppet::Parser::Resource)
+
+    end
+  end
 end
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index 95f0dd0..204a2b0 100755
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -98,6 +98,12 @@ describe Puppet::Resource do
     lambda { Puppet::Resource.new("foo") }.should
raise_error(ArgumentError)
   end
 
+  it "should fail if the title is a hash and the type is not a valid
resource reference string" do
+    lambda { Puppet::Resource.new({:type => "foo", :title =>
"bar"}) }.should raise_error(ArgumentError,
+      'Puppet::Resource.new does not take a hash as the first argument.
Did you mean ("foo", "bar") ?'
+    )
+  end
+
   it "should be able to produce a backward-compatible reference array" do
     Puppet::Resource.new("foobar", "/f").to_trans_ref.should == %w{Foobar
/f}
   end






PATCH/puppet 1/1] Fix #4348 - Puppet doc single manifest broken
The refactoring of using environment instances instead of strings
for initializing the parser, rdoc wasn't updated, thus was unable
to initialize the parser.

Signed-off-by: Brice Figureau <brice-pupp### @daysofwonder.com>
---
 lib/puppet/util/rdoc.rb     |    2 +-
 spec/unit/util/rdoc_spec.rb |   13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/util/rdoc.rb b/lib/puppet/util/rdoc.rb
index 4a80b06..085d8ec 100644
--- a/lib/puppet/util/rdoc.rb
+++ b/lib/puppet/util/rdoc.rb
@@ -41,7 +41,7 @@ module Puppet::Util::RDoc
   def manifestdoc(files)
     Puppet[:ignoreimport] = true
     files.select { |f| FileTest.file?(f) }.each do |f|
-      parser = Puppet::Parser::Parser.new(:environment =>
Puppet[:environment])
+      parser =
Puppet::Parser::Parser.new(Puppet::Node::Environment.new(Puppet[:environment]))
       parser.file = f
       ast = parser.parse
       output(f, ast)
diff --git a/spec/unit/util/rdoc_spec.rb b/spec/unit/util/rdoc_spec.rb
index 65df261..58c2034 100755
--- a/spec/unit/util/rdoc_spec.rb
+++ b/spec/unit/util/rdoc_spec.rb
@@ -75,6 +75,19 @@ describe Puppet::Util::RDoc do
       Puppet::Util::RDoc.manifestdoc([])
     end
 
+    it "should use a parser with the correct environment" do
+      FileTest.stubs(:file?).returns(true)
+      Puppet::Util::RDoc.stubs(:output)
+
+      parser = stub_everything
+      Puppet::Parser::Parser.stubs(:new).with{ |env|
env.is_a?(Puppet::Node::Environment) }.returns(parser)
+
+      parser.expects(:file=).with("file")
+      parser.expects(:parse)
+
+      Puppet::Util::RDoc.manifestdoc(["file"])
+    end
+
     it "should puppet parse all given files" do
       FileTest.stubs(:file?).returns(true)
       Puppet::Util::RDoc.stubs(:output)






Puppet on Windows (was Re: ANNOUNCE: Puppet 2.6.0 - Final release!)
Rohan McGovern wrote:
 James Turnbull said:
> The journey was long and arduous and many fell along the way but
Puppet
> Labs is proud to announce the 2.6.0 release!
>
 
 Is anyone aware of an attempt to package up a complete (puppet + all
 prereqs) installer for Windows?  Either official, or by someone in
the
 community?
 
 And, asking from the other direction: would anyone else be interested
in
 such a thing?
 
 I would be, because setting up puppet on Windows seems pretty tough
 right now.  I also have no need for Ruby on my Windows boxes except
 for the usage of puppet.

Rohan

There isn't such an attempt so far - we've got it on the cards to do -
but any progress in that direction would be awesome.

We've got some basic notes at:

http://projects.puppetlabs.com/projec...ki/Puppet_Windows

Regards

James Turnbull







PATCH/puppet 0/4] Some random puppet fix for JRuby
Hi,

Here is the first stab of JRuby Puppet compatibility.
There looks to be more thread issue (the last ones I found are
parser functions initializations), which will be addressed in
subsequent patches.

No patch in this serie have tests, because they most deal with
threading issues that can be reproduced only under JRuby.

Please review,
Brice

Brice Figureau (4):
  JRuby doesn't implement Process.maxgroups
  Fix #4244 - Cached Attributes is not thread safe
  Fix race condition in rack autoloading of request/response
  Fix #4245 - default insertion of ACL is not thread safe

 lib/puppet/network/http/rack.rb       |    3 +++
 lib/puppet/network/rest_authconfig.rb |    9 ++++++---
 lib/puppet/util/cacher.rb             |   31 +++++++++++++++++++++
REST API
Anyone writing or planning to write a REST API for memcached?
If no such plan, I would be interested in writing a REST API.
Any suggestions, comments welcome.


REST and http
Hi,
There are many posts about this topic but I still can't get a clear answer
to the following:
     I am trying to use REST to post a message to a queue.
     Message broker is installed with all default options.
     I did see an example http://localhost:8161/demo/send.html

So the queston is: Do I need a separate app with a servlet to handle
POSTing
messages to a queue?
Can this be done just with a message broker? something like
http://server:8161/queue/myQ?
Thanks,




REST client authentication
Working with ActiveMQ 5.3.2 MessageServlet (REST client) and am trying to
figure how it supports authentication.  Based on the code it doesn't
appear
to pass any authentication to the connection.  I would like to reuse the
security already defined in our activemq.xml file for securing
topics/queues.

Does the REST client support authentication directly or would I have to
duplicate the security in our webapp container?




Config for a PHP REST web service
Hi all,
I am working on a small REST-based web service that I write in php.
I have a single PHP-script and I want Apache to route all requests to a 
specific location and below to my php script.

This is how I did it:

<LocationMatch "^/pathtomyservice(.*)" >
<Limit GET POST PUT DELETE OPTIONS>
         Order allow,deny
         Allow from all
</Limit>
<LimitExcept GET POST PUT DELETE OPTIONS>
         Order deny,allow
         Deny from all
</LimitExcept>

     Options -All
     SetHandler MyService
     Action MyService /~myuser/somepath/myscript.php virtual
</LocationMatch>

of course, I had to enable UserDir for myuser.

My problem is: I have no idea what I am doing. It's all 
trial-and-horror. Now it works as expected but somehow it feels a bit 
strange.

I expected to be able to tell Apache that "for this path run that php 
script" and not that the script had to be accessible via http and all 
that "handler" business.

So if somebody more in the know could bless this solution or tell me how 
to really do it would be grateful. Or even point me to the correct 
configuration directives.

/Fredric

PS. I run on a range from 1.3 to 2.2 but the solution will only have to 
work for 2.2 (and newer).