Inside of your lib/facter directory you could write a facter for check if
package is already installed and use a top scope variable provide by facter
to do an if in your class for test it.

If the package is installed (true) don't do anything else if (false)
install it else {}.

Sorry for my bad English written from my mobile.

Flamarion Jorge
Sent from my mobile
Em 20/08/2014 09:04, "Stefan Wiederoder" <stefanwiedero...@googlemail.com>
escreveu:

> Hello puppet users,
>
> I´m struggling with puppets resource odering ....
>
> my task is to install the QConvergeConsoleCLI rpm, which needs /tmp as
> executable - which is per default noexec on our boxes.
>
> but adding a require to the package instruction will always mount /tmp as
> executable even if the package is already installed?
> package { [ "QConvergeConsoleCLI" ]: ensure => installed, require =>
> Exec['execmount']; }
>
> is there any chance to trigger the require ONLY if the package is NOT
> installed?
>
>
> bye
> ,
> Stefan
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/48d0074b-9494-4a12-a3cb-87a83d97314d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/48d0074b-9494-4a12-a3cb-87a83d97314d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bx2bU2joiJhS9L3ipsynAXKLM6xX5%2BVfarHZmWtqfWwCts1SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to