juniorsysadmin / puppet-kong

Installs and configures Kong
Apache License 2.0
1 stars 9 forks source link

Multiple fixes, bump default to 0.8.3 #2

Closed juniorsysadmin closed 8 years ago

juniorsysadmin commented 8 years ago

(Thanks to @fkleon for raising some of these)

juniorsysadmin commented 8 years ago

@fkleon This should also include most of the changes in #1 . I have left the database parameters as they are rather than making them generic as I want them to directly relate to the Kong variables. I am missing some newer 0.8.x parameters as well, so further changes to this branch are likely.

fkleon commented 8 years ago

This is looking great, I'll close #1 in favour of this one.

juniorsysadmin commented 8 years ago

@fkleon I'm more or less done with this Pull Request for now, so unless there are major objections, I'll squash commits, merge and cut a new release this week.

fkleon commented 8 years ago

I've tried this branch on our setup, and apart from the configuration file issues it seems to work fine.

I noticed another issue on our particular setup (Ubuntu 14.04): In install.pp, if package_manage and manage_package_fetch are true (default), Kong is supposed to be installed from the *.deb file. However, on Ubuntu the apt provider is auto-selected by Puppet, which does not support installation from a file.

I had to work around that by overriding the provider for that specific package with the following collector:

  Package<|title == 'kong'|> {
    ensure   => latest,
    provider => 'dpkg',
  }

The dpkg provider does not supported versioned packages, so I had to override ensure as well. Not sure what the best fix would be, but it should probably at least be documented somewhere.

juniorsysadmin commented 8 years ago

@fkleon Integer quoting has been fixed. I need to think about the packaging one - that is..yuck.

juniorsysadmin commented 8 years ago

@fkleon I've just pushed an attempted fix for package installation

fkleon commented 8 years ago

One last issue with the kong.yml template around the postgres port. Installation works fine now, thanks!

juniorsysadmin commented 8 years ago

One last issue with the kong.yml template around the postgres port. Installation works fine now, thanks!

Fixed and commits squashed