aboutsummaryrefslogtreecommitdiff
path: root/manifests
AgeCommit message (Collapse)Author
2016-03-31Merge remote-tracking branch 'shared/master' into developHEADmasterdevelopSilvio Rhatto
Conflicts: README files/Debian/50unattended-upgrades.lenny files/Debian/50unattended-upgrades.wheezy manifests/init.pp manifests/params.pp manifests/unattended_upgrades.pp templates/Debian/preferences_jessie.erb templates/Debian/sources.list.erb
2016-02-25Remove loglevel directive from Exec[update_apt]varac
When using puppet apply (v 3.7), loglevel 'info' won't show the output on error. This is bad for debugging.
2016-02-02Manage unattended-upgrades log directoryGabriel Filion
In some situations, the log directory for unattended-upgrades might not exist. In those cases, packages will not get upgraded! unattended-upgrades crashes with a python backtrace because the log dir is not present.
2016-02-01[refactor] Get rid of the disable_update parametervarac
The `disable_update` parameter has been removed. The main apt class defaults to *not* run an `apt-get update` on every run anyway so this parameter seems useless. You can include the `apt::update` class if you want it to be run every time.
2016-02-01[feat] Remove `apt-get autoclean` from apt::updatevarac
`apt-get autoclean` should not be run on every puppetrun when including `apt::update`, but rather be configured as a `APT::Periodic` task that is run by cron, see https://wiki.debian.org/UnattendedUpgrades.
2016-02-01[refactor] Unify `apt-get update` into one resourcevarac
Before, there were two Execs that did an `apt-get update`, `Exec[refresh_apt]` and `Exec[apt_updated]`, which were triggered by different resources. This changes gets rid of the first one, and all resources now depend on `Exec[apt_updated]`.
2016-01-05[bug] Deploy preferene snippets before apt_refreshvarac
When pinning packages with apt::preferences_snippet, we need to make sure these get deployed before an `apt-get update` is triggered, so pinned packages can get installed in the right way with a single puppetrun.
2015-12-13[feat] Don't run an additional apt-get updatevarac
When adding custom keys, an additional `apt-get update` would be run before the Exec['refresh_apt'], which don't make sense.
2015-12-04remove requirement on lsb package for sources.list fileGabriel Filion
Managing requirements for installing the lsb package has proven over time to make no sense. The best approach to this is to require lsb-release to be installed alongside puppet, since otherwise there are so much facts that get no value during the run and you end up needing to run puppet twice to get the real end result. Also, since we're not including a class that is actually installing the 'lsb' package, that require line makes it so that including the apt module doesn't work, and there's no documentation in the README about needing to provide a package{'lsb':} resource with the apt class. Because of all that, it makes more sense to just get rid of that require line and mark lsb as a pre-requirement in the README file.
2015-12-04Simplify conditional expressionsJerome Charaoui
2015-12-04Switch old $release and $codename local variables to new debian_* factsJerome Charaoui
2015-12-04move backports to snippetsAntoine Beaupré
this allows for third party modules to enable this on the fly
2015-12-04Use $ubuntu_url as default value of $backports_url on UbuntuGabriel Filion
Ubuntu shouldn't be using debian backports by default. This was written by Anoine Beaupré, but split from the commit "move backports to snippets" since the change is unrelated and needs to be more visible in the commit history.
2015-10-09Make it possible to specify own template.Gabriel Filion
Micah found an issue with usage of config_content: if you call template('...') yourself and pass that on to config_content, then your template gets evaluated without all of the variables. This means that you don't hava access to blacklisted_packages, mail_recipient or mailonlyonerror. To make it possible to use a different template while still having access to those variables, let's make it possible to change the template name that we're using.
2015-10-09Fix merge conflict in READMEJerome Charaoui
2015-08-31Add validation for apt::key's name.intrigeri
It's great to document requirements in README, but error'ing out whenever the user messes up is even better IMO.
2015-08-31Quote apt-key variable parameter.intrigeri
This is not perfect protection against special chars that the shell may interpret, but should help at least in case $name contains spaces.
2015-08-31Linting.intrigeri
2015-08-26fix install location of apt::key::plainAntoine Beaupré
2015-06-11fix typoAntoine Beaupré
2015-06-11allow for binary keys that can be removedAntoine Beaupré
2015-06-11add apt::key resource to deploy arbitrary keysAntoine Beaupré
the rationale of this is that isn't useful for third party modules, because they cannot inject keys in there without some serious apt class hijacking
2015-06-09allow possibility of disabling backportsAntoine Beaupré
2015-05-11Replace debian_*() parser functions with factsJerome Charaoui
* Removes dependency on lsb-release and/or Facter >1.7 (values are based on $::lsbdistcodename, when available) * Simplifies maintenance: only lib/facter/util/* require updates as new releases are made Caveats: * apt::codename is removed; to override debian_* facts, set the FACTER_debian_codename environment variable for puppet * If tracking unstable, make sure lsb-release is installed, as other methods can't tell between testing and unstable
2015-05-06don't call Exec[refresh_apt] after deploying unattended-upgrades configvarac
unattended-upgrades is run on a daily base by cron, no need to force an `apt-get update` after changing this file.
2015-05-06add $ensure_version parameter, to allow for overriding which version of ↵Micah Anderson
unattended-upgrades is installed
2015-04-28the http redirector has a new official homeMatt Taggart
2015-04-28invert the backports logic because squeeze and older were the exception and ↵Matt Taggart
wheezy and newer the default
2015-04-17Add parameter for blacklisting a list of packages.Gabriel Filion
This functionality was lost because we stopped using a source file for the 50unattended-upgrades file that would previously let one override the configuration per release or per host.
2015-04-17Parametrize unattended-upgrades mail recipientGabriel Filion
2015-04-17make it possible to opt out of MailOnlyOnErrorGabriel Filion
This combines all files into one template. It should make maintenance easier.
2015-02-28Add missing "include common::moduledir".intrigeri
Without this, $common::moduledir::module_dir_path is empty.
2015-02-20Merge branch 'master' of git://git.puppet.immerda.ch/module-aptJerome Charaoui
Conflicts: templates/Debian/sources.list.erb
2015-02-07Merge remote-tracking branch 'shared/master' into feature/squeeze-ltsintrigeri
2015-02-07Add support for Squeeze LTS.intrigeri
2014-12-06make it optional to end sources in ".list"Gabriel Filion
2014-01-08use the new style common modulemh
2014-01-08use stdlib instead of the common modulemh
2013-12-23May disable apt::proxy_client (2)Silvio Rhatto
2013-12-23May disable apt::proxy_clientSilvio Rhatto
2013-12-08Remove Lenny-related comment that was made obsolete a year ago by commit 822950.intrigeri
2013-07-27Make custom_sources_list into a class paramterGabriel Filion
and thus remove the last global variable.
2013-06-27remove unnecessary override and accidentally merge issueMicah Anderson
2013-06-25Merge branch 'bug/fix_push' into leapMicah Anderson
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
2013-06-25fix unattended-upgrades dependency cyclevarac
2013-06-25using distribution sprecific files againvarac
2013-06-25Make custom_key_dir a class parameter and not a global variableSilvio Rhatto
Conflicts: manifests/init.pp
2013-06-25remove unnecessary before dependency on the /etc/apt/preferences file in ↵Micah Anderson
unattended_upgrades.pp
2013-06-20fix for the following: warning: Dynamic lookup of $custom_preferences at ↵Micah Anderson
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.
2013-05-26Merge branch 'master' into leapMicah Anderson