Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. ---
  2. # StackStorm auth
  3. st2_auth_enable: yes
  4. # Save credentials under /root/.st2/config
  5. st2_save_credentials: yes
  6. st2_auth_username: st2admin
  7. st2_auth_password: "{{ lookup('password', '{{ my_creds_dir }}/st2-' + inventory_hostname + '-' + st2_auth_username + ' length=42' ) }}"
  8.  
  9. # MongoDB
  10. st2mongo_db: st2
  11. st2mongo_username: st2mongo
  12. st2mongo_password: "{{ lookup('password', '{{ my_creds_dir }}/st2mongo-' + inventory_hostname + '-' + st2mongo_username + ' length=42' ) }}"
  13. st2mongo_host: 127.0.0.1
  14. st2mongo_port: 27017
  15. st2mongo_admin_db: admin
  16. st2mongo_admin_username: admin
  17. st2mongo_admin_password: "{{ st2mongo_password }}"
  18.  
  19. # RabbitMQ
  20. # vhost defaults to empty (equivalent to /)
  21. st2rmq_vhost: st2
  22. st2rmq_username: st2rmq
  23. st2rmq_password: "{{ lookup('password', '{{ my_creds_dir }}/st2rmq-' + inventory_hostname + '-' + st2rmq_db_username + ' length=42' ) }}"
  24. st2rmq_host: 127.0.0.1
  25. st2rmq_port: 5672
  26.  
  27. # Postgres
  28. st2mistral_db: mistral
  29. st2mistral_db_username: st2mistral
  30. st2mistral_db_password: "{{ lookup('password', '{{ my_creds_dir }}/st2mistral-' + inventory_hostname + '-' + st2mistral_db_username + ' length=42' ) }}"
  31. # host is hardcoded to localhost
  32. #st2mistral_db_host: localhost
  33. #st2mistral_db_port: 5432
  34.  
  35. # TODO: Redis
  36. # Redis
  37. #st2redis_password: "{{ lookup('password', '{{ my_creds_dir }}/st2redis-' + inventory_hostname + ' length=42' ) }}"
  38. #st2redis_host:
  39. #st2redis_port: 6379
  40.  
  41. # TODO: These must be strings, not file paths. So, they'll need to be stored in vault.
  42. # st2web copies these to /etc/ssl/st2/st2.{crt,key} instead of modifying/templating /etc/nginx/conf.d/st2.conf
  43. #st2web_ssl_certificate: "{{ my_ssl_crt }}"
  44. #st2web_ssl_certificate_key: "{{ my_ssl_key }}"
  45.  
  46.  
  47. st2mistral_config:
  48. # TODO: modify stackstorm.mistral to specify host and port and still take advantage of the mistral restart handler
  49. # the default database.connection uses st2mistral_db{,_username,_password} and hardcodes localhost
  50. #database:
  51. # connection: "postgresql://{{ st2mistral_db_username }}:{{ st2mistral_db_password }}@{{ st2mistral_db_host }}:{{ st2mistral_db_port }}/{{ st2mistral_db|default('mistral') }}"
  52. DEFAULT:
  53. transport_url: "rabbit://{{ st2rmq_username }}:{{ st2rmq_password }}@{{ st2rmq_host }}:{{ st2rmq_port }}{{ st2rmq_vhost|default('') }}"
  54.  
  55. # group dict gets merged with host dict. Override host dict in hostvars.
  56. # From playbook:
  57. # roles:
  58. # - name: ST2 | Install and configure StackStorm (st2)
  59. # role: StackStorm.stackstorm/roles/st2
  60. # vars:
  61. # st2_config: "{{ group_st2_config|combine(host_st2_config, recursive=True) }}"
  62. host_st2_config: {}
  63. group_st2_config:
  64. database: # Mongo
  65. db_name: "{{ st2mongo_db }}"
  66. username: "{{ st2mongo_username }}"
  67. password: "{{ st2mongo_password }}"
  68. host: "{{ st2mongo_host }}"
  69. port: "{{ st2mongo_port }}"
  70. messaging: # RabbitMQ
  71. url: "amqp://{{ st2rmq_username }}:{{ st2rmq_password }}@{{ st2rmq_host }}:{{ st2rmq_port }}{{ st2rmq_vhost|default('') }}"
  72. #coordination: # Redis
  73. # url: 'redis://{{ st2redis_password }}@{{ st2redis_host }}:'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement