summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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 'varac/beaker' into blahGabriel Filion
The README file has been changed, use the new syntax to match the rest of the file.
2016-06-29Merge remote-tracking branch 'lelutin-gitlab/backports_follow_debian_url' ↵intrigeri
into shared-master
2016-06-29add an upgrade notice about the change of default value for $reposGabriel Filion
2016-06-29Merge branch 'master' into backports_follow_debian_urlGabriel Filion
The README file was changed on the master branch and we'd like to change it to add an upgrade notice.
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-27README: make examples more compactGabriel Filion
also, use commas instead of semi-colon at the end of resources to use a coding style that makes things more extensible.
2016-06-27extraneous space in subsection titleGabriel Filion
2016-06-27Merge branch 'master' into 'master' LeLutin
Update the README to use markdown This module's documentation is pretty good, but god plain text is awful when a document gets this long. I _really_ dislike Gitlab's markdown flavor, but IMHO bad markdown is better than no markdown. You can see the result here: https://gitlab.com/sogeecom/apt/blob/master/README.md -- pollo See merge request !41
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-04-27use the same code indenting (Puppet's code guideline one) everywhere to uniformLouis-Philippe Véronneau
2016-04-27syntax highlightingLouis-Philippe Véronneau
2016-04-27typo (tris?)Louis-Philippe Véronneau
2016-04-27typo (bis)Louis-Philippe Véronneau
2016-04-27typoLouis-Philippe Véronneau
2016-04-27README is now markdownLouis-Philippe Véronneau
2016-04-27README is now markdownLouis-Philippe Véronneau
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-26Merge branch 'remove_loglevel_info' into 'master' Micah
Remove loglevel directive from Exec[update_apt] When using puppet apply (v 3.7), loglevel 'info' won't show the output on error. This is bad for debugging. micah, assigning to you because this has already bitten me while debugging a failed `apt-get update` for the leap_platform. See merge request !39
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-02Merge branch 'unatt_upg_logdir' into 'master' varac
Manage unattended-upgrades log directory 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. See merge request !38
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-20[tests] Use beaker+docker for acceptance testsvarac
Beaker together with docker is a very fast way to do acceptance testing. This commit adds basic beaker/docker support: - Add a debian jessie nodeset - Test if the module applies idempotentially, so it doesn't change resources on a second run with the same parameters. https://github.com/puppetlabs/beaker/blob/master/docs/Docker-Support.md
2015-12-20Merge branch 'gitlab_ci' into 'master' Micah
[feat] Enable gitlab CI builds, simplify Gemfile Test this module using existing rspec test, using gitlab CI on gitlab.com shared runners. See https://gitlab.com/varac/apt/builds/473836 for the CI build of this merge req. See merge request !33
2015-12-19[feat] Enable gitlab CI builds, simplify Gemfilevarac
2015-12-16Merge branch 'remove_double_apt_get_update' into 'master' ng
[feat] Don't run an additional apt-get update When adding custom keys, an additional `apt-get update` would be run before the Exec['refresh_apt'], which don't make sense. See merge request !31
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-07Fix require path for ubuntu_nextcodename.rbvarac
2015-12-07[rspec] extend test for custom factsvarac
2015-12-07[bug] Fix debian_nextcodename on wheezy hostsvarac
I noticed this behaviour because $::debian_nextcodename was "squeeze" on a wheezy host. For debugging, i inserted a "puts codenames" in lib/facter/debian_nextcodename.rb, and it turned out that it was sorted differently on wheezy and jessie hosts: On wheezy: buster stretch jessie wheezy squeeze lenny On jessie: lenny squeeze wheezy jessie stretch buster So i decided to rewrite this so this doesn't happen again.
2015-12-07[docs] Add test docs how to use custom facter/puppet versionvarac
2015-12-07Fix loading of util/debian.rb for custom factsvarac
requirering the facter/util/debian.rb module causes puppet warnings on wheezy hosts, and custom facts like `$::debian_codename` cannot be evaluated. warning: Could not load fact file /srv/dev/projects/puppet/shared-modules//apt/lib/facter/debian_nextcodename.rb: no such file to load -- facter/util/debian Removing the require line solves this.
2015-12-07Add inital puppet rspec test for custom factsvarac
2015-12-04Merge branch 'support_missing_ubuntu_releases' into 'master' Micah
[feat] Support vivid, wily, xenial ubuntu release See merge request !27
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-11-02[feat] Support vivid, wily, xenial ubuntu releasevarac
2015-10-09Document the new config_template parameterGabriel Filion
Also add an example for how to use the apt::unattended_upgrades class.
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.