Commit graph

58 commits

Author SHA1 Message Date
Matthew Haughton
f18dcf0f1f fully qualify classes, defines and variables 2014-11-26 23:37:11 -05:00
Frank Groeneveld
ad4e74d5a2 Add initial OpenBSD support. 2014-11-25 20:08:05 +01:00
Matthew Haughton
58d5c11cb8 Merge pull request #440 from ad-notam/master
Re-add Gentoo support
2014-09-21 12:07:01 -04:00
Luke Francis
230857f874 Fix to detect the major release version for redhat/centos 7 2014-09-20 22:38:29 -07:00
Jan Rieger
183ee5d0c8 Re-add Gentoo support 2014-09-05 13:13:53 +02:00
James Fryman
a2dd6cdeae Merge pull request #377 from 3flex/modernize-travis
Improve test suite (Travis updates, librarian-puppet removal, better utilize puppet-lint)
2014-08-22 10:43:50 -05:00
Matthew Haughton
88d8984876 Fix remaining lint warnings 2014-08-18 23:04:24 -04:00
Matthew Haughton
c692f1a9b6 Add Red Hat/CentOS 7 support 2014-08-18 14:12:27 -04:00
Zach Leslie
f2a36f7a2f Add support for FreeBSD package installation 2014-07-11 23:32:05 -07:00
Robin Gloster
bc5b256fa1 temp fix for not compiled ssl and different package name 2014-06-20 15:56:54 +02:00
Robin Gloster
970f0067a8 Fix Suse packages
No idea why someone chose to set all these packages for installation.
I can't find any matching nginx.spec on Suse build service plus we don't
want to set a specific nginx package version so just use 'nginx' as package.
2014-06-20 15:53:09 +02:00
Edvinas Klovas
949a000e80 Add Archlinux support
This commit adds Archlinux support. This needs changes in nginx.conf.erb
template and manifests to support pid value set to `false` (this skips it from
nginx.conf). This is due to `-pid /run/nginx.pid` being hardcoded to Archlinux
template. If you specify pid additionally in `nginx.conf` then nginx fails to
start.
2014-05-15 23:55:24 +02: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
Justin Hennessy
acc093db32 Fixed lint errors 2014-03-30 21:23:43 +10:00
James Fryman
364e2865aa Update suse.pp 2014-03-27 16:54:05 -05:00
James Fryman
338d3d8b2f Update redhat.pp 2014-03-27 16:53:51 -05:00
James Fryman
94ad2f3267 Update debian.pp 2014-03-27 16:53:41 -05:00
Jan Örnstedt
4a0a857a38 Added basic support for nginx on Solaris. 2014-01-30 16:41:44 +01:00
Matthew Haughton
2a82028a7b warn on inclusion of nginx:📦:suse 2014-01-07 23:16:54 -05:00
Matthew Haughton
5309136fc8 warn on inclusion of nginx:📦:redhat 2014-01-07 23:16:54 -05:00
Matthew Haughton
d7800f44ee warn on inclusion of nginx:📦:debian 2014-01-07 23:16:54 -05:00
James Fryman
8691db1c83 Merge pull request #188 from 3flex/rspec-tests
Rspec tests (and fixes)
2013-11-22 09:27:53 -08:00
Matthew Haughton
c8d9ad5680 only ensure yum repo file when yum repo created 2013-11-21 22:40:05 -05:00
drfeelngood
9c787d92bf Updated params to account for oracle linux.
We should analyze the $::osfamily fact to define $nx_daemon_user.  Support for
$::operatingsystem remains but is greeted with a deprecation warning that
suggests upgrading to factor >= 1.7.2.

Corrected spec failures in redhat.pp when evaluating an undef
$::lsbmajdistrelease.  Now the variable must be defined before comparison.
2013-11-18 18:38:07 -06:00
Michael G. Noll
291d5d2532 Fix RHEL installation support 2013-10-16 16:32:14 +02: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
Rytis Sileika
b6ee1e5973 Added param to package.pp to explicitly specify whether or not repository should be managed 2013-10-07 13:36:39 +00: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
Rytis Sileika
9db6a82ad1 Added class param to disable YUM repo management on RedHat platforms 2013-09-26 13:32:59 +00: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
Joshua Hoblitt
8a1981f640 update nginx::package to select the package class by $::osfamily
There were some bugs in the existing $::operatingsystem based approach.

* amazon was it's own package set when it's properly part of $::osfamily ==
'redhat' as of facter >= 1.7.2

* gentoo was improperly part of the amazon package set; this patch removes
support for gentoo but it was broken anyways

modifications to nginx:📦:redhat were made as well

* it no longer tries to setup the nginx.org yumrepo for fedora as no packages
for fedora are currently provided

* amazon release numbers are inconsistent with EL.  Unknown
$::lsbmajdistrelease values are now mapped to 6 so it's no longer nessicary to
test for $::lsbmajdistrelease being undefined.  This logic will need to be
reworked after RHEL7.x is released.

* the url to the nginx repo was including $::operatingsystem in it but
nginx.org only has package dirs for 'rhel' & 'centos' which are presently
identical; the usage of the 'rhel' dir has been hardcoded.  This fixes broken
yum repo setup for all $::osfamily == 'redhat' platforms other than redhat and
centos.
2013-08-22 13:32:54 -07:00
Justice London
362dd85386 Added file definition to redhat package repo 2013-07-19 12:04:27 -04:00
Justice London
f19a3b0a91 Lowered priority 2013-07-17 18:08:41 -04:00
Justice London
bdcad9a2ea Added priority to rhel 2013-07-17 18:01:52 -04:00
Arthur Leonard Andersen
0191a2fe28 Fix deprecated variable names 2013-07-17 20:42:57 +02:00
Stas Alekseev
b279978a32 Added gpgcheck to redhat yum repo configuration. 2013-07-05 10:56:38 -04:00
James Fryman
c01a7a8280 Removing GeoIP Package from RH 2013-06-20 11:54:26 -05: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
Sander Hoentjen
4bcb0993c1 linting 2013-05-08 14:15:42 +02:00
Ryan Fitzgerald
884777290a adding in suport of amazon linux 2013-01-22 12:09:51 -05:00
Brett Porter
b9afd221a3 support platforms that don't supply lsbmajdistrelease fact 2012-09-03 11:31:40 -07:00
Brett Porter
f2a14b9961 support redhat as operating system in addition to rhel 2012-09-02 01:48:52 -07:00
James Fryman
3b7e191c1e fixing escape sequences 2012-08-28 15:08:30 -05:00
James Fryman
721fb2f79f Merge branch 'master' of github.com:jfryman/puppet-nginx
Conflicts:
	manifests/package/redhat.pp
2012-08-28 14:36:40 -05:00