puppet_common.git
10 years agocleanup escaping stuff
mh [Wed, 21 Jul 2010 05:54:31 +0000 (07:54 +0200)]
cleanup escaping stuff

10 years agoRevert "remove escaping"
mh [Wed, 21 Jul 2010 05:51:44 +0000 (07:51 +0200)]
Revert "remove escaping"

This reverts commit 7cc9d114afc9d5c807a7ee30bff7aaba865aded3.

10 years agoRevert "remove escaping"
mh [Wed, 21 Jul 2010 05:51:28 +0000 (07:51 +0200)]
Revert "remove escaping"

This reverts commit 40e3048d060f10105ae9dff524d5fa7901523a3e.

10 years agoremove escaping
mh [Mon, 19 Jul 2010 22:35:46 +0000 (00:35 +0200)]
remove escaping

10 years agoremove escaping
mh [Mon, 19 Jul 2010 22:35:16 +0000 (00:35 +0200)]
remove escaping

10 years agoadd ensure and alias parameters to modules_file compatiblity resource and use undef...
Jerome Charaoui [Mon, 10 May 2010 13:36:34 +0000 (09:36 -0400)]
add ensure and alias parameters to modules_file compatiblity resource and use undef keywork for alias

10 years agoquote var to be safer
mh [Sun, 9 May 2010 21:10:05 +0000 (23:10 +0200)]
quote var to be safer

10 years agoadd esnure and alias paramaters to module_file
Jerome Charaoui [Fri, 7 May 2010 21:44:28 +0000 (17:44 -0400)]
add esnure and alias paramaters to module_file

10 years agofix whitespace (remove tabs & trailing whitespace)
Jerome Charaoui [Fri, 7 May 2010 21:38:15 +0000 (17:38 -0400)]
fix whitespace (remove tabs & trailing whitespace)

10 years agorefactor modules_dir and modules_file to remove plural (deprecated in David Schmitt...
Jerome Charaoui [Fri, 7 May 2010 21:13:48 +0000 (17:13 -0400)]
refactor modules_dir and modules_file to remove plural (deprecated in David Schmitt's version) and adjust module_file to new module_dir structure

10 years agodocument changes in module_dir usage
Jerome Charaoui [Fri, 7 May 2010 20:55:38 +0000 (16:55 -0400)]
document changes in module_dir usage

10 years agorefactoring the last part of moduledirs
Marcel Haerry [Wed, 5 May 2010 15:26:43 +0000 (17:26 +0200)]
refactoring the last part of moduledirs

10 years agoconcatenated_file: update define to latest from David Schmitt's common module
Jerome Charaoui [Wed, 7 Apr 2010 18:25:08 +0000 (14:25 -0400)]
concatenated_file: update define to latest from David Schmitt's common module

10 years agoadd $module_dir_path in modules_dir define for compatibility with David Schmitt's...
Jerome Charaoui [Mon, 15 Feb 2010 19:15:03 +0000 (14:15 -0500)]
add $module_dir_path in modules_dir define for compatibility with David Schmitt's module

10 years agoset sed and grep relative
mh [Fri, 15 Jan 2010 08:46:31 +0000 (09:46 +0100)]
set sed and grep relative

10 years agomake the removal of line safer
mh [Sat, 9 Jan 2010 13:23:03 +0000 (14:23 +0100)]
make the removal of line safer

10 years agoadd alias for compatibility
mh [Wed, 9 Dec 2009 22:57:37 +0000 (23:57 +0100)]
add alias for compatibility

10 years agomake the define much easier
mh [Wed, 18 Nov 2009 22:34:39 +0000 (23:34 +0100)]
make the define much easier

10 years agoremove link if absent
Andreas [Wed, 18 Nov 2009 18:22:01 +0000 (19:22 +0100)]
remove link if absent

10 years agogenerate a link
Andreas [Wed, 18 Nov 2009 15:53:57 +0000 (16:53 +0100)]
generate a link

10 years agoremove extra slash
mh [Mon, 16 Nov 2009 18:51:47 +0000 (19:51 +0100)]
remove extra slash

10 years agofix missing urls to 0.25.x
mh [Sun, 15 Nov 2009 17:15:04 +0000 (18:15 +0100)]
fix missing urls to 0.25.x

10 years agofix missing urls to 0.25.x
mh [Sun, 15 Nov 2009 17:10:51 +0000 (18:10 +0100)]
fix missing urls to 0.25.x

10 years agorecursivly updating file path to new 0.25 style
mh [Sun, 1 Nov 2009 23:56:34 +0000 (00:56 +0100)]
recursivly updating file path to new 0.25 style

10 years agoremove unnecessary import
mh [Sat, 31 Oct 2009 14:26:59 +0000 (15:26 +0100)]
remove unnecessary import

10 years agomove plugin directory to fit new 0.25 style
mh [Sat, 31 Oct 2009 14:16:37 +0000 (15:16 +0100)]
move plugin directory to fit new 0.25 style

10 years agowhitespace
mh [Wed, 10 Jun 2009 18:00:31 +0000 (20:00 +0200)]
whitespace

10 years agofixing typo
mh [Thu, 30 Apr 2009 17:43:09 +0000 (17:43 +0000)]
fixing typo

10 years agoadded a strlength function to get the length of a string into puppet
mh [Thu, 30 Apr 2009 13:40:43 +0000 (13:40 +0000)]
added a strlength function to get the length of a string into puppet

10 years agowe don't require any of these execs, so we don't need them
mh [Sat, 25 Oct 2008 21:25:06 +0000 (21:25 +0000)]
we don't require any of these execs, so we don't need them

10 years agofixed quoting
mh [Thu, 28 Aug 2008 10:21:38 +0000 (10:21 +0000)]
fixed quoting

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