Skip to content

Conversation

@jhoblitt
Copy link

... allow the default pg_hba.conf template to be overrideen

example usage:

class { 'postgresql::server':
config_hash => {
'pg_hba_conf_template' => 'mymodule/pg_hba.conf.erb',
},
}

Per discussion in #72

… to allow the default pg_hba.conf template to be overrideen

example usage:

  class { 'postgresql::server':
    config_hash => {
      'pg_hba_conf_template'       => 'mymodule/pg_hba.conf.erb',
    },
  }
@kbarber
Copy link
Contributor

kbarber commented Feb 11, 2013

The pull request #120 provides a defined resource for managing pg_hba rules now, in the spirit of providing full functionality - but still providing backwards compatibility. This PR may no longer apply, or perhaps would need some mods if #120 goes ahead, and I'm interested in any opinons on it.

@jhoblitt
Copy link
Author

#120 definitely lessons the motivation for this pull request but some
times it's nice to be able to just bypass a modules templating and
provide your own version controlled copy of a configuration file. I
actually feel that this should be a best practice...

@kbarber
Copy link
Contributor

kbarber commented Feb 11, 2013

@jhoblitt do you think in this case a template is what you are after as an escape hatch? Or just a file resource with your static settings baked within it?

My point being mainly around the fact that the template is obviously built around fairly specific input data. The template today obviously had bugs due to lack of full functionality that you were trying to get around right?

After #120 do you still feel like a templated escape hatch is required? What kind of thing would you want if #120 became a reality and why? In the case of the new postgresql::pg_hba_rule it is made up of a template for each ruleset - not a complete template btw. so it changes the landscape a little.

@jhoblitt
Copy link
Author

@kbarber I don't see the need for an escape hatch at this point as #120 looks great. However, I've found it useful when converting from an existing unmanaged config to start out by just supplying the old conf file as a template without any ERB markup (I do this with apache all the time) so it's one less thing to debug. As an analogy, I don't ever get on a ship expecting it to sink but I still want to make sure it has enough life boats. :)

@kbarber
Copy link
Contributor

kbarber commented Feb 13, 2013

@jhoblitt thanks. I'm gonna close this since #120 is merged, but if you ever want to get an escape hatch feel free to raise a PR or bug.

@kbarber kbarber closed this Feb 13, 2013
@jhoblitt jhoblitt deleted the paramaterize_pg_hba_conf_template branch February 27, 2014 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants