Commit graph

346 commits

Author SHA1 Message Date
Micah Anderson
991fb6fdcf fix the exec call to be more reasonable shell and to not use a for loop variable
which is pure madness inside of puppet
2009-04-08 15:37:50 -04:00
Micah Anderson
be656a6ac8 Revert "fix the custom_key_dir process so it actually works by replacing the"
This reverts commit 21ef026475.

apt-key does not support glob options
2009-04-08 12:14:38 -04:00
Micah Anderson
49eb18e510 remove the riseup key file, we do not need to distribute this in this
module, its handled with our custom_key_dir
2009-03-16 14:36:36 -04:00
Micah Anderson
21ef026475 fix the custom_key_dir process so it actually works by replacing the
bulky for loop in the exec with a much more simpler process that
works. Also, the recurse over the key dir needed to notify the exec to
trigger it.
2009-03-16 14:35:33 -04:00
Pietro Ferrari
45165052e8 add riseup repo key 2009-03-15 12:59:13 -07:00
Micah Anderson
b8a4b550b0 Merge branch 'master' of gitosis@labs.riseup.net:module_apt 2009-03-04 16:20:33 -05:00
Micah Anderson
42d4f33f41 fix recurse parameter for $custom_key_dir to use the proper value 2009-03-04 16:20:22 -05:00
Pietro Ferrari
b68f73c026 try to use backports.org key for lenny too 2009-03-04 12:34:18 -08:00
Micah Anderson
769bf79ddd update header to include additional copyright info for my modifications 2008-09-29 16:27:18 -04:00
Micah Anderson
9b40b913ed remove duplicate definition for preseeded_package, that was a mistake 2008-09-29 14:43:11 -04:00
Micah Anderson
91a49f53c4 add the upgrade_package define
This simplifies upgrades for DSA security announcements or point-releases. This
will ensure that the named package is upgrade to the version specified, only if the
package is installed, otherwise nothing happens. If the specified version is 'latest' (the
default), then the package is ensured to be upgraded to the latest package revision when
it becomes available.

For example, the following upgrades the perl package to version 5.8.8-7etch1 (if it is
installed), it also upgrades the syslog-ng and perl-modules packages to their latest (also,
only if they are installed):

upgrade_package { "perl":
			version => '5.8.8-7etch1';
		  "syslog-ng":
			version => latest;
		  "perl-modules":
}
2008-09-29 14:36:28 -04:00
Micah Anderson
dd8e529538 reformat the README to be easier on the eyes
add more detailed information for $custom_sources_list with an example
add information about $custom_preferences with an example
add information about $custom_key_dir
add information about the apt::preseeded_package resource
add information about the apt::upgrade_package resource
2008-09-29 14:33:41 -04:00
Micah Anderson
377e095431 add the preseeded_package define which simplifies apt preseeding
automatically making sure that the preseeding directories are present
and pulling the seed file from templates/$debian_version/$name.seeds
which enables you to define things such as:

apt::preseeded_package { [ locales, popularity-contest, apt-listchanges, apticron]: }

