summaryrefslogtreecommitdiff
path: root/manifests
AgeCommit message (Collapse)Author
2016-09-22fix missing whitespaceTech SOGEECOM
2016-09-22fix issue #15Tech SOGEECOM
2016-07-01Merge remote-tracking branch 'shared/master' into drop_lenny_squeeze_supportintrigeri
2016-06-30Take out comment referencing squeeze, see issue #14Jérôme Charaoui
2016-06-30Remove backports_url parameter.Jérôme Charaoui
For jessie and later releases, backports use debian_url.
2016-06-29Drop Debian lenny and squeeze support.Jérôme Charaoui
2016-06-29Merge branch 'bugfix/reboot-required-jessie' into 'master' Jerome Charaoui
Bugfix/reboot required jessie I've mistakenly marked !40 as merged :/ See merge request !46
2016-06-29Merge branch 'feature/8-make_dist-upgrade_timeout_configurable' into 'master' LeLutin
apt::dist_upgrade: add a timeout parameter (#8). See merge request !45
2016-06-29Merge branch 'bugfix/drop-obsolete-code-and-global-variable-in-apt-cron' ↵LeLutin
into 'master' Drop apt::cron::download, and turn $apt_cron_hours into a class parameter for ap… …t::cron::dist_upgrade. I've introduced apt::cron::download, am not using it anymore, and have never seen anyone else submit a bug or a merge request for it. Thus, I feel pretty confident in dropping it. And this allows me to trivially get rid of the $apt_cron_hours global variable noticed by LeLutin in #13. (I've mistakenly marked !44 as merged) See merge request !47
2016-06-29Remove redundant symlinks for the Debian apticron template, fixes #2Jérôme Charaoui
2016-06-29Remove redundant symlinks for the Debian listchanges template, fixes #2Jérôme Charaoui
2016-06-29Move documentation to README, and expand a bit on it.intrigeri
2016-06-29Merge remote-tracking branch 'shared/master' into ↵intrigeri
bugfix/drop-obsolete-code-and-global-variable-in-apt-cron
2016-06-29apt::reboot_required_notify: get rid of temporary variable.intrigeri
2016-06-29apt::reboot_required_notify::jessie: explicitly check that ↵intrigeri
$apt::use_backports is true when running Jessie. Otherwise, it would fail anyway when trying to install reboot-notifier, but in a way less user-friendly. Thanks to lavamind for the suggestion!
2016-06-29Merge remote-tracking branch 'shared/master' into bugfix/reboot-required-jessieintrigeri
2016-06-29apt::dist_upgrade: add a timeout parameter (#8).intrigeri
2016-06-29Drop apt::cron::download, and turn $apt_cron_hours into a class parameter ↵intrigeri
for apt::cron::dist_upgrade. I've introduced apt::cron::download, am not using it anymore, and have never seen anyone else submit a bug or a merge request for it. Thus, I feel pretty confident in dropping it. And this allows me to trivially get rid of the $apt_cron_hours global variable noticed by LeLutin in #13.
2016-06-29Fix some minor lint issuesGabriel Filion
This was shown by the testing that was added in merge request !34
2016-06-29Merge remote-tracking branch 'lelutin-gitlab/backports_follow_debian_url' ↵intrigeri
into shared-master
2016-06-29Merge branch 'merge_debian_preferences_templates'Jérôme Charaoui
Conflicts: manifests/preferences.pp templates/Debian/preferences_jessie.erb templates/Debian/preferences_squeeze.erb templates/Debian/preferences_wheezy.erb
2016-06-27push logic behind apt::repos back in apt::paramsGabriel Filion
The logic in specifying the default value for apt::repos is in the wrong place: it should be in apt::params since this is exactly what this latter class is for. There's no special case that can involve making default the value follow the value of another parameter so there's no point in having that logic in the main class.
2016-06-27make backports_url follow debian_url by defaultGabriel Filion
backports_url was already set to the same value than debian_url by default, but it was set to the default value of debian_url. this meant that when giving a url to the debian_url parameter to the apt class, the backports_url would not follow and would still be using the default value for debian_url. with this change, when backports_url is not specified, but debian_url is, then both of them take on the value given to the debian_url. of course if backports_url is also given a value, then it keeps the value given by the user.
2016-03-16apt::reboot_required_notify::jessie: manage APT pinning to fetch ↵intrigeri
reboot-notifier from jessie-backports, when running on Jessie.
2016-03-16Merge remote-tracking branch 'shared/master' into bugfix/reboot-required-jessieintrigeri
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-10-07Merge Debian squeeze, wheezy, jessie and sid preferences templates into oneJerome Charaoui
2015-08-31reboot_required_notify: add initial support for Jessie and newer.intrigeri
Note that reboot-notifier is only in stretch/sid at the moment, so to use this one needs to configure APT pinning themselves to make this package installable.
2015-08-31reboot_required_notify::wheezy: add an "ensure" parameter, defaulting to ↵intrigeri
"present".
2015-08-31reboot_required_notify: move all code to a ::wheezy class.intrigeri
It doesn't work on Jessie and newer (#1).
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