EntropyWorks

My combined /srv/salt/test/simple_stack/init.sls

Mar 13th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. stack_needed_pkgs:
  2. pkg.installed:
  3. - pkgs:
  4. - python-lxml
  5. - python-libxslt1
  6.  
  7. simple_stack_clone:
  8. git.latest:
  9. - order: 1
  10. - name: https://github.com/simple-stack/simple-stack.git
  11. - target: /srv/simple-stack
  12. - rev: master
  13. - runas: root
  14. - submodules: true
  15.  
  16. /srv/simple-stack/install-controller-node.sh:
  17. file.managed:
  18. - source: salt://simple_stack/bin/install-controller-node.sh
  19. - user: root
  20. - group: root
  21. - mode: 755
  22. - require:
  23. - git: simple_stack_clone
  24.  
  25. /srv/simple-stack/install-compute-node.sh:
  26. file.managed:
  27. - source: salt://simple_stack/bin/install-compute-node.sh
  28. - user: root
  29. - group: root
  30. - mode: 755
  31. - require:
  32. - git: simple_stack_clone
  33.  
  34. /srv/simple-stack/environment.json:
  35. file.managed:
  36. - source: salt://simple_stack/envs/environment.jinja
  37. - user: root
  38. - group: root
  39. - mode: 644
  40. - template: jinja
  41. - defaults:
  42. admin_token: {{ pillar['simple_stack']['admin_token'] }}
  43. service_password: {{ pillar['simple_stack']['service_password'] }}
  44. admin_password: {{ pillar['simple_stack']['admin_password'] }}
  45. interfaces_control: {{ pillar['simple_stack']['interfaces_control'] }}
  46. interfaces_public: {{ pillar['simple_stack']['interfaces_public'] }}
  47. database_password: {{ pillar['simple_stack']['database_password'] }}
  48. openstack_public_address: {{ pillar['simple_stack']['openstack_public_address'] }}
  49. openstack_admin_address: {{ pillar['simple_stack']['openstack_admin_address'] }}
  50. openstack_internal_address: {{ pillar['simple_stack']['openstack_internal_address'] }}
  51. keystone_host: {{ pillar['simple_stack']['keystone_host'] }}
  52. keystone_db: {{ pillar['simple_stack']['keystone_db'] }}
  53. rabbit_host: {{ pillar['simple_stack']['rabbit_host'] }}
  54. rabbit_password: {{ pillar['simple_stack']['rabbit_password'] }}
  55. glance_host: {{ pillar['simple_stack']['glance_host'] }}
  56. glance_db: {{ pillar['simple_stack']['glance_db'] }}
  57. nova_host: {{ pillar['simple_stack']['nova_host'] }}
  58. nova_db: {{ pillar['simple_stack']['nova_db'] }}
  59. nova_libirt_type: {{ pillar['simple_stack']['nova_libvirt_type'] }}
  60. nova_networking_floating: {{ pillar['simple_stack']['nova_network_floating'] }}
  61. nova_networking_private: {{ pillar['simple_stack']['nova_network_private'] }}
  62. nova_networking_public_interface: {{ pillar['simple_stack']['nova_network_public_interface'] }}
  63. nova_networking_my_ip: {{ pillar['simple_stack']['nova_network_my_ip'] }}
  64. cinder_db: {{ pillar['simple_stack']['cinder_db'] }}
  65. quantum_host: {{ pillar['simple_stack']['quantum_host'] }}
  66. quantum_ovs_db: {{ pillar['simple_stack']['quantum_ovs_db'] }}
  67. - require:
  68. - git: simple_stack_clone
Advertisement
Add Comment
Please, Sign In to add comment