Advertisement
Guest User

Untitled

a guest
May 19th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. cat playbooks/group_vars/all.yml
  2. ---
  3.  
  4. default_ssh_keys:
  5. - "{{ lookup('file', 'files/ssh_keys/vagrant.pub') }}" # Vagrant
  6. - "{{ lookup('file', 'files/ssh_keys/id_rsa.pub') }}" # Host
  7.  
  8. default_use_debian_repo: yes # If yes, use only Debian official repo for provisioning tasks
  9.  
  10. default_user: deploy
  11. default_group: deploy
  12.  
  13. default_celery_options: "--loglevel=INFO --without-gossip --without-mingle --without-heartbeat --soft-time-limit=60 --time-limit=300"
  14.  
  15. users:
  16. - username: "{{ default_user }}"
  17. name: "{{ default_user }}"
  18. groups: ["{{ irma_server_group }}", 'sudo']
  19. uid: 1010
  20. ssh_key: "{{ default_ssh_keys }}"
  21.  
  22. sudo_users:
  23. - { name: "{{ default_user }}", nopasswd: yes }
  24.  
  25.  
  26. ## IRMA specific infrastructure
  27. irma_environment: production # Can be (development, test)
  28.  
  29. irma_user: irma
  30. irma_group: irma
  31. irma_server_group: irma-server
  32. irma_cert_group: irma-cert
  33.  
  34. irma_configurations:
  35. brain_addr: 10.255.10.32
  36. rabbitmq:
  37. brain:
  38. vhost: mqbrain
  39. user: brain
  40. password: brain
  41. frontend:
  42. vhost: mqfrontend
  43. user: frontend
  44. password: frontend
  45. probe:
  46. vhost: mqprobe
  47. user: probe
  48. password: probe
  49. ftpd:
  50. frontend:
  51. username: frontend
  52. password: frontend
  53. probe:
  54. username: probe
  55. password: probe
  56. postgresql:
  57. frontend:
  58. username: irma
  59. password: irma
  60. db_name: irma-frontend
  61.  
  62.  
  63. # Deployment
  64. irma_deployment_code_version: "{{ 'local' if vagrant_share|default(false) else irma_release|default('HEAD') }}"
  65. irma_deployment_release_name: "{{ lookup('pipe', 'date +%Y%m%d%H%M%S') }}"
  66.  
  67.  
  68. ## UFW
  69. ufw_login: on
  70. ufw_applications:
  71. - { name: "OpenSSH" }
  72.  
  73. ## OpenSSH server config
  74. sshd:
  75. AcceptEnv: LANG
  76. IgnoreRhost: yes
  77. LogLevel: INFO
  78. PermitEmptyPasswords: no
  79. PermitRootLogin: no
  80. Protocol: 2
  81. X11Forwarding: no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement