Advertisement
raniaadouni

wordpresszun

Jan 12th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. heat_template_version: 2017-09-01
  2. outputs:
  3. url:
  4. description: The web server url
  5. value:
  6. {get_attr: [floating_ip, floating_ip_address]}
  7.  
  8. resources:
  9. association:
  10. properties:
  11. floatingip_id: { get_resource: floating_ip }
  12. port_id:
  13. {get_attr: [wordpress, addresses, private-network, 0, port]}
  14. type: OS::Neutron::FloatingIPAssociation
  15.  
  16. wordpress:
  17. type: OS::Zun::Container
  18. properties:
  19. image: "wordpress:latest"
  20. environment:
  21. WORDPRESS_DB_HOST:
  22. {get_attr: [db, addresses,private-network, 0, addr]}
  23. WORDPRESS_DB_USER: root
  24. WORDPRESS_DB_PASSWORD: rootpass
  25. db:
  26. type: OS::Zun::Container
  27. properties:
  28. image: mysql
  29. environment:
  30. MYSQL_ROOT_PASSWORD: rootpass
  31. MYSQL_DATABASE: wordpress
  32.  
  33. floating_ip:
  34. type: OS::Neutron::FloatingIP
  35. properties: {floating_network: external-net}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement