]> gitweb.fluxo.info Git - puppet-apt.git/log
puppet-apt.git
11 years agoadd jessie preferences file
Micah Anderson [Fri, 21 Mar 2014 16:03:56 +0000 (12:03 -0400)]
add jessie preferences file

12 years agouse the new style common module
mh [Wed, 8 Jan 2014 20:28:42 +0000 (21:28 +0100)]
use the new style common module

12 years agouse stdlib instead of the common module
mh [Wed, 8 Jan 2014 20:27:05 +0000 (21:27 +0100)]
use stdlib instead of the common module

12 years agoMay disable apt::proxy_client (2)
Silvio Rhatto [Mon, 23 Dec 2013 18:26:13 +0000 (16:26 -0200)]
May disable apt::proxy_client (2)

12 years agoMay disable apt::proxy_client
Silvio Rhatto [Mon, 23 Dec 2013 18:01:47 +0000 (16:01 -0200)]
May disable apt::proxy_client

12 years agoAdapt documentation to take into account we haven't been supporting Lenny for more...
intrigeri [Sun, 8 Dec 2013 22:00:22 +0000 (22:00 +0000)]
Adapt documentation to take into account we haven't been supporting Lenny for more than a year.

12 years agoRemove Lenny-related comment that was made obsolete a year ago by commit 822950.
intrigeri [Sun, 8 Dec 2013 21:58:38 +0000 (21:58 +0000)]
Remove Lenny-related comment that was made obsolete a year ago by commit 822950.

12 years agoDrop Debian Etch and Lenny compatibility.
intrigeri [Sun, 8 Dec 2013 21:58:20 +0000 (21:58 +0000)]
Drop Debian Etch and Lenny compatibility.

Both have been unsupported for ages.

12 years agoMake custom_sources_list into a class paramter
Gabriel Filion [Sat, 27 Jul 2013 10:14:47 +0000 (06:14 -0400)]
Make custom_sources_list into a class paramter

and thus remove the last global variable.

12 years agoremove unnecessary override and accidentally merge issue
Micah Anderson [Thu, 27 Jun 2013 15:58:39 +0000 (11:58 -0400)]
remove unnecessary override and accidentally merge issue

12 years agoMerge branch 'bug/fix_push' into leap
Micah Anderson [Tue, 25 Jun 2013 20:57:07 +0000 (16:57 -0400)]
Merge branch 'bug/fix_push' into leap

This gets us fixes for the unattended_upgrades in wheezy, as well as the custom_key_dir class parameter replacement of the global variable
Conflicts:
manifests/unattended_upgrades.pp

12 years agoRegression: lost MailOnlyOnError for unattended-upgrades
Gabriel Filion [Fri, 31 May 2013 14:56:23 +0000 (10:56 -0400)]
Regression: lost MailOnlyOnError for unattended-upgrades

Since only wheezy supports it, let's add it back only for wheezy.

Signed-off-by: Gabriel Filion <gabster@lelutin.ca>
12 years agoChanging 'testing' to 'wheezy' on 50unattended-upgrades.wheezy
Silvio Rhatto [Wed, 29 May 2013 15:51:18 +0000 (12:51 -0300)]
Changing 'testing' to 'wheezy' on 50unattended-upgrades.wheezy

12 years agoUpdating unattended-upgrades squeeze config as oldstable (2)
Silvio Rhatto [Sun, 26 May 2013 17:39:41 +0000 (14:39 -0300)]
Updating unattended-upgrades squeeze config as oldstable (2)

12 years agofix unattended-upgrades dependency cycle
varac [Sun, 14 Apr 2013 13:06:30 +0000 (15:06 +0200)]
fix unattended-upgrades dependency cycle

12 years agousing distribution sprecific files again
varac [Sun, 14 Apr 2013 12:54:10 +0000 (14:54 +0200)]
using distribution sprecific files again

12 years agofix default unattended-upgrades config file
varac [Sun, 14 Apr 2013 11:44:42 +0000 (13:44 +0200)]
fix default unattended-upgrades config file

12 years agoMake custom_key_dir a class parameter and not a global variable
Silvio Rhatto [Sat, 26 Jan 2013 17:20:30 +0000 (15:20 -0200)]
Make custom_key_dir a class parameter and not a global variable

Conflicts:
manifests/init.pp

12 years agoremove unnecessary before dependency on the /etc/apt/preferences file in unattended_u...
Micah Anderson [Tue, 25 Jun 2013 15:31:22 +0000 (11:31 -0400)]
remove unnecessary before dependency on the /etc/apt/preferences file in unattended_upgrades.pp

12 years agofix for the following: warning: Dynamic lookup of $custom_preferences at modules...
Micah Anderson [Thu, 20 Jun 2013 19:32:51 +0000 (15:32 -0400)]
fix for the following: warning: Dynamic lookup of $custom_preferences at modules/apt/manifests/preferences_snippet.pp:16 is deprecated. For more information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. To see the change in behavior, use the --debug flag.

12 years agoChanging 'testing' to 'wheezy' on 50unattended-upgrades.wheezy
Silvio Rhatto [Wed, 29 May 2013 15:51:18 +0000 (12:51 -0300)]
Changing 'testing' to 'wheezy' on 50unattended-upgrades.wheezy

12 years agoMerge branch 'master' into leap
Micah Anderson [Sun, 26 May 2013 21:04:05 +0000 (17:04 -0400)]
Merge branch 'master' into leap

12 years agoUpdating unattended-upgrades squeeze config as oldstable (2)
Silvio Rhatto [Sun, 26 May 2013 17:39:41 +0000 (14:39 -0300)]
Updating unattended-upgrades squeeze config as oldstable (2)

12 years agoRemoving old unattended-upgrades' configs
Silvio Rhatto [Sun, 26 May 2013 17:39:04 +0000 (14:39 -0300)]
Removing old unattended-upgrades' configs

12 years agoMerge branch 'nadir'
Silvio Rhatto [Sun, 26 May 2013 17:29:46 +0000 (14:29 -0300)]
Merge branch 'nadir'

12 years agoUpdating unattended-upgrades squeeze config as oldstable
Silvio Rhatto [Sun, 26 May 2013 17:24:14 +0000 (14:24 -0300)]
Updating unattended-upgrades squeeze config as oldstable

12 years agoUpdating unattended-upgrades squeeze config
Silvio Rhatto [Sat, 25 May 2013 22:53:23 +0000 (19:53 -0300)]
Updating unattended-upgrades squeeze config

12 years agoAdding back custom_key_dir parameter (2)
Silvio Rhatto [Mon, 20 May 2013 21:15:03 +0000 (18:15 -0300)]
Adding back custom_key_dir parameter (2)

12 years agoAdding back custom_key_dir parameter
Silvio Rhatto [Mon, 20 May 2013 21:13:38 +0000 (18:13 -0300)]
Adding back custom_key_dir parameter

12 years agoMerge branch 'master' of ssh://labs.riseup.net/shared-apt
Silvio Rhatto [Mon, 20 May 2013 21:08:15 +0000 (18:08 -0300)]
Merge branch 'master' of ssh://labs.riseup.net/shared-apt

Conflicts:
manifests/init.pp

12 years agoWheezy was released!
intrigeri [Fri, 3 May 2013 15:09:34 +0000 (17:09 +0200)]
Wheezy was released!

12 years agoMerge branch 'nadir_lenny' into nadir_master nadir
varac [Tue, 30 Apr 2013 06:37:21 +0000 (08:37 +0200)]
Merge branch 'nadir_lenny' into nadir_master

12 years agoThere is no security support for lenny anymore
varac [Tue, 30 Apr 2013 06:36:10 +0000 (08:36 +0200)]
There is no security support for lenny anymore

12 years agoAvoid variable lookup on apt::unattended_upgrades
Silvio Rhatto [Sun, 14 Apr 2013 19:17:39 +0000 (16:17 -0300)]
Avoid variable lookup on apt::unattended_upgrades

