puppet_common.git
11 years agoMerge git://labs.riseup.net/module_common
Silvio Rhatto [Sun, 6 Dec 2009 19:18:24 +0000 (17:18 -0200)]
Merge git://labs.riseup.net/module_common

11 years agoRevert "fix source path."
pietro [Sat, 28 Nov 2009 02:58:39 +0000 (18:58 -0800)]
Revert "fix source path."

This reverts commit 1fa98d6183e77517e3ab851072e37e4235a3fe67.

11 years agoRevert "fix path to source file."
pietro [Sat, 28 Nov 2009 02:58:20 +0000 (18:58 -0800)]
Revert "fix path to source file."

This reverts commit 314af5320fd658c7423eb766b2b00a378a20dfb7.

11 years agofix source path.
pietro [Sat, 28 Nov 2009 02:35:46 +0000 (18:35 -0800)]
fix source path.

11 years agofix path to source file.
pietro [Sat, 28 Nov 2009 02:23:13 +0000 (18:23 -0800)]
fix path to source file.

11 years agomove plugin directory to fit new 0.25.x style and update file paths accordingly
Micah Anderson [Mon, 23 Nov 2009 16:54:04 +0000 (11:54 -0500)]
move plugin directory to fit new 0.25.x style and update file paths accordingly

11 years agofix indentation in line.pp example configuration snippet
Micah Anderson [Thu, 3 Sep 2009 17:57:47 +0000 (13:57 -0400)]
fix indentation in line.pp example configuration snippet

11 years agoremove 'backup => server' from config_file, as there is no such thing
Micah Anderson [Thu, 3 Sep 2009 17:54:28 +0000 (13:54 -0400)]
remove 'backup => server' from config_file, as there is no such thing
as 'server'. This didn't work as expected because of this error, and
in some situations it caused problems (such as when ever file in a
directory is considered a config file, such is the case with
apt.conf.d )

11 years agoTrying to fix line defintion
Silvio Rhatto [Wed, 29 Jul 2009 19:48:09 +0000 (16:48 -0300)]
Trying to fix line defintion

11 years agoAvoiding exec error
Silvio Rhatto [Thu, 16 Jul 2009 18:08:49 +0000 (15:08 -0300)]
Avoiding exec error

Trying to force path so puppet doesn't issue the following error:

  Could not create true # require_lsbdistcodename: 'true #
  require_lsbdistcodename' is both unqualifed and specified no search path
  at /etc/puppet/modules/common/manifests/classes/lsb_release.pp:40

11 years agoAdd append_if_no_such_line compatablity define
David Schmitt [Mon, 13 Jul 2009 08:52:34 +0000 (10:52 +0200)]
Add append_if_no_such_line compatablity define

11 years agoRDoc-ify documentation
David Schmitt [Tue, 9 Jun 2009 15:51:10 +0000 (17:51 +0200)]
RDoc-ify documentation

See http://club.black.co.at/david/puppet/doc/ for a current version of the RDoc
output.

11 years agoblob!=raw, should check wget better ;-)
David Schmitt [Tue, 2 Jun 2009 20:32:30 +0000 (22:32 +0200)]
blob!=raw, should check wget better ;-)

11 years agoReenable gsub, since regsubst is no proper replacement
David Schmitt [Tue, 2 Jun 2009 17:22:03 +0000 (19:22 +0200)]
Reenable gsub, since regsubst is no proper replacement

11 years agoalways run concatenate command
David Schmitt [Tue, 2 Jun 2009 12:16:38 +0000 (14:16 +0200)]
always run concatenate command

Now that this doesn't case unnecessary updates in the system, running the
concatenation every time imrpoves robustness in the face of state damages and
other non-notifying content changes.

Also, tone down the exec to info level to keep the log clean.

11 years agoMajor cleanup of the common module
David Schmitt [Sun, 31 May 2009 19:14:37 +0000 (21:14 +0200)]
Major cleanup of the common module

* improve documentation on all defines
* rename modules_dir to module_dir and modules_file to module_file
* create $module_dir_path to achieve DRY-ness
* silence the lsb_release stuff
* improve concatenated_file to use an intermediate file, improving reliability
  and decoupling the updateing from notifying our peers.
* remove serveral functions that were moved to puppet proper:
  - sha1 => sha1
  - gsub,substitute,slash_escape => regsubst

12 years agocreate a common class to install openssl
David Schmitt [Mon, 15 Sep 2008 13:37:34 +0000 (15:37 +0200)]
create a common class to install openssl

12 years agoimprove documentation and function naming
David Schmitt [Mon, 25 Aug 2008 14:45:29 +0000 (16:45 +0200)]
improve documentation and function naming

12 years agoremove netmask.rb which was merged in facter 1.5
David Schmitt [Mon, 11 Aug 2008 18:25:27 +0000 (20:25 +0200)]
remove netmask.rb which was merged in facter 1.5

12 years agominor fixes to .ignore and docs
David Schmitt [Sat, 2 Aug 2008 11:16:10 +0000 (13:16 +0200)]
minor fixes to .ignore and docs

12 years agomore corrections of .ignore
David Schmitt [Tue, 8 Jul 2008 09:35:13 +0000 (11:35 +0200)]
more corrections of .ignore

12 years agomodules_dir: nail empty directory files/empty/ into the repo
David Schmitt [Mon, 30 Jun 2008 11:47:30 +0000 (13:47 +0200)]
modules_dir: nail empty directory files/empty/ into the repo

Since git ignores empty directories, I had to create a placeholder to
fool git. The placeholder is ignored in the define.

12 years agoline: do a full string match of $line instead of a regex match
David Schmitt [Thu, 26 Jun 2008 10:01:24 +0000 (12:01 +0200)]
line: do a full string match of $line instead of a regex match

This allows $line to contain '/' characters and is generally the safer
thing to do.

Patch from Francois Deppierraz <francois.deppierraz@camptocamp.com>

12 years agoremove one more $servername
David Schmitt [Thu, 5 Jun 2008 14:48:00 +0000 (16:48 +0200)]
remove one more $servername

12 years agodo not use $servername in puppet:// urls
martin f. krafft [Thu, 5 Jun 2008 14:05:12 +0000 (16:05 +0200)]
do not use $servername in puppet:// urls

Instead, use puppet:///, which automatically uses
$servername when executed on clients, but which also works
when run locally.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: David Schmitt <david@schmitt.edv-bus.at>
13 years agore-enable automatic modules_dir source
David Schmitt [Sun, 6 Apr 2008 16:31:17 +0000 (18:31 +0200)]
re-enable automatic modules_dir source

13 years agocheckup
David Schmitt [Sun, 6 Apr 2008 15:36:22 +0000 (17:36 +0200)]
checkup

13 years agoadd "prefix_with" function
David Schmitt [Fri, 29 Feb 2008 15:51:51 +0000 (16:51 +0100)]
add "prefix_with" function

13 years agoconfig_file: use File's built-in checking for content/source
David Schmitt [Fri, 29 Feb 2008 15:49:59 +0000 (16:49 +0100)]
config_file: use File's built-in checking for content/source

13 years agomore BSD compatability from admin@immerda.ch
David Schmitt [Thu, 14 Feb 2008 17:24:44 +0000 (18:24 +0100)]
more BSD compatability from admin@immerda.ch

13 years agolsb_release: remove paths from exec, to be more flexible, hint from admin@immerda.ch
David Schmitt [Thu, 14 Feb 2008 17:11:52 +0000 (18:11 +0100)]
lsb_release: remove paths from exec, to be more flexible, hint from admin@immerda.ch

13 years agocatchup commit
David Schmitt [Mon, 28 Jan 2008 15:05:38 +0000 (16:05 +0100)]
catchup commit

13 years agoconcatenated_file: create a sensible default for dir parameter
root [Fri, 30 Nov 2007 17:58:01 +0000 (18:58 +0100)]
concatenated_file: create a sensible default for dir parameter

patch by Chris MacLeod, thanks!

13 years agoquiet down lsb_release checks
root [Mon, 26 Nov 2007 07:42:09 +0000 (08:42 +0100)]
quiet down lsb_release checks

13 years agocommon: minor improvements to config_file, replace and line
root [Tue, 13 Nov 2007 09:44:07 +0000 (10:44 +0100)]
common: minor improvements to config_file, replace and line

13 years agocommon: fix default mode for modules_dir
root [Sat, 27 Oct 2007 15:54:57 +0000 (17:54 +0200)]
common: fix default mode for modules_dir

13 years agocommon: modules_file define as companion to modules_dir
root [Sat, 27 Oct 2007 15:51:13 +0000 (17:51 +0200)]
common: modules_file define as companion to modules_dir

13 years agocommon/line, ssh: style cleanup
root [Fri, 26 Oct 2007 16:12:10 +0000 (18:12 +0200)]
common/line, ssh: style cleanup

13 years agocommon: trivial passthrough for ensure
root [Tue, 9 Oct 2007 08:55:09 +0000 (10:55 +0200)]
common: trivial passthrough for ensure

13 years agoAdd some examples to the individual defines
Micah Anderson [Fri, 5 Oct 2007 20:04:32 +0000 (16:04 -0400)]
Add some examples to the individual defines

13 years agoMake the usage more friendly
Micah Anderson [Fri, 5 Oct 2007 20:04:31 +0000 (16:04 -0400)]
Make the usage more friendly

13 years agoAdd a README for the common module
Micah Anderson [Fri, 5 Oct 2007 20:04:30 +0000 (16:04 -0400)]
Add a README for the common module

13 years agocommon: remove hand made plugins install defines and use matt's plugins patch
David Schmitt [Sat, 6 Oct 2007 08:11:47 +0000 (10:11 +0200)]
common: remove hand made plugins install defines and use matt's plugins patch

This moves all facts and puppet plugins to the plugins/ directory of modules to
get the benefits of Matt's plugins patch, that distributes these files before
the configuration is requested. This reduces the number of configuration runs to
convergence by one.

13 years agocommon: add netmask fact for automatic syncing
root [Mon, 1 Oct 2007 19:03:27 +0000 (21:03 +0200)]
common: add netmask fact for automatic syncing

