puppet_common.git
8 years agoremove delete_lines, as this define is obsolete
mh [Thu, 14 Apr 2011 19:10:09 +0000 (21:10 +0200)]
remove delete_lines, as this define is obsolete

10 years agoadd Upgrade notice, and additional copyright information. I didn't get everyone in...
Micah Anderson [Fri, 25 Mar 2011 17:14:14 +0000 (13:14 -0400)]
add Upgrade notice, and additional copyright information. I didn't get everyone in the copyright stanza, so please add yourself if you aren't there!

10 years agofix merge error
Micah Anderson [Fri, 25 Mar 2011 05:23:45 +0000 (01:23 -0400)]
fix merge error

10 years agoMerge remote-tracking branch 'sarava/master'
Micah Anderson [Fri, 25 Mar 2011 04:59:48 +0000 (00:59 -0400)]
Merge remote-tracking branch 'sarava/master'

Conflicts:
manifests/defines/line.pp
manifests/defines/module_dir.pp
manifests/defines/module_file.pp
manifests/init.pp

10 years agoMerge branches 'mayfirst' and 'master'
Silvio Rhatto [Thu, 24 Mar 2011 18:21:25 +0000 (15:21 -0300)]
Merge branches 'mayfirst' and 'master'

10 years agoMerge branch 'master' of git://git.mayfirst.org/mfpl/puppet-modules/common into mayfirst
Silvio Rhatto [Thu, 24 Mar 2011 18:19:05 +0000 (15:19 -0300)]
Merge branch 'master' of git://git.mayfirst.org/mfpl/puppet-modules/common into mayfirst

10 years ago$alias is a metaparam - using it as a variable name results in:
Jamie McClelland [Thu, 24 Mar 2011 15:58:06 +0000 (11:58 -0400)]
$alias is a metaparam - using it as a variable name results in:

remote: warning: alias is a metaparam; this value will inherit to all contained resources

When running puppet with --verbose

10 years agoRemove append_if_no_such_line to sync with shared module.
intrigeri [Fri, 25 Feb 2011 23:27:43 +0000 (00:27 +0100)]
Remove append_if_no_such_line to sync with shared module.

10 years agoMerge remote branch 'immerda/master'
intrigeri [Fri, 25 Feb 2011 23:25:57 +0000 (00:25 +0100)]
Merge remote branch 'immerda/master'

10 years agoRemoving duplicate module_dir definition
Silvio Rhatto [Mon, 14 Feb 2011 15:23:54 +0000 (13:23 -0200)]
Removing duplicate module_dir definition

10 years agoMerge branch 'master' of git://labs.riseup.net/shared-common
Silvio Rhatto [Mon, 14 Feb 2011 14:11:35 +0000 (12:11 -0200)]
Merge branch 'master' of git://labs.riseup.net/shared-common

Conflicts:
lib/puppet/parser/functions/gsub.rb
lib/puppet/parser/functions/prefix_with.rb
lib/puppet/parser/functions/slash_escape.rb
lib/puppet/parser/functions/split.rb
lib/puppet/parser/functions/substitute.rb
manifests/classes/lsb_release.pp
manifests/defines/concatenated_file.pp
manifests/defines/config_file.pp
manifests/defines/line.pp
manifests/defines/module_dir.pp
manifests/defines/module_file.pp
manifests/defines/replace.pp
manifests/init.pp

10 years agorather directly read the file than use the puppet function
mh [Fri, 31 Dec 2010 10:55:38 +0000 (11:55 +0100)]
rather directly read the file than use the puppet function

10 years agoadd a new function called tfile
mh [Thu, 30 Dec 2010 13:04:53 +0000 (14:04 +0100)]
add a new function called tfile

10 years agoMerge remote branch 'immerda/master'
intrigeri [Thu, 16 Dec 2010 12:58:10 +0000 (13:58 +0100)]
Merge remote branch 'immerda/master'

10 years agoadd array_include function
mh [Sun, 12 Dec 2010 12:23:53 +0000 (13:23 +0100)]
add array_include function

10 years agoMerge remote branch 'immerda/master'
intrigeri [Sat, 11 Dec 2010 12:23:23 +0000 (13:23 +0100)]
Merge remote branch 'immerda/master'

10 years agoFix typo in comment.
intrigeri [Sat, 11 Dec 2010 12:18:43 +0000 (13:18 +0100)]
Fix typo in comment.

10 years agoMerge remote branch 'shared/master'
intrigeri [Sat, 11 Dec 2010 12:15:33 +0000 (13:15 +0100)]
Merge remote branch 'shared/master'

