Advertisement
Guest User

Untitled

a guest
Sep 12th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. pgbouncer:
  2. pkg.installed:
  3. - version: 1.5.4-3.rhel6
  4. service:
  5. - running
  6. - enable: True
  7. - reload: True
  8. - watch:
  9. - file: /etc/pgbouncer/userlist.txt
  10. - file: /etc/pgbouncer/pgbouncer.ini
  11.  
  12. pgbouncer.ini:
  13. file.managed:
  14. - name: /etc/pgbouncer/pgbouncer.ini
  15. - source: salt://qa04/pgbouncer/pgbouncer.ini
  16. - user: pgbouncer
  17. - group: pgbouncer
  18. - mode: 644
  19.  
  20. userlist.txt:
  21. file.managed:
  22. - name: /etc/pgbouncer/userlist.txt
  23. - source: salt://qa04/pgbouncer/userlist.txt
  24. - user: pgbouncer
  25. - group: pgbouncer
  26. - mode: 600
  27.  
  28.  
  29.  
  30.  
  31. ----------
  32. file_|-pgbouncer.ini_|-/etc/pgbouncer/pgbouncer.ini_|-managed:
  33. ----------
  34. __run_num__:
  35. 1
  36. changes:
  37. ----------
  38. diff:
  39. ---
  40. +++
  41. @@ -1,4 +1,4 @@
  42. -;;; database name = connect string
  43. +;; database name = connect string
  44. ;;
  45. ;; connect string params:
  46. ;; dbname= host= port= user= password=
  47.  
  48. comment:
  49. File /etc/pgbouncer/pgbouncer.ini updated
  50. name:
  51. /etc/pgbouncer/pgbouncer.ini
  52. result:
  53. True
  54. file_|-userlist.txt_|-/etc/pgbouncer/userlist.txt_|-managed:
  55. ----------
  56. __run_num__:
  57. 0
  58. changes:
  59. ----------
  60. diff:
  61. ---
  62. +++
  63. @@ -1,4 +1,4 @@
  64.  
  65. -"1stats" ""
  66. +"stats" ""
  67.  
  68.  
  69. comment:
  70. File /etc/pgbouncer/userlist.txt updated
  71. name:
  72. /etc/pgbouncer/userlist.txt
  73. result:
  74. True
  75. pkg_|-pgbouncer_|-pgbouncer_|-installed:
  76. ----------
  77. __run_num__:
  78. 4
  79. changes:
  80. ----------
  81. comment:
  82. The following packages failed to install/update: pgbouncer=1.5.4-3.rhel6.
  83. name:
  84. pgbouncer
  85. result:
  86. False
  87. service_|-pgbouncer_|-pgbouncer_|-running:
  88. ----------
  89. __run_num__:
  90. 3
  91. changes:
  92. ----------
  93. pgbouncer:
  94. True
  95. comment:
  96. Service reloaded
  97. name:
  98. pgbouncer
  99. result:
  100. True
  101. warnings:
  102. - 'enable' is an invalid keyword argument for 'service.mod_watch'. If you were trying to pass additional da
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement