puppet_apt.git
12 months agoMerge branch 'master' into HEAD master
kwadronaut [Thu, 15 Nov 2018 10:46:52 +0000 (11:46 +0100)]
Merge branch 'master' into HEAD

12 months agoFix order, unknown variable
kwadronaut [Thu, 15 Nov 2018 10:41:02 +0000 (11:41 +0100)]
Fix order, unknown variable

By including the common module first, you won't get ugliness like this:

Nov 14 10:29:02    - [citest79656] Warning: Unknown variable:
'apt::apt_base_dir'. at
/srv/leap/puppet/code/modules/apt/manifests/config.pp:69:15
Nov 14 10:29:02    - [citest79656] Warning: Unknown variable:
'apt::apt_base_dir'. at
/srv/leap/puppet/code/modules/apt/manifests/config.pp:77:30
Nov 14 10:29:02    - [citest79656] Warning: Unknown variable:
'apt::apt_base_dir'. at
/srv/leap/puppet/code/modules/apt/manifests/config.pp:78:30

13 months agoMerge remote-tracking branch 'shared/master'
kwadronaut [Wed, 26 Sep 2018 15:36:20 +0000 (17:36 +0200)]
Merge remote-tracking branch 'shared/master'

16 months agoFix another fact var scope issue in upgrade example
Jérôme Charaoui [Tue, 19 Jun 2018 18:15:28 +0000 (14:15 -0400)]
Fix another fact var scope issue in upgrade example

16 months agoImprove backports example
Jérôme Charaoui [Tue, 19 Jun 2018 16:02:44 +0000 (12:02 -0400)]
Improve backports example

16 months agoFix variable scope warnings in examples
Jérôme Charaoui [Tue, 19 Jun 2018 15:55:07 +0000 (11:55 -0400)]
Fix variable scope warnings in examples

20 months agoAdd more details on unattended_upgrades
Louis-Philippe Véronneau [Tue, 13 Mar 2018 16:13:25 +0000 (16:13 +0000)]
Add more details on unattended_upgrades

20 months agoMake sure you are using testing instead of buster, as it seems the apt preferences...
Louis-Philippe Véronneau [Thu, 8 Mar 2018 04:05:07 +0000 (04:05 +0000)]
Make sure you are using testing instead of buster, as it seems the apt preferences pin for buster are not working properly...

20 months agoClarify how to use apt::pin and add `create_ressources` example
Louis-Philippe Véronneau [Tue, 6 Mar 2018 21:13:17 +0000 (21:13 +0000)]
Clarify how to use apt::pin and add `create_ressources` example

20 months agomention new apt_listchanges module.
Louis-Philippe Véronneau [Tue, 20 Feb 2018 19:21:47 +0000 (19:21 +0000)]
mention new apt_listchanges module.

21 months agoadd UPGRADING.md, close issue #25
Louis-Philippe Véronneau [Wed, 7 Feb 2018 23:34:38 +0000 (18:34 -0500)]
add UPGRADING.md, close issue #25

