Can someone please provide with the command to associate a kit with a nodegroup?
Can someone please provide with the command to associate a kit with a nodegroup?
Hi
Todays ngedit cannot do what you want. We are working on a version that will allow you to import/export nodegroup definitions as XML, so editing the XML would change the node defination.
If you are doing this within a kit spec file you can use something like:
%define comp1 component-MyApplication
%define SQLRUNNER /opt/kusu/sbin/sqlrunner
cid=`%{SQLRUNNER} -q "SELECT cid FROM components WHERE cname='%{comp1}'"`
%{SQLRUNNER} -q "INSERT INTO ng_has_comp SET cid=$cid, ngid=1"
There is also a way to do it automatically with a kitinfo file (I think).
Ngedit now can import/export XML nodegroup definitions. It's not documented though, but it should not be too difficult to determine what the XML means.