search for: jianghai

Displaying 2 results from an estimated 2 matches for "jianghai".

Did you mean: jiahai
2011 Jun 30
5
How to define a hash table and loop over them in a definition?
This may have been asked before, if so, please excuse me and point me to the right direction. What I want to do is to define a hash table with multiple key->value pairs. I would like to pass this variable to a file template and generate a result file with all the mappings listed. Based on what I read, I need to do it in a definition. But does Puppet supports loop over a hash? Any help would
2011 Jul 07
13
What is the best practice to clean up installed components on a node?
I am new to Puppet, here is a question that I hope to get some help from the group: - assume I have 2 nodes, vm1 and vm2; - assume that I defined a class of node say, sg_node, that includes components such as Apache and Postgres DB etc. - in the nodes.pp file, we have node vm1 { include sg_node } Now, I want to let vm2 to be the sg_node, which is easy. But how to clean up vm1 so