Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- # StackStorm auth
- st2_auth_enable: yes
- # Save credentials under /root/.st2/config
- st2_save_credentials: yes
- st2_auth_username: st2admin
- st2_auth_password: "{{ lookup('password', '{{ my_creds_dir }}/st2-' + inventory_hostname + '-' + st2_auth_username + ' length=42' ) }}"
- # MongoDB
- st2mongo_db: st2
- st2mongo_username: st2mongo
- st2mongo_password: "{{ lookup('password', '{{ my_creds_dir }}/st2mongo-' + inventory_hostname + '-' + st2mongo_username + ' length=42' ) }}"
- st2mongo_host: 127.0.0.1
- st2mongo_port: 27017
- st2mongo_admin_db: admin
- st2mongo_admin_username: admin
- st2mongo_admin_password: "{{ st2mongo_password }}"
- # RabbitMQ
- # vhost defaults to empty (equivalent to /)
- st2rmq_vhost: st2
- st2rmq_username: st2rmq
- st2rmq_password: "{{ lookup('password', '{{ my_creds_dir }}/st2rmq-' + inventory_hostname + '-' + st2rmq_db_username + ' length=42' ) }}"
- st2rmq_host: 127.0.0.1
- st2rmq_port: 5672
- # Postgres
- st2mistral_db: mistral
- st2mistral_db_username: st2mistral
- st2mistral_db_password: "{{ lookup('password', '{{ my_creds_dir }}/st2mistral-' + inventory_hostname + '-' + st2mistral_db_username + ' length=42' ) }}"
- # host is hardcoded to localhost
- #st2mistral_db_host: localhost
- #st2mistral_db_port: 5432
- # TODO: Redis
- # Redis
- #st2redis_password: "{{ lookup('password', '{{ my_creds_dir }}/st2redis-' + inventory_hostname + ' length=42' ) }}"
- #st2redis_host:
- #st2redis_port: 6379
- # TODO: These must be strings, not file paths. So, they'll need to be stored in vault.
- # st2web copies these to /etc/ssl/st2/st2.{crt,key} instead of modifying/templating /etc/nginx/conf.d/st2.conf
- #st2web_ssl_certificate: "{{ my_ssl_crt }}"
- #st2web_ssl_certificate_key: "{{ my_ssl_key }}"
- st2mistral_config:
- # TODO: modify stackstorm.mistral to specify host and port and still take advantage of the mistral restart handler
- # the default database.connection uses st2mistral_db{,_username,_password} and hardcodes localhost
- #database:
- # connection: "postgresql://{{ st2mistral_db_username }}:{{ st2mistral_db_password }}@{{ st2mistral_db_host }}:{{ st2mistral_db_port }}/{{ st2mistral_db|default('mistral') }}"
- DEFAULT:
- transport_url: "rabbit://{{ st2rmq_username }}:{{ st2rmq_password }}@{{ st2rmq_host }}:{{ st2rmq_port }}{{ st2rmq_vhost|default('') }}"
- # group dict gets merged with host dict. Override host dict in hostvars.
- # From playbook:
- # roles:
- # - name: ST2 | Install and configure StackStorm (st2)
- # role: StackStorm.stackstorm/roles/st2
- # vars:
- # st2_config: "{{ group_st2_config|combine(host_st2_config, recursive=True) }}"
- host_st2_config: {}
- group_st2_config:
- database: # Mongo
- db_name: "{{ st2mongo_db }}"
- username: "{{ st2mongo_username }}"
- password: "{{ st2mongo_password }}"
- host: "{{ st2mongo_host }}"
- port: "{{ st2mongo_port }}"
- messaging: # RabbitMQ
- url: "amqp://{{ st2rmq_username }}:{{ st2rmq_password }}@{{ st2rmq_host }}:{{ st2rmq_port }}{{ st2rmq_vhost|default('') }}"
- #coordination: # Redis
- # url: 'redis://{{ st2redis_password }}@{{ st2redis_host }}:'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement