Closed fincreg closed 3 years ago
@fincreg and myself worked hard to add new functionality and to fix all ruby/spec/acceptance tests. Once travis-ci catches up - we will have them all green. There are several conflicts, especially in .travis.yml (because I removed entire section for centos6, which fails due to EOL and no repos available). I can also offer a hand in reviewing "conflicting files", cause I think I was the one introducing changes there too. Please consider our pull request.
Resolved merge conflicts
@raphink, please review this PR
Bump. Is there anything we need to discuss before this pull request can be merged?
I've left a few comments. I think some changes are out of the scope of your change (if required at all).
Converted to draft until all suggestions reviewed.
Don't hesitate to mention me again if you need guidance for this PR. The amount of notifications tends to make me a bit hard of hearing!
Reset till the initial update changes and rebased from camptocamp:master #291
After thinking about this again, I don't see a way to keep compatibility without making the interface unnecessarily complex.
My suggestion is to add a defined resource type to your profile:
define profile::postfix::config (
$value,
) {
$ensure = $value ? {
/^.+$/ => 'present',
/^$/ => 'blank',
default => 'absent',
}
postfix::config { $title:
ensure => $ensure,
name => $name,
value => value,
}
}
and use that in your code instead of puppet::postfix
.
If other people would be interested in that change, and willing to overgo a breaking change for this, I can reconsider, but for now it seems the most reasonable option.
I believe we can stick to this solution. Thank you. Closing PR
Allow create flexible profiles, that managed through hiera
If you do not specify ensure, than analyze $value and act accordingly. Remove if undef, clear if empty, set if string. Allows to create hiera managed multitype profiles
mx.yaml
relay.yaml
profile/manifests/postfix.pp