Guest User

Untitled

a guest
Feb 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. ---
  2. - name: Update cache
  3. hosts: 'all:!tag_Component_hadoop:!tag_Component_hadoop_expansion:!tag_Component_hdfs:!tag_Component_cassandra:!tag_Component_redis:!tag_Component_mssql'
  4. user: "{{ USER | default('deploy')}}"
  5. roles:
  6. - update_cache
  7.  
  8. - name: create new instance
  9. hosts: localhost
  10. become: false
  11. roles:
  12. - { role: create_instance,
  13. component: "{{ COMPONENT | default('SPECIFY-A-COMPONENT') }}",
  14. public: no,
  15. security_groups: ['default', '{{ component }}-{{ datacenter }}'],
  16. type: m4.xlarge,
  17. when: new is defined and new }
  18.  
  19. - name: configure instance data volume
  20. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  21. user: "{{ USER | default('deploy')}}"
  22. become: true
  23. roles:
  24. - { role: prep_data_volume,
  25. when: new is defined and new }
  26.  
  27. - name: tag instance and create resource records
  28. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  29. user: "{{ USER | default('deploy')}}"
  30. become: false
  31. roles:
  32. - { role: tag_instance,
  33. component: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}",
  34. when: new is defined and new }
  35.  
  36. - name: Create Apixio Users
  37. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  38. user: "{{ USER | default('deploy') }}"
  39. become: true
  40. roles:
  41. - users
  42.  
  43. - name: Deploy Apixio Service
  44. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  45. user: "{{ USER | default('deploy') }}"
  46. become: true
  47. roles:
  48. - apixio_services
  49.  
  50. - name: Apixio 'Consul Cluster' Playbook
  51. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  52. user: "{{ USER | default('deploy') }}"
  53. become: true
  54. roles:
  55. - consul
  56.  
  57. - name: Stop consul service
  58. hosts: "stop_consul:{{ HOSTS| default('tag_Component_SPECIFY-A-COMPONENT')}}"
  59. user: "{{ USER | default('deploy') }}"
  60. become: true
  61. roles:
  62. - manage_services
  63.  
  64. - name: notify slack channel
  65. hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
  66. user: "{{ USER | default('deploy') }}"
  67. roles:
  68. - notify_slack_channel
Add Comment
Please, Sign In to add comment