Commit graph

28 commits

Author SHA1 Message Date
Matthew Haughton
6f84e08bda fix new lint issues 2015-05-07 22:36:39 -04:00
Matthew Haughton
6062ecec5c package/debian: support puppetlabs-apt 2.0.0
puppetlabs-apt 2.0.0 drops support in apt::source for key_source and required_packages.

* key_source will default to keyserver.ubuntu.com which carries both keys, so it
  doesn't need to be explicitly defined
* required_packages can be emulated with the package resource
2015-04-21 22:08:53 -04:00
Erik R. Rygg
493e5c3eec Add key for passenger and update spec tests 2015-03-24 11:51:52 -06:00
Erik R. Rygg
d9b1d8cf8c Changing apt key to 40 characters to support new apt module 2015-03-23 16:03:56 -06:00
Sebastien Badia
5f1da4fce9 apt:🔑 puppetlabs-apt check now the full GPG fingerprints.
Since commit 531ef9 of puppetlabs-apt, the gpg key (apt::key) is
checked, and should use the long format.

This value is validated with a regex enforcing it to only contain valid
hexadecimal characters, be precisely 8 or 16 hexadecimal characters long
and optionally prefixed with 0x for key IDs, or 40 hexadecimal
characters long for key fingerprints.

f588f2651a
2015-03-19 15:34:42 +01:00
Matthew Haughton
fef520fc21 debian/package: warn on incorrect package name w/ Passenger
According to Passenger docs:

"You should install nginx-extras even if you have already installed an Nginx package from the
official Debian/Ubuntu repository. This is because the Nginx binary that our packages supply
is compiled with the Passenger module."
2014-12-10 21:23:04 -05:00
Matthew Haughton
c486649005 package/debian: install ca-certificates for passenger
Required per the Passenger install guide
2014-12-10 21:23:04 -05:00
Matthew Haughton
89b7480bfe package: mainline package support on redhat/debian
Closes #450
Closes #456
Closes #518
2014-12-10 21:23:04 -05:00
Matthew Haughton
d57729d733 package/debian: use more puppetlabs-apt features
* puppetlabs-apt does an APT update after every apt::source is added, so no
  need to do it again in this module.
* Use the 'required_packages' feature of apt::source instead of
  ensure_resources
2014-12-10 21:23:04 -05:00
Matthew Haughton
3cec62042e package: package resource is titled "nginx" 2014-12-09 22:06:51 -05:00
Matthew Haughton
88d8984876 Fix remaining lint warnings 2014-08-18 23:04:24 -04:00
Sebastian Schmidt
048001e859 nginx:📦:debian: only include ::apt when needed
Only include ::apt when $manage_repo is true, it's not needed otherwise.
2014-04-19 20:46:04 +02:00
Justin Hennessy
885b85ee6c Fixed lint issue 2014-03-30 21:41:34 +10:00
James Fryman
94ad2f3267 Update debian.pp 2014-03-27 16:53:41 -05:00
Matthew Haughton
d7800f44ee warn on inclusion of nginx:📦:debian 2014-01-07 23:16:54 -05:00
Franz Pletz
3edc7ad4ac Fix dependency problems with APT repo handling
The first issue was that Exec[apt_get_update_for_nginx] resource is only
needed if $manage_repo == true, so it was put inside the corresponding
if block.

But even inside the if-block, Exec[apt_get_update_for_nginx] could fail
when $package_source has an invalid value and no Apt::Source[nginx] is
defined, so the respective Apt::Source[nginx], if defined, will now notify
Exec[apt_get_update_for_nginx] and Exec[apt_get_update_for_nginx] will
no longer subscribe to Apt::Source[nginx].

It would probably make sense to add a call to fail() in the default case
of $package_source.
2013-10-09 05:17:33 +02:00
James Fryman
7ea6b570c3 Merge branch 'disable-yum-repo-management' of github.com:rytis/puppet-nginx into rytis-disable-yum-repo-management
Conflicts:
	manifests/init.pp
	manifests/package.pp
	manifests/params.pp
2013-10-07 14:46:42 -05:00
Tomas Barton
303efc634d fixed calling out of scope variables 2013-10-07 16:27:17 +02:00
Tomas Barton
6ab27d00b1 ensure_resource instead of !defined 2013-10-03 20:53:36 +02:00
Tomas Barton
e3ce014354 support for nginx passenger debian repositories 2013-09-27 14:48:51 +02:00
Ashley Penney
46a17f97c5 Refactor to use puppetlabs-apt.
This is just the first step of fixing up the repo stuff and allowing
the module to take in a package_name, but this helps replace the
execs{} with puppetlabs-apt.

Tested on:  Debian 7, Ubuntu 12.04.
2013-09-04 17:57:41 -04:00
Ashley Penney
8ddc6f6ccf This commit allows you to set package_ensure in nginx and have that
trickle through to the package classes.  I've avoided making them
into paramaterized classes and we just refer directly back to the main
nginx namespace to get the variable.  Makes for a cleaner looking
module!
2013-09-04 13:29:30 -04:00
Arthur Leonard Andersen
0191a2fe28 Fix deprecated variable names 2013-07-17 20:42:57 +02:00
Maarten Dirkse
7714251f67 Removed various puppet-lint warnings and fixed a typo 2013-06-13 18:51:33 +02:00
Kevin Tham
a97e0385ba Use official nginx apt repo of stable releases for debian/ubuntu 2013-05-15 15:08:58 -07:00
Cody Herriges
3a27502ba9 Style compliance
This commit puts the majority of the code provided by this module into
  compliance with the published style guide. Also updated Modulefile to
  have more sane pre-release values.
2011-06-15 14:43:01 -07:00
James Fryman
7320a0ae56 Updated Documentation 2011-06-06 18:05:27 -05:00
James Fryman
4558791e49 Updated Package Layout 2011-06-06 10:04:24 -05:00