This is where my mileage varies from yours; I would have the rpm install files 
and leave the data munging to an exec or type/provider where the error will 
show through to puppet. I don't see a puppet issue here, in the same manner 
that a bug in an init script is not a puppet service (type) issue.

I've never been on board the do-complicated-things-in-rpms train and your 
experience is why.

On Wed, Jul 02, 2014 at 07:51:10AM -0700, Raul Macian wrote:
>    I have a problem that starts to make me think that puppet is not usable to
>    install packages. I will explain:
>    There is a common situation when you put some code on the %post when
>    creating rpm. In my case I am executing some db migrations after the
>    installation has been performed. The problems rises when something goes
>    wrong in the scriptlet because the yum command will ignore the failure end
>    exits with a succesful code. To add more complexity the yum provider
>    performs a yum -q command, that means no output on your logs. So you don't
>    know if the installation has ended ok or not.
>    Here explains some things exposed
>    https://bugzilla.redhat.com/show_bug.cgi?id=569930
> 
>    --
>    You received this message because you are subscribed to the Google Groups
>    "Puppet Users" group.
>    To unsubscribe from this group and stop receiving emails from it, send an
>    email to [1][email protected].
>    To view this discussion on the web visit
>    
> [2]https://groups.google.com/d/msgid/puppet-users/341271db-3ac7-4330-ba23-4dd6a1f51952%40googlegroups.com.
>    For more options, visit [3]https://groups.google.com/d/optout.
> 
> References
> 
>    Visible links
>    1. mailto:[email protected]
>    2. 
> https://groups.google.com/d/msgid/puppet-users/341271db-3ac7-4330-ba23-4dd6a1f51952%40googlegroups.com?utm_medium=email&utm_source=footer
>    3. https://groups.google.com/d/optout

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20140702172128.GA3865%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to