Applying exec only 1x - Dell OMSA setup

23 views
Skip to first unread message

JonY

unread,
Sep 28, 2014, 9:26:27 PM9/28/14
to puppet...@googlegroups.com
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)?

Jeremy T. Bouse

unread,
Sep 28, 2014, 10:37:59 PM9/28/14
to puppet...@googlegroups.com
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.

Christopher Webber

unread,
Sep 28, 2014, 11:33:30 PM9/28/14
to puppet...@googlegroups.com
The simplest way is to add a `creates` parameter for the binary or directory the installer creates. 

-- cwebber
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d8c1027d-029b-441c-a12d-fd6404971bcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages