config.erb 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. # Managed by puppet
  2. # Module:: nagbot
  3. #
  4. servers = (
  5. {
  6. address = "<%= @irc_server %>";
  7. chatnet = "<%= @irc_chatnet %>";
  8. autoconnect = "<%= @irc_autoconnect %>";
  9. port = "<%= @irc_port %>";
  10. use_ssl = "<%= @irc_ssl %>";
  11. autosendcmd = "<%= @irc_autosendcmd %>";
  12. }
  13. );
  14. chatnets = {};
  15. channels = (
  16. ###################################
  17. {
  18. name = "<%= @channel_name %>";
  19. chatnet = "<%= @channel_chatnet %>";
  20. password = "<%= @channel_passwd %>";
  21. autojoin = "<%= @channel_autojoin %>";
  22. }
  23. );
  24. ###################################
  25. aliases = {
  26. J = "join";
  27. WJOIN = "join -window";
  28. WQUERY = "query -window";
  29. LEAVE = "part";
  30. BYE = "quit";
  31. EXIT = "quit";
  32. SIGNOFF = "quit";
  33. DESCRIBE = "action";
  34. DATE = "time";
  35. HOST = "userhost";
  36. LAST = "lastlog";
  37. SAY = "msg *";
  38. WI = "whois";
  39. WII = "whois $0 $0";
  40. WW = "whowas";
  41. W = "who";
  42. N = "names";
  43. M = "msg";
  44. T = "topic";
  45. C = "clear";
  46. CL = "clear";
  47. K = "kick";
  48. KB = "kickban";
  49. KN = "knockout";
  50. BANS = "ban";
  51. B = "ban";
  52. MUB = "unban *";
  53. UB = "unban";
  54. IG = "ignore";
  55. UNIG = "unignore";
  56. SB = "scrollback";
  57. UMODE = "mode $N";
  58. WC = "window close";
  59. WN = "window new hide";
  60. SV = "say Irssi $J ($V) - http://irssi.org/";
  61. GOTO = "sb goto";
  62. CHAT = "dcc chat";
  63. RUN = "SCRIPT LOAD";
  64. SBAR = "STATUSBAR";
  65. INVITELIST = "mode $C +I";
  66. Q = "QUERY";
  67. "MANUAL-WINDOWS" = "set use_status_window off;set autocreate_windows off;set autocreate_query_level none;set autoclose_windows off;set reuse_unused_windows on;save";
  68. EXEMPTLIST = "mode $C +e";
  69. ATAG = "WINDOW SERVER";
  70. };
  71. #######################
  72. # Cosmetic parameters #
  73. #######################
  74. statusbar = {
  75. # formats:
  76. # when using {templates}, the template is shown only if it's argument isn't
  77. # empty unless no argument is given. for example {sb} is printed always,
  78. # but {sb $T} is printed only if $T isn't empty.
  79. items = {
  80. # start/end text in statusbars
  81. barstart = "{sbstart}";
  82. barend = "{sbend}";
  83. topicbarstart = "{topicsbstart}";
  84. topicbarend = "{topicsbend}";
  85. # treated "normally", you could change the time/user name to whatever
  86. time = "{sb $Z}";
  87. user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
  88. # treated specially .. window is printed with non-empty windows,
  89. # window_empty is printed with empty windows
  90. window = "{sb $winref:$itemname{sbmode $M}}";
  91. window_empty = "{sb $winref{sbservertag $tag}}";
  92. prompt = "{prompt $[.15]itemname}";
  93. prompt_empty = "{prompt $winname}";
  94. topic = " $topic";
  95. topic_empty = " Irssi v$J - http://irssi.org/help/";
  96. # all of these treated specially, they're only displayed when needed
  97. lag = "{sb Lag: $0-}";
  98. act = "{sb Act: $0-}";
  99. more = "-- more --";
  100. };
  101. # there's two type of statusbars. root statusbars are either at the top
  102. # of the screen or at the bottom of the screen. window statusbars are at
  103. # the top/bottom of each split window in screen.
  104. default = {
  105. # the "default statusbar" to be displayed at the bottom of the window.
  106. # contains all the normal items.
  107. window = {
  108. disabled = "no";
  109. # window, root
  110. type = "window";
  111. # top, bottom
  112. placement = "bottom";
  113. # number
  114. position = "1";
  115. # active, inactive, always
  116. visible = "active";
  117. # list of items in statusbar in the display order
  118. items = {
  119. barstart = { priority = "100"; };
  120. time = { };
  121. user = { };
  122. window = { };
  123. window_empty = { };
  124. lag = { priority = "-1"; };
  125. act = { priority = "10"; };
  126. more = { priority = "-1"; alignment = "right"; };
  127. barend = { priority = "100"; alignment = "right"; };
  128. usercount = { };
  129. };
  130. };
  131. # statusbar to use in inactive split windows
  132. window_inact = {
  133. type = "window";
  134. placement = "bottom";
  135. position = "1";
  136. visible = "inactive";
  137. items = {
  138. barstart = { priority = "100"; };
  139. window = { };
  140. window_empty = { };
  141. more = { priority = "-1"; alignment = "right"; };
  142. barend = { priority = "100"; alignment = "right"; };
  143. };
  144. };
  145. # we treat input line as yet another statusbar :) It's possible to
  146. # add other items before or after the input line item.
  147. prompt = {
  148. type = "root";
  149. placement = "bottom";
  150. # we want to be at the bottom always
  151. position = "100";
  152. visible = "always";
  153. items = {
  154. prompt = { priority = "-1"; };
  155. prompt_empty = { priority = "-1"; };
  156. # treated specially, this is the real input line.
  157. input = { priority = "10"; };
  158. };
  159. };
  160. # topicbar
  161. topic = {
  162. type = "root";
  163. placement = "top";
  164. position = "1";
  165. visible = "always";
  166. items = {
  167. topicbarstart = { priority = "100"; };
  168. topic = { };
  169. topic_empty = { };
  170. topicbarend = { priority = "100"; alignment = "right"; };
  171. };
  172. };
  173. awl_0 = {
  174. items = {
  175. barstart = { priority = "100"; };
  176. awl_0 = { };
  177. barend = { priority = "100"; alignment = "right"; };
  178. };
  179. };
  180. };
  181. };
  182. settings = {
  183. "irc/core" = {
  184. join_auto_chans_on_invite = "yes";
  185. ctcp_version_reply = "nagbot 42";
  186. };
  187. core = {
  188. real_name = "Protocol Droid 42, at your service.";
  189. user_name = "<%= @nickname %>";
  190. nick = "<%= @nickname %>";
  191. recode_out_default_charset = "= utf8";
  192. recode_autodetect_utf8 = "yes";
  193. quit_message = "Sir, the possibility of successfully navigating an asteroid field is approximately 3,720 to 1. We should turn ar...";
  194. };
  195. "perl/core/scripts" = {
  196. charsetwars_convert_in = "yes";
  197. charsetwars_convert_out = "yes";
  198. charsetwars_own = "utf";
  199. ###################################
  200. autorejoin_channels = "<%= @channel_name %>";
  201. nagios_ack_channel = "<%= @channel_name %>";
  202. nagios_ack_nick = "";
  203. nagios_command = "<%= @nagios_command %>";
  204. fifo_remote_file = "<%= @fifo_remote_file %>";
  205. }
  206. };
  207. "fe-common/core" = {
  208. term_charset = "utf8";
  209. autolog = "yes";
  210. autolog_colors = "no";
  211. autocreate_query_level = "NONE";
  212. };
  213. "fe-text" = { actlist_sort = "refnum"; };
  214. };
  215. conversions = {};
  216. hilights = ( { text = "<%= @nickname %>"; nick = "yes"; word = "yes"; } );
  217. windows = {
  218. 1 = {
  219. immortal = "yes";
  220. name = "(status)";
  221. level = "ALL";
  222. sticky = "yes";
  223. };
  224. 2 = { immortal = "yes"; name = "hilight"; sticky = "yes"; };
  225. 3 = {
  226. ###################################
  227. items = (
  228. {
  229. type = "CHANNEL";
  230. chat_type = "IRC";
  231. name = "<%= @channel_name %>";
  232. tag = "GeekNode";
  233. }
  234. );
  235. sticky = "yes";
  236. ###################################
  237. };
  238. };
  239. mainwindows = {
  240. 2 = { first_line = "1"; lines = "5"; };
  241. 3 = { first_line = "19"; lines = "53"; };
  242. 1 = { first_line = "6"; lines = "13"; };
  243. };
  244. logs = { };
  245. ignores = ( { level = "CTCPS"; } );