Role os_tacker for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tacker_horizon.yml 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. # temporary tacker horizon dashboard setup
  3. # tacker-horizon install should done by horizon role
  4. # and probably different than this :)
  5. # tacker horizon depends on tacker client
  6. - name: Clone tacker client
  7. git:
  8. repo: "{{ tackerclient_git_url }}"
  9. version: "{{ tacker_git_branch }}"
  10. dest: /tmp/python-tackerclient
  11. force: yes
  12. register: tackerclient_git_clone
  13. delegate_to: "{{ item }}"
  14. with_items:
  15. - "{{ groups['horizon_all'] }}"
  16. until: tackerclient_git_clone is success
  17. retries: 5
  18. delay: 2
  19. tags:
  20. - tacker-horizon-install
  21. - name: Install tacker client into venv
  22. command: python setup.py install
  23. args:
  24. chdir: /tmp/python-tackerclient
  25. creates: /usr/local/bin/tacker
  26. delegate_to: "{{ item }}"
  27. with_items:
  28. - "{{ groups['horizon_all'] }}"
  29. tags:
  30. - tacker-horizon-install
  31. - name: Clone tacker horizon source
  32. git:
  33. repo: "{{ tacker_horizon_git }}"
  34. version: stable/liberty
  35. dest: /tmp/python-tacker-horizon
  36. force: yes
  37. register: tackerhorizon_git_clone
  38. delegate_to: "{{ item }}"
  39. with_items:
  40. - "{{ groups['horizon_all'] }}"
  41. until: tackerhorizon_git_clone is success
  42. retries: 5
  43. delay: 2
  44. tags:
  45. - tacker-horizon-install
  46. - name: Install tacker-horizon pip packages
  47. pip:
  48. name: "{{ tacker_requires_pip_packages | join(' ') }}"
  49. state: latest
  50. extra_args: "{{ pip_install_options_fact }}"
  51. register: install_packages
  52. until: install_packages is success
  53. retries: 5
  54. delay: 2
  55. - name: Install tacker horizon into venv
  56. command: "{{ tacker_horizon_venv_bin }}/python setup.py install"
  57. args:
  58. chdir: /tmp/python-tacker-horizon
  59. creates:
  60. "{{ tacker_horizon_venv_bin }}/../lib/python2.7/site-packages/tacker_horizon"
  61. delegate_to: "{{ item }}"
  62. notify: Restart apache
  63. with_items:
  64. - "{{ groups['horizon_all'] }}"
  65. tags:
  66. - tacker-horizon-install
  67. - name: Enable tacker in openstack dashboard
  68. command: cp openstack_dashboard_extensions/_80_nfv.py {{ tacker_horizon_enable_path }}/_80_nfv.py
  69. args:
  70. chdir: /tmp/python-tacker-horizon
  71. creates: "{{ tacker_horizon_enable_path }}/_80_nfv.py"
  72. delegate_to: "{{ item }}"
  73. notify: Restart apache
  74. with_items:
  75. - "{{ groups['horizon_all'] }}"
  76. tags:
  77. - tacker-horizon-install