8 years agoThe directory resource for managing the chroot should be a variable
Hunter Haugen [Wed, 29 Aug 2012 20:55:08 +0000 (13:55 -0700)]
The directory resource for managing the chroot should be a variable

8 years ago/etc/default/haproxy applies to all Debian, not just Ubuntu
Hunter Haugen [Wed, 29 Aug 2012 20:54:33 +0000 (13:54 -0700)]
/etc/default/haproxy applies to all Debian, not just Ubuntu

8 years agoLog to $ipaddress by default on both platforms
Hunter Haugen [Wed, 29 Aug 2012 20:53:49 +0000 (13:53 -0700)]
Log to $ipaddress by default on both platforms

8 years agoUpdate specs for haproxy base class with debian support
Hunter Haugen [Wed, 29 Aug 2012 20:50:25 +0000 (13:50 -0700)]
Update specs for haproxy base class with debian support

Many of the tests that apply to the RedHat family also apply to Debian.
The tests have been updated to reflect this, as well as to capture the
minor differences between the two platforms.

This commit incorperates the changes from glarizza#7 and glarizza#12

Not all tests pass because I found it pertinent to update the spec
where the actual module code was lacking.

8 years agoAdd Debian support.
Dan Bode [Wed, 13 Jun 2012 02:16:02 +0000 (19:16 -0700)]
Add Debian support.

This pull requests performs the minimum amount of effort to add
Debian support.

Adds Debian defaults (which were made to be as similar as possible
to the Redhat defaults)

Adds two Debian specific resources to the haproxy class

  - a defaults file to ensure the service is started
  - creates the /var/lib/haproxy directory so that the
    configuration can be as similar to Redhat as possible.y

8 years agoMerge pull request #1 from hunner/add_spec_helper
Gary Larizza [Tue, 28 Aug 2012 00:57:49 +0000 (17:57 -0700)]
Merge pull request #1 from hunner/add_spec_helper

Add spec helper

8 years agoAdd $concat_basedir custom fact variable for spec tests
Hunter Haugen [Tue, 28 Aug 2012 00:11:02 +0000 (17:11 -0700)]
Add $concat_basedir custom fact variable for spec tests

8 years agoRemove git submodule fixtures in place of puppetlabs_spec_helper fixtures behaviour
Hunter Haugen [Tue, 28 Aug 2012 00:10:12 +0000 (17:10 -0700)]
Remove git submodule fixtures in place of puppetlabs_spec_helper fixtures behaviour

8 years agoAdd puppetlabs_spec_helper gem code
Hunter Haugen [Tue, 28 Aug 2012 00:08:07 +0000 (17:08 -0700)]
Add puppetlabs_spec_helper gem code

8 years agoMerge pull request #10 from rtyler/chicken-dinner
Gary Larizza [Mon, 9 Jul 2012 04:52:20 +0000 (21:52 -0700)]
Merge pull request #10 from rtyler/chicken-dinner

Fixy faxy

8 years agoFix some, but by no means all, of puppet-lint's complaining
R. Tyler Croy [Mon, 9 Jul 2012 04:38:34 +0000 (21:38 -0700)]
Fix some, but by no means all, of puppet-lint's complaining

8 years agoProperly handle both Arrays and Strings passed as balancer member options
R. Tyler Croy [Mon, 9 Jul 2012 04:33:13 +0000 (21:33 -0700)]
Properly handle both Arrays and Strings passed as balancer member options

The template cannot rely on deprecated functionality of the String class
(`#each` which disappears in 1.9)

Fixes #9

8 years agoAdd puppet-lint to the Rakefile
R. Tyler Croy [Mon, 9 Jul 2012 04:11:02 +0000 (21:11 -0700)]
Add puppet-lint to the Rakefile

8 years agoMerge pull request #8 from rtyler/chicken-dinner
Gary Larizza [Mon, 9 Jul 2012 04:12:05 +0000 (21:12 -0700)]
Merge pull request #8 from rtyler/chicken-dinner

Tidy up the place

8 years agoAdd a Hacking section to the README
R. Tyler Croy [Mon, 9 Jul 2012 03:58:44 +0000 (20:58 -0700)]
Add a Hacking section to the README

8 years agoRename the README for fancy GitHub formatting
R. Tyler Croy [Mon, 9 Jul 2012 03:54:55 +0000 (20:54 -0700)]
Rename the README for fancy GitHub formatting

8 years agoAdd the puppet-concat module as a submodule for tests
R. Tyler Croy [Mon, 9 Jul 2012 03:54:08 +0000 (20:54 -0700)]
Add the puppet-concat module as a submodule for tests

8 years agoCommit spec tests for the haproxy module
Gary Larizza [Wed, 9 May 2012 23:38:43 +0000 (16:38 -0700)]
Commit spec tests for the haproxy module

Previously, the haproxy module didn't provide rspec tests for the class
or defined resource types.  This commit adds the tests, a spec_helper
file, and a rakefile so you can do `rake spec` and automatically run the

I've also committed a symlink in the
spec/fixtures/modules/haproxy directory so the rspec-puppet tests will
FIND the haproxy class/defined resource types, but I HAVE NOT committed
a symlink so that it will find the concat class (which is a dependency
for this module).  If you choose to run the tests, you must symlink the
concat module in the spec/fixtures/modules directory before the spec
tests will pass.

8 years agoUse array in config class default
Gary Larizza [Wed, 9 May 2012 23:36:40 +0000 (16:36 -0700)]
Use array in config class default

Previously, I was using the option parameter twice in the default
setting for haproxy::config.  This commit changes that to passing an
array to the option parameter (and fixes the example).

8 years agoEnsure hasrestart parameter with haproxy service
Gary Larizza [Wed, 9 May 2012 23:35:51 +0000 (16:35 -0700)]
Ensure hasrestart parameter with haproxy service

The haproxy service should have the hasrestart parameter defaulted to
true.  Previously, this was not the case.  This commit establishes that.

8 years agoInitial Commit
Gary Larizza [Mon, 7 May 2012 21:26:21 +0000 (14:26 -0700)]
Initial Commit