Advertisement
Guest User

Untitled

a guest
Mar 26th, 2014
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. postgres_everything:
  2. pkg.installed:
  3. - names:
  4. - postgresql91-client
  5. - postgresql91-contrib
  6. - postgresql91-plperl
  7. - postgresql91-server
  8.  
  9. kern.ipc.shmmax:
  10. sysctl.present:
  11. - value: 536870912
  12.  
  13. kern.ipc.shmall:
  14. sysctl.present:
  15. - value: 131072
  16.  
  17. initialdatabase:
  18. cmd.run:
  19. - name: /usr/local/etc/rc.d/postgresql oneinitdb
  20. - unless: '[ -f /usr/local/pgsql/data/postgresql.conf ]'
  21. - require:
  22. - pkg: postgres_everything
  23.  
  24. postgresql:
  25. service:
  26. - running
  27. - watch:
  28. - cmd: initialdatabase
  29. - pkg: postgres_everything
  30.  
  31. databaseglobals:
  32. cmd.run:
  33. - name: |
  34. ssh maayan.insightcruises.com pg_dumpall -g | psql -U pgsql template1
  35. touch /usr/local/pgsql/data/SALT-GLOBALS-LOADED
  36. - unless: '[ -f /usr/local/pgsql/data/SALT-GLOBALS-LOADED ]'
  37. - require:
  38. - service: postgresql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement