Pushing the Configuration data whenever a Guest OS Starts

Kalirajan M kalirajan.m at tcs.com
Thu Jan 17 11:45:25 UTC 2013


Hi All,

I am using CloudForms 1.1 version and checking whether i can reconfigure 
(ex: Copying a updated war file into it after first time startup) . Now 
whenever I am rerunning audrey agent in the guest, it is checking with the 
CS , but not getting the updated file or parameters passed.

Now when i edit this configuration details in the instances configuration 
folder 
(/var/lib/aeolus-configserver/configs/instances/7933c7b0-5fd8-11e2-b0fd-0025b500005f/) 
these details are moving to the guest operating system. However it should 
be an easy way (like if the desired file time stamp or version number 
changed(in the CS) it should be copied(updated ) automatically in the 
guest machine. 

Apologies if I am not clear.

Edits done in the tar file within the instance folder(Changes done thru 
this file are getting updated in the guest machine)

[root at vmwcfg 7933c7b0-5fd8-11e2-b0fd-0025b500005f]# zcat 
7933c7b0-5fd8-11e2-b0fd-0025b500005f.tgz
tomcat/0000755000026400002640000000000012075763675011727 5ustar 
aeolusaeolustomcat/test.txt0000644000026400002640000000001412075763675013442 
0ustar  aeolusaeolushello again
tomcat/start0000755000026400002640000000060112075510503012763 0ustar 
aeolusaeolus#!/usr/bin/python

import os
import subprocess
import shutil

# stop firewall (aws starts it automatically)
subprocess.call(["/sbin/service", "iptables", "stop"])

# make selinux permissive
subprocess.call(["/usr/sbin/setenforce", "0"])

# Starting Tomcat Service
subprocess.call(["/sbin/service", "tomcat6", "start"])
shutil.copyfile('test.txt', '/var/lib/tomcat6/webapps/test.txt')
Thanks,
Kalirajan Muthuswami
Tata Consultancy Services
Ph:- 9940631939
Mailto: kalirajan.m at tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/aeolus-devel/attachments/20130117/9549e01d/attachment.html>


More information about the aeolus-devel mailing list