13 years agocommon: fix clash between modules_dir and concatenated_file(dir) better
root [Wed, 26 Sep 2007 09:57:18 +0000 (11:57 +0200)]
common: fix clash between modules_dir and concatenated_file(dir) better

13 years agomoved "replace" define to module
root [Tue, 11 Sep 2007 08:29:38 +0000 (10:29 +0200)]
moved "replace" define to module

13 years agoadd facter dir in common module
root [Thu, 6 Sep 2007 13:43:20 +0000 (15:43 +0200)]
add facter dir in common module

13 years agoline($ensure) defaults to present
David Schmitt [Sun, 26 Aug 2007 20:47:06 +0000 (22:47 +0200)]
line($ensure) defaults to present

13 years agorecognize lsbdistcodename 'n/a'
David Schmitt [Sun, 26 Aug 2007 20:18:00 +0000 (22:18 +0200)]
recognize lsbdistcodename 'n/a'

micah <micah@riseup.net> reported, that lsb_release can report nonsensical
values for lsbdistcodename; assert_lsbdistcodename now recognises "n/a" and
acts accordingly

13 years agorestructure puppet_install
david [Wed, 8 Aug 2007 17:57:53 +0000 (17:57 +0000)]
restructure puppet_install

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@191 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agomore fixes for the munin modularizsation
david [Tue, 7 Aug 2007 14:15:44 +0000 (14:15 +0000)]
more fixes for the munin modularizsation

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@178 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agofix "fail on no ntp_ plugins" bug
david [Tue, 7 Aug 2007 11:42:33 +0000 (11:42 +0000)]
fix "fail on no ntp_ plugins" bug

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@176 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadd defines to install facts and functions; try it in ldap module
david [Tue, 7 Aug 2007 07:57:50 +0000 (07:57 +0000)]
add defines to install facts and functions; try it in ldap module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@175 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agosupport a footer file too
david [Mon, 6 Aug 2007 10:16:33 +0000 (10:16 +0000)]
support a footer file too

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@174 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agosupport a header file
david [Mon, 6 Aug 2007 10:14:15 +0000 (10:14 +0000)]
support a header file

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@173 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadd refreshonly and notifies; minor shell fixes
david [Mon, 6 Aug 2007 06:33:19 +0000 (06:33 +0000)]
add refreshonly and notifies; minor shell fixes

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@167 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agomoved puppet functions to common::puppetmaster
david [Thu, 2 Aug 2007 09:28:47 +0000 (09:28 +0000)]
moved puppet functions to common::puppetmaster

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@154 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadded local override for modules_dir and use it for ntp
david [Wed, 1 Aug 2007 11:25:27 +0000 (11:25 +0000)]
added local override for modules_dir and use it for ntp

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@140 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadd forcible purging of directories
david [Wed, 1 Aug 2007 08:03:00 +0000 (08:03 +0000)]
add forcible purging of directories

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@138 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agofixed up refresh behaviour, still have to run the concat every time, but requirors...
david [Sun, 29 Jul 2007 10:35:34 +0000 (10:35 +0000)]
fixed up refresh behaviour, still have to run the concat every time, but requirors are signalled only when the md5 changes

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@126 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agopurge /var/lib/puppet/modules
david [Sat, 14 Jul 2007 09:27:55 +0000 (09:27 +0000)]
purge /var/lib/puppet/modules

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@122 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agomove and freshen up apache2 module
david [Thu, 28 Jun 2007 08:25:47 +0000 (08:25 +0000)]
move and freshen up apache2 module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@74 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadd a define to handily add parts to a concatenated file
david [Wed, 27 Jun 2007 06:48:13 +0000 (06:48 +0000)]
add a define to handily add parts to a concatenated file

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@64 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agocreate a stable result by sorting filenames
david [Mon, 25 Jun 2007 14:03:28 +0000 (14:03 +0000)]
create a stable result by sorting filenames

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@63 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agofix dumb typo
david [Mon, 25 Jun 2007 13:45:11 +0000 (13:45 +0000)]
fix dumb typo

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@62 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadd fqdn to error message
david [Mon, 25 Jun 2007 10:17:39 +0000 (10:17 +0000)]
add fqdn to error message

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@60 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadded assert_lsbdistcodename
david [Mon, 25 Jun 2007 08:24:51 +0000 (08:24 +0000)]
added assert_lsbdistcodename

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@57 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadded more comments and checksum=>md5
david [Mon, 25 Jun 2007 07:53:07 +0000 (07:53 +0000)]
added more comments and checksum=>md5

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@56 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agomoved config_file to common module for apt module
david [Mon, 25 Jun 2007 07:44:24 +0000 (07:44 +0000)]
moved config_file to common module for apt module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@54 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agofirst steps with the common module
david [Mon, 25 Jun 2007 07:31:47 +0000 (07:31 +0000)]
first steps with the common module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@53 f03ff2f1-f02d-0410-970d-b9634babeaa1

13 years agoadded skeleton for common module
david [Fri, 22 Jun 2007 08:42:40 +0000 (08:42 +0000)]
added skeleton for common module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@51 f03ff2f1-f02d-0410-970d-b9634babeaa1