Conflicts:
lib/puppet/parser/functions/split.rb

10 years agoremove gsub in favor of builtin regsubst
mh [Thu, 9 Dec 2010 22:24:07 +0000 (23:24 +0100)]
remove gsub in favor of builtin regsubst

10 years agoMerge remote branch 'lavamind/master'
mh [Tue, 30 Nov 2010 00:26:19 +0000 (01:26 +0100)]
Merge remote branch 'lavamind/master'

10 years agoMerge remote branch 'cmaisonneuve/master'
intrigeri [Wed, 10 Nov 2010 10:56:59 +0000 (11:56 +0100)]
Merge remote branch 'cmaisonneuve/master'

10 years agoadd a new function & tests for that function
mh [Wed, 27 Oct 2010 22:19:44 +0000 (00:19 +0200)]
add a new function & tests for that function

10 years agoenable possibility to set a concatenated file to absent
mh [Wed, 20 Oct 2010 23:53:48 +0000 (01:53 +0200)]
enable possibility to set a concatenated file to absent

10 years agogo on uniq strings
mh [Wed, 20 Oct 2010 23:05:22 +0000 (01:05 +0200)]
go on uniq strings

Looks like puppet has some internal representation which
is not comparable.

10 years agoadd a function to do some array work
mh [Wed, 20 Oct 2010 22:40:23 +0000 (00:40 +0200)]
add a function to do some array work

10 years agoadd a join function
mh [Wed, 20 Oct 2010 22:10:28 +0000 (00:10 +0200)]
add a join function

10 years agoremove some legacy functions that are now in upstream
mh [Wed, 20 Oct 2010 22:04:25 +0000 (00:04 +0200)]
remove some legacy functions that are now in upstream

10 years agoAdd multi_source_template function
Jerome Charaoui [Fri, 24 Sep 2010 18:41:07 +0000 (14:41 -0400)]
Add multi_source_template function

10 years agoUse default 'puppet' filebucket instead of arbitrary 'server' for config_file backup
Jerome Charaoui [Tue, 21 Sep 2010 20:28:57 +0000 (16:28 -0400)]
Use default 'puppet' filebucket instead of arbitrary 'server' for config_file backup

10 years agoMerge remote branch 'immerda/master'
Micah Anderson [Thu, 2 Sep 2010 23:04:29 +0000 (19:04 -0400)]
Merge remote branch 'immerda/master'

Conflicts:
lib/puppet/parser/functions/gsub.rb
lib/puppet/parser/functions/prefix_with.rb
lib/puppet/parser/functions/sha1.rb
lib/puppet/parser/functions/slash_escape.rb
lib/puppet/parser/functions/substitute.rb
manifests/classes/lsb_release.pp
manifests/defines/concatenated_file.pp
manifests/defines/config_file.pp
manifests/defines/line.pp
manifests/defines/module_dir.pp
manifests/defines/module_file.pp
manifests/defines/replace.pp
manifests/init.pp

10 years agoremove unnecessary fileserver variable (#2460) round II
mh [Wed, 11 Aug 2010 13:56:40 +0000 (15:56 +0200)]
remove unnecessary fileserver variable (#2460) round II

10 years agoremove unnecessary fileserver variable (#2460)
mh [Sat, 7 Aug 2010 00:12:13 +0000 (02:12 +0200)]
remove unnecessary fileserver variable (#2460)

10 years agoescaping
mh [Sun, 1 Aug 2010 23:53:41 +0000 (01:53 +0200)]
escaping

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

11 years agoReverting last changes: workaround doesn't work
Silvio Rhatto [Mon, 28 Dec 2009 01:48:06 +0000 (23:48 -0200)]
Reverting last changes: workaround doesn't work

11 years agoWorkaround for puppet issue #2786 (3)
Silvio Rhatto [Mon, 28 Dec 2009 01:39:46 +0000 (23:39 -0200)]
Workaround for puppet issue #2786 (3)

11 years agoWorkaround for puppet issue #2786 (2)
Silvio Rhatto [Mon, 28 Dec 2009 01:17:23 +0000 (23:17 -0200)]
Workaround for puppet issue #2786 (2)

11 years agoWorkaround for puppet issue #2786
Silvio Rhatto [Mon, 28 Dec 2009 01:13:42 +0000 (23:13 -0200)]
Workaround for puppet issue #2786

11 years agoAdding delete_lines
Silvio Rhatto [Sat, 26 Dec 2009 00:33:24 +0000 (22:33 -0200)]
Adding delete_lines

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