On 28.09.2014 21:26, JonY wrote:
My instructions for setting up the repo and such for Dell OpenManage
start with this command "wget -q -O -
http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash".
It turns out the .cgi file has some cumbersome logic in it to
determine OS and so forth - more so than I want to implement in a
module.

So my question is - what's the proper way to apply this exec only
once? I've used the 'depend on changes to a dummy file' to limit execs
in the past but this seems like a real kludge.

Similarly - what's a better way to run this command (or achieve the
same end result)?


There are Dell OMSA puppet modules out there, though as typical they have their pros and cons. If you want go down the route of using an Exec to execute the bootstrap script rather than using a module I would say the only real way to keep it from executing more than once is to setup an onlyif that checks for the existence of a file or directory that the script generates and signifies that it was successfully installed.

--
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/52dc675325203ac0ef2b11d8f3720ea9%40undergrid.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to