22 months agoMerge remote-tracking branch 'lelutin-gitlab/issue_22' (Closes #22)
intrigeri [Mon, 8 Jan 2018 15:28:45 +0000 (15:28 +0000)]
Merge remote-tracking branch 'lelutin-gitlab/issue_22' (Closes #22)

22 months agoMerge branch 'puppet4_compat' into 'master'
intrigeri [Mon, 8 Jan 2018 15:26:28 +0000 (15:26 +0000)]
Merge branch 'puppet4_compat' into 'master'

puppet 4 compat: mark integer as string

See merge request shared-puppet-modules-group/apt!64

2 years agoMerge branch 'deb_debian_org' into 'master'
Matt Taggart [Mon, 25 Sep 2017 21:42:08 +0000 (21:42 +0000)]
Merge branch 'deb_debian_org' into 'master'

replace old httpredir by new deb.debian.org (fix issue #23)

Closes #23

See merge request shared-puppet-modules-group/apt!70

2 years agoreplace old httpredir by new deb.debian.org
Louis-Philippe Véronneau [Mon, 25 Sep 2017 21:37:14 +0000 (17:37 -0400)]
replace old httpredir by new deb.debian.org

2 years agospecs: manually define debian_nextcodename when expected to be used
Gabriel Filion [Sun, 25 Jun 2017 03:44:01 +0000 (23:44 -0400)]
specs: manually define debian_nextcodename when expected to be used

with puppet 4.x when you don't define the debian_nextcodename,
compilation fails saying that the variable is unknown. since we have
unit tests specifically for this fact's behaviour, we want to stub out
the fact's value in other tests so that we can verify the logic of
manifests is actually good.

2 years agotest: move release targets for debian
Gabriel Filion [Sat, 24 Jun 2017 23:31:50 +0000 (19:31 -0400)]
test: move release targets for debian

In commit 8b45a8a, the release names were moved forward in order to
follow the new Debian release. However, I didn't change the tests
accordingly and thus the tests have been failing since then.

2 years agoMerge branch 'broken_release_checks' into 'master'
Louis-Philippe Véronneau [Wed, 23 Aug 2017 19:28:13 +0000 (19:28 +0000)]
Merge branch 'broken_release_checks' into 'master'

test: move release targets for debian

See merge request !65

2 years agolint preferences.pp
Gabriel Filion [Sun, 2 Jul 2017 06:13:54 +0000 (02:13 -0400)]
lint preferences.pp

that file is using multiple coding style elements that don't follow
community best practices which are designed to make code easier to read.

2 years agoDeploy forgotten fallback for debian to avoid upgrade mishaps
Gabriel Filion [Sun, 2 Jul 2017 05:58:34 +0000 (01:58 -0400)]
Deploy forgotten fallback for debian to avoid upgrade mishaps

During the change from the monolithic preferences file to the series of
snippets in preferences.d, one part was left out possibly as an
oversight, which prevents installing packages by mistake that belong to
a release that hasn't been explicitely pinned.

2 years agoRename "stable" preferences file to "current_codename"
Gabriel Filion [Sun, 2 Jul 2017 05:44:38 +0000 (01:44 -0400)]
Rename "stable" preferences file to "current_codename"

The file that we call "stable" can make apt actually pin testing or sid
if one of these is the running codename, which is nothing stable.

In order to make this file's name more relevant it should be named
current_codename.

2 years agoremove template for main preferences config
Gabriel Filion [Sun, 2 Jul 2017 05:39:34 +0000 (01:39 -0400)]
remove template for main preferences config

this file is not used anymore. we've moved all of this to preferences.d
so the template is useless now, but we forgot to remove it.

2 years agoMerge remote-tracking branch 'shared/master' into leap_master
Varac [Tue, 27 Jun 2017 11:57:43 +0000 (13:57 +0200)]
Merge remote-tracking branch 'shared/master' into leap_master

2 years agospecs: manually define debian_nextcodename when expected to be used
Gabriel Filion [Sun, 25 Jun 2017 03:44:01 +0000 (23:44 -0400)]
specs: manually define debian_nextcodename when expected to be used

with puppet 4.x when you don't define the debian_nextcodename,
compilation fails saying that the variable is unknown. since we have
unit tests specifically for this fact's behaviour, we want to stub out
the fact's value in other tests so that we can verify the logic of
manifests is actually good.

2 years agotest: move release targets for debian
Gabriel Filion [Sat, 24 Jun 2017 23:31:50 +0000 (19:31 -0400)]
test: move release targets for debian

In commit 8b45a8a, the release names were moved forward in order to
follow the new Debian release. However, I didn't change the tests
accordingly and thus the tests have been failing since then.

2 years agopuppet 4 compat: mark integer as string
Louis-Philippe Véronneau [Thu, 22 Jun 2017 22:15:38 +0000 (18:15 -0400)]
puppet 4 compat: mark integer as string

2 years agoMerge branch 'custom_dockerimage' into 'master'
LeLutin [Thu, 22 Jun 2017 13:11:01 +0000 (13:11 +0000)]
Merge branch 'custom_dockerimage' into 'master'

Use official ruby docker image

See merge request !63

2 years agoUse official ruby docker image
Varac [Thu, 22 Jun 2017 08:49:52 +0000 (10:49 +0200)]
Use official ruby docker image

2 years agoMerge branch 'stretch_released' into 'master'
Jerome Charaoui [Mon, 19 Jun 2017 03:26:51 +0000 (03:26 +0000)]
Merge branch 'stretch_released' into 'master'

stretch was released

See merge request !62

2 years agostretch was released
Gabriel Filion [Mon, 19 Jun 2017 03:13:57 +0000 (23:13 -0400)]
stretch was released

buster+1's codename is known, and wheezy has been in LTS for some time
already.

2 years agoMerge remote-tracking branch 'lelutin-gitlab/package' (Closes: #5)
intrigeri [Tue, 30 May 2017 09:41:03 +0000 (09:41 +0000)]
Merge remote-tracking branch 'lelutin-gitlab/package' (Closes: #5)

2 years agoREADME: slightly reword template usage for apt::package
Gabriel Filion [Mon, 17 Apr 2017 01:31:50 +0000 (21:31 -0400)]
README: slightly reword template usage for apt::package

The current wording is not super clear on what type of file should be
dropped in `site_apt/...`.

2 years agopackage wrongly documented and used with content parameter
Gabriel Filion [Mon, 17 Apr 2017 01:29:30 +0000 (21:29 -0400)]
package wrongly documented and used with content parameter

There are some references to the old `content` parameter (from
preseeded_package) that mistakenly weren't replaced with the new
parameter `seedfile_content`. This meant the documentation was wrong and
the `preseeded_package` wrapper was erroring out because of an unknown
parameter.

2 years agoREADME: missing sentence end in deprecation notice for preseeded_package
Gabriel Filion [Mon, 17 Apr 2017 01:19:49 +0000 (21:19 -0400)]
README: missing sentence end in deprecation notice for preseeded_package

The missing dot made the announcement confusing. There are really two
different informations in there that should be split.

2 years agoMerge branch 'master' into 'master'
LeLutin [Fri, 24 Feb 2017 23:27:32 +0000 (23:27 +0000)]
Merge branch 'master' into 'master'

Move old monolithic preferences files to mutiple preferences.d files (Fix #14)

Closes #14

See merge request !61

2 years agodefine variables in templates with the right style
Louis-Philippe Véronneau [Fri, 24 Feb 2017 23:17:34 +0000 (18:17 -0500)]
define variables in templates with the right style

2 years agoupdate the README with the new preferences.d behavior
Louis-Philippe Véronneau [Fri, 24 Feb 2017 22:49:27 +0000 (17:49 -0500)]
update the README with the new preferences.d behavior

2 years agoensure old monolithic preferences file is no more
Louis-Philippe Véronneau [Fri, 24 Feb 2017 22:38:51 +0000 (17:38 -0500)]
ensure old monolithic preferences file is no more

2 years agoseems puppet didn't like square brackets
Louis-Philippe Véronneau [Fri, 24 Feb 2017 22:30:46 +0000 (17:30 -0500)]
seems puppet didn't like square brackets

2 years agoadd manage_preferences to init.pp
Louis-Philippe Véronneau [Fri, 24 Feb 2017 22:28:41 +0000 (17:28 -0500)]
add manage_preferences to init.pp

2 years agoREADME: document new pin/pin_priority parameters to apt::package
Gabriel Filion [Fri, 24 Feb 2017 22:09:27 +0000 (17:09 -0500)]
README: document new pin/pin_priority parameters to apt::package

2 years agoremove preferences.d files when not using them
Louis-Philippe Véronneau [Fri, 24 Feb 2017 22:08:12 +0000 (17:08 -0500)]
remove preferences.d files when not using them

2 years agoAdjust README to show new parameter that's needed for preseeding.
Gabriel Filion [Fri, 24 Feb 2017 22:01:05 +0000 (17:01 -0500)]
Adjust README to show new parameter that's needed for preseeding.

2 years agomake use of preseed optional and disabled by default
Gabriel Filion [Fri, 24 Feb 2017 21:46:27 +0000 (16:46 -0500)]
make use of preseed optional and disabled by default

We currently can't use apt::package without preseeding. Also by default
the preseed content is grabbed from an implicit template, which makes
puppet runs fail for a non-obvious reason.

To keep previous functionality, force use of seed file when using the
deprecated apt::preseeded_package type.

2 years agofix custom_preferences && refactor how they work
Louis-Philippe Véronneau [Fri, 24 Feb 2017 21:30:49 +0000 (16:30 -0500)]
fix custom_preferences && refactor how they work

2 years agoteach apt::package to mange pins for packages
Gabriel Filion [Fri, 24 Feb 2017 20:50:32 +0000 (15:50 -0500)]
teach apt::package to mange pins for packages

2 years agofix variable name (bis)
Louis-Philippe Véronneau [Fri, 24 Feb 2017 20:44:21 +0000 (15:44 -0500)]
fix variable name (bis)

2 years agorename preseeded_package into package
Gabriel Filion [Fri, 24 Feb 2017 18:03:59 +0000 (13:03 -0500)]
rename preseeded_package into package

keep a wrapper in place with a deprecation notice for the old name so
that ppl can know about the change and migrate to the new name

2 years agopreferences.d/stable is the new preferences
Louis-Philippe Véronneau [Fri, 24 Feb 2017 20:32:15 +0000 (15:32 -0500)]
preferences.d/stable is the new preferences

2 years agofix variable name
Louis-Philippe Véronneau [Fri, 24 Feb 2017 20:30:26 +0000 (15:30 -0500)]
fix variable name

2 years agoadd new preferences.d templates
Louis-Philippe Véronneau [Fri, 24 Feb 2017 20:19:40 +0000 (15:19 -0500)]
add new preferences.d templates

2 years agomove from monolithic preferences file to multiple preferences.d files
Louis-Philippe Véronneau [Fri, 24 Feb 2017 20:18:02 +0000 (15:18 -0500)]
move from monolithic preferences file to multiple preferences.d files

2 years agoAdd details about dpkg_statoverride to README
Micah Anderson [Fri, 24 Feb 2017 17:26:00 +0000 (12:26 -0500)]
Add details about dpkg_statoverride to README
Fix 'ressources' typo

2 years agoMerge branch 'dpkg-statoverride' into 'master'
Micah [Fri, 24 Feb 2017 17:30:13 +0000 (17:30 +0000)]
Merge branch 'dpkg-statoverride' into 'master'

Import apt::dpkg_statoverride from https://github.com/example42/puppet-apt.

See merge request !59

2 years agoImport apt::dpkg_statoverride from https://github.com/example42/puppet-apt.
intrigeri [Tue, 14 Feb 2017 16:39:01 +0000 (16:39 +0000)]
Import apt::dpkg_statoverride from https://github.com/example42/puppet-apt.

… at commit 714e393ca4b784b80006e39225d80179e109a8c3, and add copyright and
licensing information.

2 years agoMerge branch 'feature/debian_codename_to_version' into 'master'
Micah [Sun, 12 Feb 2017 15:15:04 +0000 (15:15 +0000)]
Merge branch 'feature/debian_codename_to_version' into 'master'

Add debian_codename_to_version parser function.

See merge request !51

2 years agoMerge remote-tracking branch 'sogeecom/master' into shared-master
intrigeri [Sun, 12 Feb 2017 13:09:16 +0000 (13:09 +0000)]
Merge remote-tracking branch 'sogeecom/master' into shared-master

2 years agoMerge remote-tracking branch 'sogeecom/harmonize_style' into shared-master
intrigeri [Sun, 12 Feb 2017 12:51:12 +0000 (12:51 +0000)]
Merge remote-tracking branch 'sogeecom/harmonize_style' into shared-master

2 years agominor style fixes to comply with CI warnings
Louis-Philippe Véronneau [Sat, 21 Jan 2017 21:15:06 +0000 (16:15 -0500)]
minor style fixes to comply with CI warnings

2 years agomissed a few variables - fully qualify them
Louis-Philippe Véronneau [Sat, 21 Jan 2017 21:12:18 +0000 (16:12 -0500)]
missed a few variables - fully qualify them

2 years agofully qualify variables to remove inherits
Louis-Philippe Véronneau [Sat, 21 Jan 2017 20:59:03 +0000 (15:59 -0500)]
fully qualify variables to remove inherits

2 years agouse include instead of inherits
Louis-Philippe Véronneau [Sat, 21 Jan 2017 20:06:41 +0000 (15:06 -0500)]
use include instead of inherits

2 years agoDont pin rspec-core to old version
varac [Fri, 23 Dec 2016 12:45:26 +0000 (13:45 +0100)]
Dont pin rspec-core to old version

2 years agoFix preferences_snippet.pp for puppet 4
varac [Thu, 3 Nov 2016 14:54:46 +0000 (15:54 +0100)]
Fix preferences_snippet.pp for puppet 4

2 years agoDo a simple compile test for now
varac [Thu, 3 Nov 2016 14:30:46 +0000 (15:30 +0100)]
Do a simple compile test for now

2 years agoTest for compile.with_all_deps
varac [Thu, 3 Nov 2016 00:15:25 +0000 (01:15 +0100)]
Test for compile.with_all_deps

2 years agoUse undef as default for source parameter
varac [Wed, 2 Nov 2016 23:45:34 +0000 (00:45 +0100)]
Use undef as default for source parameter

2 years agoScope defines of apt_conf
varac [Wed, 2 Nov 2016 23:09:25 +0000 (00:09 +0100)]
Scope defines of apt_conf

2 years agoIgnore spec/fixtures
varac [Wed, 2 Nov 2016 23:34:17 +0000 (00:34 +0100)]
Ignore spec/fixtures

2 years agoAdd more facts
varac [Wed, 2 Nov 2016 23:33:38 +0000 (00:33 +0100)]
Add more facts

2 years agoTest multiple puppet versions
varac [Wed, 2 Nov 2016 22:33:35 +0000 (23:33 +0100)]
Test multiple puppet versions

2 years agoImprove tests setup
varac [Wed, 2 Nov 2016 21:47:30 +0000 (22:47 +0100)]
Improve tests setup

- Add .fixtures.yaml to checkout common module
- Use puppetlabs-spec-helper in spec_helper.rb

2 years agoCompile test, test apt::conf
varac [Wed, 2 Nov 2016 20:26:14 +0000 (21:26 +0100)]
Compile test, test apt::conf

2 years agoFix CI, dont install beaker on gitlab CI
varac [Mon, 31 Oct 2016 12:46:05 +0000 (13:46 +0100)]
Fix CI, dont install beaker on gitlab CI

- Don't install `system-tests` gem group for rspec tests on CI
- Use leapcode/ruby docker image because it has a more default
  ruby installation than the 'official' one.
- Use `/var/cache/gitlab-runner/` as gem install path so we can
  cache this folder later

2 years agoAlways set debian_nextcodename to 'sid' on systems running testing,
Jérôme Charaoui [Wed, 29 Jun 2016 15:57:08 +0000 (17:57 +0200)]
Always set debian_nextcodename to 'sid' on systems running testing,
fixes #12

2 years agomore ; to ,
Louis-Philippe Véronneau [Fri, 30 Dec 2016 06:48:41 +0000 (01:48 -0500)]
more ; to ,

2 years agoDont pin rspec-core to old version
varac [Fri, 23 Dec 2016 12:45:26 +0000 (13:45 +0100)]
Dont pin rspec-core to old version

2 years agoDont pin rspec-core to old version
varac [Fri, 23 Dec 2016 12:45:26 +0000 (13:45 +0100)]
Dont pin rspec-core to old version

2 years agomissing single quotes
Louis-Philippe Véronneau [Fri, 23 Dec 2016 04:02:16 +0000 (23:02 -0500)]
missing single quotes

2 years agofix errors by replacing some semicolons by commas
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:58:18 +0000 (22:58 -0500)]
fix errors by replacing some semicolons by commas

2 years agouse double quotes not to have to escape single ones
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:44:17 +0000 (22:44 -0500)]
use double quotes not to have to escape single ones

2 years agomark packages as present instead of installed to be consistent
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:41:20 +0000 (22:41 -0500)]
mark packages as present instead of installed to be consistent

2 years agomake sure every object ends with either a comma or a semicolon
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:26:43 +0000 (22:26 -0500)]
make sure every object ends with either a comma or a semicolon

2 years agouse the same name for the update_apt exec everywhere
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:17:35 +0000 (22:17 -0500)]
use the same name for the update_apt exec everywhere

2 years agomove parts of init.pp to config.pp^& install.pp to increase readability
Louis-Philippe Véronneau [Fri, 23 Dec 2016 03:09:14 +0000 (22:09 -0500)]
move parts of init.pp to config.pp^& install.pp to increase readability

2 years agofix array identation
Louis-Philippe Véronneau [Fri, 23 Dec 2016 02:56:16 +0000 (21:56 -0500)]
fix array identation

2 years agofix missing/superfluous newline at the end/beginning of files
Louis-Philippe Véronneau [Fri, 23 Dec 2016 02:46:37 +0000 (21:46 -0500)]
fix missing/superfluous newline at the end/beginning of files

2 years agoharmonize variable alignment
Louis-Philippe Véronneau [Fri, 23 Dec 2016 02:37:05 +0000 (21:37 -0500)]
harmonize variable alignment

2 years agoindent packages correctly
Louis-Philippe Véronneau [Fri, 23 Dec 2016 02:25:13 +0000 (21:25 -0500)]
indent packages correctly

3 years agoMerge remote-tracking branch 'shared/master' into leap_master
varac [Fri, 4 Nov 2016 13:39:23 +0000 (14:39 +0100)]
Merge remote-tracking branch 'shared/master' into leap_master

3 years agoMerge branch 'puppet4' into 'master'
Micah [Fri, 4 Nov 2016 13:35:41 +0000 (13:35 +0000)]
Merge branch 'puppet4' into 'master'

Puppet4

Fixes stuff for puppet 4

See merge request !54

3 years agoMerge branch 'improve_tests' into 'master'
Micah [Fri, 4 Nov 2016 13:18:22 +0000 (13:18 +0000)]
Merge branch 'improve_tests' into 'master'

Improve tests

See merge request !53

3 years agoFix preferences_snippet.pp for puppet 4
varac [Thu, 3 Nov 2016 14:54:46 +0000 (15:54 +0100)]
Fix preferences_snippet.pp for puppet 4

3 years agoDo a simple compile test for now
varac [Thu, 3 Nov 2016 14:30:46 +0000 (15:30 +0100)]
Do a simple compile test for now

3 years agoTest for compile.with_all_deps
varac [Thu, 3 Nov 2016 00:15:25 +0000 (01:15 +0100)]
Test for compile.with_all_deps

3 years agoUse undef as default for source parameter
varac [Wed, 2 Nov 2016 23:45:34 +0000 (00:45 +0100)]
Use undef as default for source parameter

3 years agoScope defines of apt_conf
varac [Wed, 2 Nov 2016 23:09:25 +0000 (00:09 +0100)]
Scope defines of apt_conf

3 years agoIgnore spec/fixtures
varac [Wed, 2 Nov 2016 23:34:17 +0000 (00:34 +0100)]
Ignore spec/fixtures

3 years agoAdd more facts
varac [Wed, 2 Nov 2016 23:33:38 +0000 (00:33 +0100)]
Add more facts

3 years agoTest multiple puppet versions
varac [Wed, 2 Nov 2016 22:33:35 +0000 (23:33 +0100)]
Test multiple puppet versions