default.txt 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # This is a comment
  2. import toto.graph;
  3. ##
  4. # Facet
  5. ##
  6. facet VM {
  7. installer: iaas;
  8. }
  9. # Components
  10. VM_ec2 {
  11. facets: VM;
  12. children: cluster-node, mysql;
  13. }
  14. VM_openstack {
  15. facets: VM;
  16. children: cluster-node, mysql;
  17. }
  18. cluster-node {
  19. alias: a cluster node;
  20. installer: puppet;
  21. exports: ip, port, optional-property1, optional_property2;
  22. imports: cluster-node.ip (optional), cluster-node.port (optional), mysql.ip, mysql.port;
  23. }
  24. mysql {
  25. alias: a MySQL database;
  26. installer: puppet;
  27. exports: ip, port;
  28. }
  29. ##
  30. # Normally, instances are defined in another file...
  31. ##
  32. instance of VM_ec2 {
  33. name: VM_;
  34. count: 3;
  35. my-instance-property: whatever;
  36. instance of cluster-node {
  37. name: cluster node; # An in-line comment
  38. }
  39. }
  40. instance of VM_openstack {
  41. name: VM_database;
  42. instance of mysql {
  43. name: mysql;
  44. }
  45. }