The current lookup for '::apt::custom_preferences' might lead to a lookup error
like

  (Scope(Class[Apt::Unattended_upgrades])) Could not look up qualified variable
  '::apt::custom_preferences'; class ::apt has not been evaluated at
  /etc/puppet/modules/apt/manifests/unattended_upgrades.pp:17

Since the lookup apparently happens during compilation time, this commits tries
to fix this issue by using a define() function call instead of the lookup.

12 years agoQualifying apt class at apt::unattended_upgrades
Silvio Rhatto [Sun, 14 Apr 2013 18:49:40 +0000 (15:49 -0300)]
Qualifying apt class at apt::unattended_upgrades

12 years agofix unattended-upgrades dependency cycle
varac [Sun, 14 Apr 2013 13:06:30 +0000 (15:06 +0200)]
fix unattended-upgrades dependency cycle

12 years agoMerge branch 'nadir_issue_4227' into nadir_master
varac [Sun, 14 Apr 2013 12:55:15 +0000 (14:55 +0200)]
Merge branch 'nadir_issue_4227' into nadir_master

Conflicts:
manifests/unattended_upgrades.pp

12 years agousing distribution sprecific files again
varac [Sun, 14 Apr 2013 12:54:10 +0000 (14:54 +0200)]
using distribution sprecific files again

12 years agoMerge branch 'nadir_issue_4227' into nadir_master
varac [Sun, 14 Apr 2013 11:45:35 +0000 (13:45 +0200)]
Merge branch 'nadir_issue_4227' into nadir_master

12 years agofix default unattended-upgrades config file
varac [Sun, 14 Apr 2013 11:44:42 +0000 (13:44 +0200)]
fix default unattended-upgrades config file

12 years agoMerge branch 'master' of code.leap.se:puppet_apt into nadir_master
varac [Sun, 14 Apr 2013 11:25:21 +0000 (13:25 +0200)]
Merge branch 'master' of code.leap.se:puppet_apt into nadir_master

12 years agoMerge branch 'master' of labs.riseup.net:shared-apt into nadir_master
varac [Sun, 14 Apr 2013 11:24:58 +0000 (13:24 +0200)]
Merge branch 'master' of labs.riseup.net:shared-apt into nadir_master

12 years agoSet custom unattended-upgrades config atop of wheezy's default settings
Silvio Rhatto [Mon, 1 Apr 2013 16:14:41 +0000 (13:14 -0300)]
Set custom unattended-upgrades config atop of wheezy's default settings

12 years agoAdd default 50unattended-upgrades for wheezy
Silvio Rhatto [Mon, 1 Apr 2013 16:13:07 +0000 (13:13 -0300)]
Add default 50unattended-upgrades for wheezy

12 years agoUse the main Debian archive's URL as the default URL for backports on Wheezy.
intrigeri [Wed, 20 Mar 2013 21:11:46 +0000 (22:11 +0100)]
Use the main Debian archive's URL as the default URL for backports on Wheezy.

The backports are now fully integrated with the main archive.

See:
https://labs.riseup.net/code/issues/4270
https://lists.debian.org/debian-devel-announce/2013/03/msg00007.html

12 years agoMove apt class parameters to a ::params class.
intrigeri [Wed, 20 Mar 2013 21:09:29 +0000 (22:09 +0100)]
Move apt class parameters to a ::params class.

This brings no behaviour change yet, but will allow to set class parameters'
default value depending on system facts.

12 years agoRevert "deploy /etc/apt/preferences before File['apt_config']"
varac [Fri, 15 Mar 2013 19:28:25 +0000 (20:28 +0100)]
Revert "deploy /etc/apt/preferences before File['apt_config']"

This reverts commit 7e8113b3fcf6f251ca9d5e2f39f43fd024058c97.

see https://leap.se/code/issues/1990 for the miserious details.

12 years agodeploy /etc/apt/preferences before File['apt_config']
varac [Thu, 14 Mar 2013 21:19:33 +0000 (22:19 +0100)]
deploy /etc/apt/preferences before File['apt_config']

