Hello,
Working further with puppet, I need to be able to graph both nodes and
class dependencies to be able to diagnose issues and/or redundancies.
Currently, activating graph allows me to get ressources/dependencies
graphs per client.
But I would like to highlight nodes dependenxies as well.
Is there any way to get a global "node-centric" graph ?
If yes, how: server-side, client-side, both ?
For example, my nodes.pp look like:
node N_default{
include C_a;
include C_b;
}
node N_mynode inherits N_default {
include C_c;
}
node N_mynode2 inherits N_mynode1 {
include C_d;
}
node N_mynode3 inherits N_default {
include C_e;
}
Here, I would like to get .dot file as this:
digraph Nodes {
label = "Nodes"
"N_default" [
fontsize = 8,
label = "N_default"
]
"N_mynode" [
fontsize = 8,
label = "N_mynode"
]
"N_mynode2" [
fontsize = 8,
label = "N_mynode2"
]
"N_mynode3" [
fontsize = 8,
label = "N_mynode3"
]
"C_a" [
fontsize = 8,
label = "C_a"
]
"C_b" [
fontsize = 8,
label = "C_b"
]
"C_c" [
fontsize = 8,
label = "C_c"
]
"C_d" [
fontsize = 8,
label = "C_d"
]
"C_e" [
fontsize = 8,
label = "C_e"
]
"N_default" -> "N_mynode" [
fontsize = 8,
color = red
]
"N_mynode" -> "N_mynode2" [
fontsize = 8,
color = red
]
"N_default" -> "N_mynode3" [
fontsize = 8,
color = red
]
"C_a" -> "N_default" [
fontsize = 8,
color = blue
]
"C_b" -> "N_default" [
fontsize = 8,
color = blue
]
"C_c" -> "N_mynode" [
fontsize = 8,
color = blue
]
"C_d" -> "N_mynode2" [
fontsize = 8,
color = blue
]
"C_e" -> "N_mynode3" [
fontsize = 8,
color = blue
]
}
Regards,
JB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2Yqh4ACgkQM2eZoKJfKd1S3gCdEE0b2Hgi1TcXykHLeyZBH0DH
JvkAoKXhNJU4BxDbiD/j0/xJ0VIjX2ff
=q+xH
-----END PGP SIGNATURE-----
Le 04/04/11 05:26, donavan a �crit :
Thanks for you answer, will try on puppet-dev.
Regard,
JB