and the .seed files will be automatically pulled and populated
2008-09-29 13:39:18 -04:00
Micah Anderson
ee506f7586 need to set a null case for the $custom_key_dir variable so that it will fire properly when not set 2008-09-29 12:54:13 -04:00
Micah Anderson
aefa010160 fix another trivial syntax error 2008-09-29 12:29:23 -04:00
Micah Anderson
4995dff49d fix missing comma syntax error 2008-09-29 12:20:43 -04:00
Micah Anderson
1ce283591f add $custom_key_dir which lets you specify a directory where you will
place apt repository keys that should be added to apt-key
2008-09-29 12:12:31 -04:00
Micah Anderson
e4fa745ba0 move the dependency on the latest debian-archive-keyring package
outside of the etch lsbdistcodename selector as this package should be
the latest on every release of debian, not just etch
2008-09-28 18:17:31 -04:00
Micah Anderson
82e7e762b9 abstract the apt preferences so that custom preferences can be set,
while maintaining a sane default preferences set can be set. This is
done in the same manner that the custom/default sources_list are handled
2008-09-28 18:10:28 -04:00
Micah Anderson
e0a6bf1b7a Revert "turn preferences into a simple file"
This reverts commit 0011e70a24.
2008-09-28 18:00:56 -04:00
Micah Anderson
746d47f424 set default sources.list to use the most generic mirror. customized
mirrors that are closer, or internal proxy mirror configurations
should be set in the $custom_sources_list instead so that the default
is kept as generic as possible
2008-09-28 17:59:17 -04:00
Micah Anderson
7ad7d5658d remove unused and commented out entries in sources.list 2008-09-28 17:57:11 -04:00
Micah Anderson
7652955acc Revert "move backports in a seperate class, add the Cache-Limit hack to all configs, try to depend on lsb-release properly"
This reverts commit 3ecbee6a27.
2008-09-28 17:56:39 -04:00
Micah Anderson
ab49db3d67 Revert " split out backports and unstable sources.list"
This reverts commit d203a72afc.

Conflicts:

	templates/sources.list+backports.erb
	templates/sources.list+unstable.erb
2008-09-28 17:56:11 -04:00
Antoine Beaupre
3ecbee6a27 move backports in a seperate class, add the Cache-Limit hack to all configs, try to depend on lsb-release properly 2008-07-03 18:05:58 -04:00
Antoine Beaupre
45e01f3eb9 use the closest mirror 2008-07-03 18:05:09 -04:00
root
a717e86183 assert_lsbdistcodename for custom sources list too 2008-01-25 16:57:53 -05:00
root
d203a72afc split out backports and unstable sources.list 2008-01-25 16:50:17 -05:00
root
383137e0fb use apt-get instead of dselect and create a dselect class for dselect configuration, making dselect optional 2008-01-25 16:41:26 -05:00
root
0011e70a24 turn preferences into a simple file 2008-01-25 16:36:33 -05:00
root
7e0d36279b sundry cleanup after offline work 2007-10-09 14:32:47 +02:00
root
e65ba34330 syntax fixes for offline work 2007-10-09 10:53:07 +02:00
Micah Anderson
de14197805 Make ls_release.pp more robust and handle sid in sources.list.erb 2007-10-08 11:40:09 +02:00
Micah Anderson
7238b4c011 Fix some grammar 2007-10-08 11:40:09 +02:00
root
bb6bdb7701 add $custom_sources_list to override sources.list contents 2007-09-14 10:24:24 +02:00
David Schmitt
5e254ad298 Add README to apt module
additionally use modules_dir and remove legacy file removal
2007-08-16 09:32:09 +02:00
david
8dfbc303a5 another try at fixing the debian-backports-key
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@161 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-08-03 15:07:32 +00:00
david
911386327e tighten down deps for backports key
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@141 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-08-01 11:25:58 +00:00
david
8b0afdb2c8 add my grandmother's PC and some minor fixes
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@124 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-07-21 09:14:02 +00:00
david
888a4c1a06 rename all $bas_dir variables
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@123 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-07-14 09:42:37 +00:00
david
27aebdb066 general catchup
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@116 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-07-12 18:30:40 +00:00
david
82c10cd0d8 add the key package for the backports key
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@107 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-07-11 11:59:15 +00:00
david
ebb51cf754 use dselect to update dpkg's available file
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@102 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-07-03 10:20:19 +00:00
david
624475288e after going the whole way with assert_lsb..., really use the var
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@65 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-06-27 12:28:13 +00:00
david
af6e1e6c8b minor workaround for 0.22.4 clients
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@59 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-06-25 10:16:59 +00:00
david
f0c91f753a modularised apt
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@58 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-06-25 09:50:19 +00:00