12 years agoapt keys: always deploy before Exec[refresh_apt], also with $custom_preferences
varac [Thu, 14 Mar 2013 19:01:35 +0000 (20:01 +0100)]
apt keys: always deploy before Exec[refresh_apt], also with $custom_preferences

12 years agoMerge remote-tracking branch 'origin/master' into nadir_master
varac [Wed, 6 Mar 2013 09:14:59 +0000 (10:14 +0100)]
Merge remote-tracking branch 'origin/master' into nadir_master

12 years agoMerge branch 'master' of ssh://labs.riseup.net/shared-apt
Silvio Rhatto [Tue, 5 Mar 2013 18:19:07 +0000 (15:19 -0300)]
Merge branch 'master' of ssh://labs.riseup.net/shared-apt

12 years agofix #4249: Ubuntu: wrong sources.list entries
varac [Tue, 5 Mar 2013 08:39:23 +0000 (09:39 +0100)]
fix #4249: Ubuntu: wrong sources.list entries

12 years agoremoved old unneccessary unattended-upgrades release specific files
varac [Sun, 3 Mar 2013 08:49:36 +0000 (09:49 +0100)]
removed old unneccessary unattended-upgrades release specific files

12 years agoMerge remote-tracking branch 'remotes/origin/master' into nadir_master
varac [Sun, 3 Mar 2013 08:26:49 +0000 (09:26 +0100)]
Merge remote-tracking branch 'remotes/origin/master' into nadir_master

Conflicts:
README
files/50unattended-upgrades
files/lenny/50unattended-upgrades
files/squeeze/50unattended-upgrades
manifests/dist_upgrade.pp
manifests/init.pp
manifests/upgrade_package.pp

12 years agoDon't check for a package priority to be set when removing an APT preferences snippet.
intrigeri [Wed, 23 Jan 2013 22:10:40 +0000 (23:10 +0100)]
Don't check for a package priority to be set when removing an APT preferences snippet.

The problem I'm facing is that the sanity checks prevent one from
using a simple:

  apt::preferences_snippet { "bla": ensure => absent }

