Take a look at the example in this doc:
http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Sync-ing_Config_Files_to_Nodes

The way EXECUTE works, is it will execute postinstall.post,   If
postinstall file is sync'd to the node.   The idea is you would want to
sync  a configuration file to the node and then run a script to restart the
application using that configuration file.  But you would only want to do
it, if the file changed.    Note the names of the files are tied together.
The <filename> to sync and the <filename>.post to execute.

So your synclist should have looked like:

/root/postinstall -> /root/postinstall
EXECUTE:
/root/postinstall.post

Now to just generally run scripts after install, you can use the
postscripts table and add your own scripts.  The procedure for doing this
is in the following doc:
http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Postscripts_and_Prescripts


Lissa K. Valletta
2-3/T12
Poughkeepsie, NY 12601
(tie 293) 433-3102





From:   Ben De Luca <[email protected]>
To:     [email protected]
Date:   11/22/2011 04:18 AM
Subject:        [xcat-user] new user, trouble with synclists



Hi All,
          Im new to xcat as of last week, and its been a particularily
impresive/easy trip so far, but now im stuck.


I am using a synclist to configure my machines post install, but I
cant get the EXECUTE functionality to work. My synclist looks like
this, the file is synced.


/root/postinstall.post -> /root/postinstall.post
EXECUTE:
/root/postinstall.post

postinstall.post looks like.

#!/bin/sh
echo please work > /root/itworked.txt



But I can never get the itworked file to appear, and I am a little
stuck on where to go next.

Is this the way to run a script after install? Should I be doing it
some other way?
Is this expected to work?
is there a log of whats happening that I may be able to check on the
machine to see what went wrong?



-bd

------------------------------------------------------------------------------

All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to