On Mon, Mar 19, 2012 at 8:00 PM, Phil Frost <p...@macprofessionals.com> wrote: > I'm attempting to automate my cluster configuration with Puppet. I'm already > using Puppet to manage the configuration of my Xen domains. I'd like to > instruct puppet to apply the configuration (via cibadmin) to a shadow config, > but I can't find any sure way to do this. The issue is that running > "crm_shadow --create ..." starts a subshell, but there's no easy way I can > tell puppet to run a command, then run another command in the subshell it > creates. > > Normally I'd expect some command-line option, but I can't find any. It does > look like it sets the environment variable "CIB_shadow". Is that all there is > to it? Is it safe to rely on that behavior?
I've never tried this specific use case, so bear with me while I go out on a limb, but the crm shell is fully scriptable. Thus you *should* be able to generate a full-blown crm script, with "cib foo" commands and whathaveyou, in a temporary file, and then just do "crm < /path/to/temp/file". Does that work for you? Cheers, Florian -- Need help with High Availability? http://www.hastexo.com/now _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org