So, first set a default value for the `priority' parameter, so
that it's not required anymore. Second, add a sanity check to
error out when priority is not set, to get the safe old behaviour.

Then, wrap all sanity checks about arguments within
a "if $ensure == 'present'" block.

13 years agoInstall unattended-upgrades after Exec[refresh_apt]
varac [Fri, 1 Feb 2013 10:01:23 +0000 (11:01 +0100)]
Install unattended-upgrades after Exec[refresh_apt]

Before, including apt::unattended_upgrades on a host without
the unattended-upgrades package would fail on the first run,
because the module tries to install the package before apt is
finally configured.
This commit does:

- introduce the option $refresh_apt for apt::apt_conf
  (Defaults to true). Can be used to not trigger Exec['refresh_apt']
- install the unattended-upgrades package after a final
  Exec['refresh_apt']. To not run into a loop, it calls
  Apt_conf['50unattended-upgrades'] with the option
  refresh_apt => false, which is also not needed for the configuration

13 years agoMerge remote-tracking branch 'remotes/shared/master'
varac [Wed, 30 Jan 2013 15:47:30 +0000 (16:47 +0100)]
Merge remote-tracking branch 'remotes/shared/master'

13 years agoMake custom_key_dir a class parameter and not a global variable (2)
Silvio Rhatto [Sat, 26 Jan 2013 17:21:02 +0000 (15:21 -0200)]
Make custom_key_dir a class parameter and not a global variable (2)

13 years agoMake custom_key_dir a class parameter and not a global variable
Silvio Rhatto [Sat, 26 Jan 2013 17:20:30 +0000 (15:20 -0200)]
Make custom_key_dir a class parameter and not a global variable

13 years agoadded Ubuntu/preferences_quantal.erb
varac [Tue, 22 Jan 2013 20:28:52 +0000 (21:28 +0100)]
added Ubuntu/preferences_quantal.erb

13 years agoadded custom fact apt_running
varac [Sun, 20 Jan 2013 16:32:02 +0000 (17:32 +0100)]
added custom fact apt_running

13 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
Silvio Rhatto [Fri, 18 Jan 2013 12:51:59 +0000 (10:51 -0200)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

Conflicts:
templates/Ubuntu/sources.list.erb

13 years agoMerge branch 'master' of git://labs.riseup.net/module_apt
Silvio Rhatto [Thu, 17 Jan 2013 20:52:18 +0000 (18:52 -0200)]
Merge branch 'master' of git://labs.riseup.net/module_apt

13 years agoDon't check for source / content to be set when removing an APT source.
intrigeri [Tue, 8 Jan 2013 17:13:23 +0000 (18:13 +0100)]
Don't check for source / content to be set when removing an APT source.

Else, the sanity checks prevent one from using a simple
  apt::sources_list { "sid.list": ensure => absent }

13 years agoMerge remote-tracking branch 'leap/feature/unattended_upgrades' into review
intrigeri [Tue, 8 Jan 2013 12:54:57 +0000 (13:54 +0100)]
Merge remote-tracking branch 'leap/feature/unattended_upgrades' into review

Conflicts:
files/lenny/50unattended-upgrades

13 years agoreplace a missed Concat reference change with File['apt_config']
Micah Anderson [Thu, 3 Jan 2013 19:55:55 +0000 (14:55 -0500)]
replace a missed Concat reference change with File['apt_config']

13 years agolint README
Micah Anderson [Thu, 3 Jan 2013 19:18:44 +0000 (14:18 -0500)]
lint README

13 years agoAdd dependency back to the README.
intrigeri [Thu, 3 Jan 2013 18:59:37 +0000 (19:59 +0100)]
Add dependency back to the README.

It was erroneously removed at some point,
but this module still depends on the "common" one,
at least for the time being.

13 years agoFix overzealous linting.
intrigeri [Thu, 3 Jan 2013 18:57:44 +0000 (19:57 +0100)]
Fix overzealous linting.

We do want to see \n expanded in this string.

13 years agoforgot ${distro_codename}-updates in 50unattended-upgrades fallback
varac [Wed, 2 Jan 2013 16:29:05 +0000 (17:29 +0100)]
forgot ${distro_codename}-updates in 50unattended-upgrades fallback

13 years agoApply code style corrections from puppet-lint
Gabriel Filion [Wed, 2 Jan 2013 13:12:11 +0000 (08:12 -0500)]
Apply code style corrections from puppet-lint

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
+ more linting by intrigeri.

Conflicts:
manifests/apticron.pp
manifests/cron/dist_upgrade.pp
manifests/cron/download.pp
manifests/dist_upgrade/initiator.pp
manifests/init.pp
manifests/listchanges.pp
manifests/preferences.pp
manifests/preseeded_package.pp
manifests/proxy_client.pp
manifests/unattended_upgrades.pp
manifests/update.pp

13 years agoSimplify codename handling.
intrigeri [Wed, 2 Jan 2013 15:54:03 +0000 (16:54 +0100)]
Simplify codename handling.

Have the codename class parameter default to $::lsbdistcodename, and derive
$release from it.

13 years agoLookup next_release in template the same way we lookup next_codename.
intrigeri [Wed, 2 Jan 2013 15:52:10 +0000 (16:52 +0100)]
Lookup next_release in template the same way we lookup next_codename.

next_release was forgotten when next_codename was fixed.

13 years agoRemove duplicated settings, resulting from wrong merge.
intrigeri [Wed, 2 Jan 2013 15:40:26 +0000 (16:40 +0100)]
Remove duplicated settings, resulting from wrong merge.

13 years agoFix README formatting.
intrigeri [Wed, 2 Jan 2013 15:39:24 +0000 (16:39 +0100)]
Fix README formatting.

13 years agoFinish updating README to reflect move to parameterized classes.
intrigeri [Wed, 2 Jan 2013 15:38:59 +0000 (16:38 +0100)]
Finish updating README to reflect move to parameterized classes.

13 years agoMerge remote-tracking branch 'riseup/immerda_27_readme' into shared
intrigeri [Wed, 2 Jan 2013 15:14:06 +0000 (16:14 +0100)]
Merge remote-tracking branch 'riseup/immerda_27_readme' into shared

Conflicts:
README
manifests/cron/dist_upgrade.pp
manifests/cron/download.pp
manifests/init.pp
manifests/preferences.pp

13 years agoMerge branch 'master' into issue_3953
Gabriel Filion [Wed, 2 Jan 2013 12:32:12 +0000 (07:32 -0500)]
Merge branch 'master' into issue_3953

13 years agoMerge remote-tracking branch 'riseup/feature/http_debian_net'
intrigeri [Sun, 30 Dec 2012 12:59:08 +0000 (13:59 +0100)]
Merge remote-tracking branch 'riseup/feature/http_debian_net'

13 years agoMerge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'
intrigeri [Sun, 30 Dec 2012 12:58:59 +0000 (13:58 +0100)]
Merge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'

13 years agoexec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update...
nadir [Wed, 19 Dec 2012 17:30:29 +0000 (18:30 +0100)]
exec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update if false

13 years agoMerge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'
varac [Wed, 19 Dec 2012 16:38:32 +0000 (17:38 +0100)]
Merge remote-tracking branch 'riseup/feature/unknown_lsbdistcodename'

13 years agoMerge branch 'master' of git://labs.riseup.net/shared-apt
varac [Wed, 19 Dec 2012 08:40:53 +0000 (09:40 +0100)]
Merge branch 'master' of git://labs.riseup.net/shared-apt

13 years agoOn a sid system, $lsbdistcodename is reports 'n/a', this doesn't work because the...
Micah Anderson [Tue, 18 Dec 2012 21:45:38 +0000 (16:45 -0500)]
On a sid system, $lsbdistcodename is reports 'n/a', this doesn't work because the module
looks for a template based on the $lsbdistcodename, so you get this error:

      Could not find template 'apt/Debian/preferences_n/a.erb'

The slash in 'n/a' appears to be a path (confusing!)

So I've set an error message when 'n/a' is encountered, encouraging the user to set the $lsbdistcodename.

I was not confident in the idea of pointing any occurrence of 'n/a' to the sid
templates, as I could imagine a case where this might occur on a non-sid system
where the lsbdistcodename isn't properly detected

13 years agoswitch default $debian_url to use http.debian.net which is more accurate and up-to...
Micah Anderson [Tue, 18 Dec 2012 21:41:10 +0000 (16:41 -0500)]
switch default $debian_url to use http.debian.net which is more accurate and up-to-date than cdn.debian.net

13 years agocomparing variabled should use double quotes (interestingly, it does work with only...
nadir [Tue, 18 Dec 2012 21:31:00 +0000 (22:31 +0100)]
comparing variabled should use double quotes (interestingly, it does work with only one too)

13 years agoupdated README to explain $apt_disable_update
nadir [Thu, 8 Nov 2012 09:16:09 +0000 (10:16 +0100)]
updated README to explain $apt_disable_update

13 years agoadded $apt_disable_update to disable "apt-get update" during puppetruns
nadir [Thu, 8 Nov 2012 09:07:38 +0000 (10:07 +0100)]
added $apt_disable_update to disable "apt-get update" during puppetruns

13 years agouse codename instead of archive variable for Debian
varac [Sun, 16 Dec 2012 10:12:15 +0000 (11:12 +0100)]
use codename instead of archive variable for Debian

13 years agosqueeze: use colon seperator to be able to include backport updates,
varac [Sun, 16 Dec 2012 09:46:21 +0000 (10:46 +0100)]
squeeze: use colon seperator to be able to include backport updates,

also force unattended upgrades

13 years agouse oldstable for lenny, force unattended upgrades
varac [Sun, 16 Dec 2012 09:43:43 +0000 (10:43 +0100)]
use oldstable for lenny, force unattended upgrades

13 years agorefactor 50unattended-upgrades default file
varac [Sun, 16 Dec 2012 09:35:59 +0000 (10:35 +0100)]
refactor 50unattended-upgrades default file

The syntax is valid from v0.70 on (Debian Wheezy, Ubuntu Oneiric
and later).
It includes Unattended-Upgrade::Origins-Patterns both for Debian
and Ubuntu, which even work on systems with both package sources
enables. On Debian- or Ubuntu-only systems it doesn't hurt to have
both Patterns included.

13 years agofrom Ubuntu oneiric (11.10) on, the 50unattended-upgrades default can be used
varac [Sun, 16 Dec 2012 09:35:04 +0000 (10:35 +0100)]
from Ubuntu oneiric (11.10) on, the 50unattended-upgrades default can be used

13 years ago50unattended-upgrades: ubuntu quantal, symlink to precise
varac [Sat, 15 Dec 2012 14:29:48 +0000 (15:29 +0100)]
50unattended-upgrades: ubuntu quantal, symlink to precise

13 years ago50unattended-upgrades: ubuntu precise version
varac [Sat, 15 Dec 2012 14:29:08 +0000 (15:29 +0100)]
50unattended-upgrades: ubuntu precise version

13 years ago50unattended-upgrades: squeeze version
varac [Sat, 15 Dec 2012 11:55:35 +0000 (12:55 +0100)]
50unattended-upgrades: squeeze version

13 years ago50unattended-upgrades: lenny version
varac [Sat, 15 Dec 2012 11:49:20 +0000 (12:49 +0100)]
50unattended-upgrades: lenny version

13 years agoReplaced fallback file for unattended-upgrades
varac [Sat, 15 Dec 2012 11:38:43 +0000 (12:38 +0100)]
Replaced fallback file for unattended-upgrades

with a decent one for wheezy onwards. The main syntax shouldn't
change, hopefully, from now on. It's a very basic generic one,
that uses variables for Distribution/Codename and should apply
to all coming distributions.

Removed from the default 50unattended-upgrades
----------------------------------------------

- APT::Periodic::Update-Package-Lists "1";
- APT::Periodic::Unattended-Upgrade "1";
cause this is not something the unattended upgrades class should
set by default.

- APT::UnattendedUpgrades::LogDir "/var/log/";
- APT::UnattendedUpgrades::LogFile "unattended_upgrades.log";
Because we shouldn't change the default logdest by default, which
is /var/log/unattended_upgrades/*.

- Blacklist for linux-image*, because this we shouldn't blacklist
  packages by default.

13 years agofix for $lsbdistcodename regression introduced by ac166366d7baa45b74e09974289d9fb2dad...
Micah Anderson [Wed, 5 Dec 2012 18:46:23 +0000 (13:46 -0500)]
fix for $lsbdistcodename regression introduced by ac166366d7baa45b74e09974289d9fb2dad38e67

What happened here was the $codename = $::lsbdistcodename was removed from
init.pp and replaced with just $::lsbdistcodename whereever $codename was
used. Then in the sources.list.erb and preferences files things were changed
like this:

<pre>+### Debian current: <%= codename = scope.lookupvar('::lsbdistcodename') %>
...
-deb <%= debian_url %> <%= codename %> <%= repos %>
...
+deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= repos=scope.lookupvar('apt::repos') %>
</pre>

This meant that the codename was always set to lsbdistcodename, and you because
in newer puppet versions you cannot assign a value to a top-level facter
variable, it is not possible to change this.

Because we cannot change $lsbdistcodename, we have to fix this by allowing the
user to pass a different, non-top-level scoped variable to the class as a
parameter, which defaults to $::lsbdistcodename, so that upgrades can be
triggered.

This is documented in the README in an upgrade notice

13 years agoadded release-specific ubuntu config for unattended upgrades
nadir [Tue, 13 Nov 2012 11:03:14 +0000 (12:03 +0100)]
added release-specific ubuntu config for unattended upgrades