test_corosync.aug 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. quorate: 1
  50. two_node: 0
  51. }
  52. resources {
  53. system {
  54. memory_used {
  55. recovery: reboot
  56. max: 80
  57. }
  58. load_15min {
  59. recovery: watchdog
  60. max: 8.56
  61. }
  62. }
  63. }
  64. uidgid {
  65. uid: 0
  66. gid: 0
  67. }
  68. amf {
  69. mode: disabled
  70. }\n"
  71. test Corosync.lns get conf =
  72. { "#comment" = "Please read the corosync.conf.5 manual page" }
  73. { "compatibility" = "whitetank" }
  74. { }
  75. { "totem"
  76. { "version" = "2" }
  77. { "secauth" = "off" }
  78. { "crypto_type" = "nss" }
  79. { "crypto_accept" = "new" }
  80. { "threads" = "0" }
  81. { "clear_node_high_bit" = "no" }
  82. { "rrp_mode" = "none" }
  83. { "transport" = "udp" }
  84. { "token" = "1000" }
  85. { "interface"
  86. { "ringnumber" = "0" }
  87. { "bindnetaddr" = "192.168.122.1" }
  88. { "mcastaddr" = "226.94.1.1" }
  89. { "mcastport" = "5405" } } }
  90. { }
  91. { "logging"
  92. { "fileline" = "off" }
  93. { "function_name" = "on" }
  94. { "to_stderr" = "yes" }
  95. { "to_logfile" = "yes" }
  96. { "to_syslog" = "yes" }
  97. { "logfile" = "/tmp/corosync.log" }
  98. { "debug" = "off" }
  99. { "timestamp" = "on" }
  100. { "logger_subsys"
  101. { "to_syslog" = "no" }
  102. { "subsys" = "CPG" }
  103. { "debug" = "on" } }
  104. { "logger_subsys"
  105. { "to_stderr" = "no" }
  106. { "logfile" = "/tmp/corosync-msg.log" }
  107. { "subsys" = "MSG" }
  108. { "debug" = "on" } } }
  109. { }
  110. { "quorum"
  111. { "provider" = "corosync_quorum_ykd" }
  112. { "expected_votes" = "5" }
  113. { "votes" = "1" }
  114. { "quorumdev_poll" = "2" }
  115. { "leaving_timeout" = "2" }
  116. { "disallowed" = "0" }
  117. { "quorate" = "1" }
  118. { "two_node" = "0" } }
  119. { }
  120. { "resources"
  121. { "system"
  122. { "memory_used"
  123. { "recovery" = "reboot" }
  124. { "max" = "80" } }
  125. { "load_15min"
  126. { "recovery" = "watchdog" }
  127. { "max" = "8.56" } } } }
  128. { }
  129. { "uidgid"
  130. { "uid" = "0" }
  131. { "gid" = "0" } }
  132. { }
  133. { "amf"
  134. { "mode" = "disabled" } }