Could you open a bug targetting to xcat 2.8.2? xcat should extract all the #INCLUDE files before replacing the #XCATVAR and other #ENV in the template.
a patch for you, you may not be able to patch it directly on different xcat levels but you can see what has been fixed. Best Regards, -------------------------------------------------------------- Wang Huazhong(王华忠) IBM CSTL HPC System Management Development Tel: 86-10-82452279 Email: [email protected] Address: Ring Building 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193 From: Kevin Ying <[email protected]> To: [email protected], Date: 2013/05/09 07:16 Subject: [xcat-user] Postscript Nested Includes While reorganizing our pre.* and post.* templates, we noticed that nested includes do not have their variables evaluated. For example, the template server.tmpl that contains 2 includes: pre.compute and post.compute. Each of these files may include other files that have their variables successfully evaluated. But when the included files themselves contain another include to another file, then the 2nd level nested file's variables are not evaluated (e.g., #XCATVAR#MASTER#, #TABLE#, etc). server.tmpl > pre.compute (variables OK) > post.compute (variables OK) > include: networking.tmpl (variables OK) > include: users.tmpl (variables OK) > include: post.rh > include: post.rh.1 (variables not evaluated) > include: post.rh.2 (variables not evaluated) Is this intended behavior or something that can easily be added in a future version? ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
patch
Description: Binary data
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
