test_corosync.aug 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. module Test_corosync =
  2. let conf = "# Please read the corosync.conf.5 manual page
  3. compatibility: whitetank
  4. totem {
  5. version: 2
  6. secauth: off
  7. crypto_type: nss
  8. crypto_accept: new
  9. threads: 0
  10. clear_node_high_bit: no
  11. rrp_mode: none
  12. transport: udp
  13. token: 1000
  14. interface {
  15. ringnumber: 0
  16. bindnetaddr: 192.168.122.1
  17. mcastaddr: 226.94.1.1
  18. mcastport: 5405
  19. }
  20. }
  21. logging {
  22. fileline: off
  23. function_name: on
  24. to_stderr: yes
  25. to_logfile: yes
  26. to_syslog: yes
  27. logfile: /tmp/corosync.log
  28. debug: off
  29. timestamp: on
  30. logger_subsys {
  31. to_syslog: no
  32. subsys: CPG
  33. debug: on
  34. }
  35. logger_subsys {
  36. to_stderr: no
  37. logfile: /tmp/corosync-msg.log
  38. subsys: MSG
  39. debug: on
  40. }
  41. }
  42. quorum {
  43. provider: corosync_quorum_ykd
  44. expected_votes: 5
  45. votes: 1
  46. quorumdev_poll: 2
  47. leaving_timeout: 2
  48. disallowed: 0
  49. two_node: 0
  50. }
  51. uidgid {
  52. uid: 0
  53. gid: 0
  54. }
  55. amf {
  56. mode: disabled
  57. }\n"
  58. test Corosync.lns get conf =
  59. { "#comment" = "Please read the corosync.conf.5 manual page" }
  60. { "compatibility" = "whitetank" }
  61. { }
  62. { "totem"
  63. { "version" = "2" }
  64. { "secauth" = "off" }
  65. { "crypto_type" = "nss" }
  66. { "crypto_accept" = "new" }
  67. { "threads" = "0" }
  68. { "clear_node_high_bit" = "no" }
  69. { "rrp_mode" = "none" }
  70. { "transport" = "udp" }
  71. { "token" = "1000" }
  72. { "interface"
  73. { "ringnumber" = "0" }
  74. { "bindnetaddr" = "192.168.122.1" }
  75. { "mcastaddr" = "226.94.1.1" }
  76. { "mcastport" = "5405" } } }
  77. { }
  78. { "logging"
  79. { "fileline" = "off" }
  80. { "function_name" = "on" }
  81. { "to_stderr" = "yes" }
  82. { "to_logfile" = "yes" }
  83. { "to_syslog" = "yes" }
  84. { "logfile" = "/tmp/corosync.log" }
  85. { "debug" = "off" }
  86. { "timestamp" = "on" }
  87. { "logger_subsys"
  88. { "to_syslog" = "no" }
  89. { "subsys" = "CPG" }
  90. { "debug" = "on" } }
  91. { "logger_subsys"
  92. { "to_stderr" = "no" }
  93. { "logfile" = "/tmp/corosync-msg.log" }
  94. { "subsys" = "MSG" }
  95. { "debug" = "on" } } }
  96. { }
  97. { "quorum"
  98. { "provider" = "corosync_quorum_ykd" }
  99. { "expected_votes" = "5" }
  100. { "votes" = "1" }
  101. { "quorumdev_poll" = "2" }
  102. { "leaving_timeout" = "2" }
  103. { "disallowed" = "0" }
  104. { "two_node" = "0" } }
  105. { }
  106. { "uidgid"
  107. { "uid" = "0" }
  108. { "gid" = "0" } }
  109. { }
  110. { "amf"
  111. { "mode" = "disabled" } }