Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heat_template_version: 2017-09-01
- outputs:
- url:
- description: The web server url
- value:
- {get_attr: [floating_ip, floating_ip_address]}
- resources:
- association:
- properties:
- floatingip_id: { get_resource: floating_ip }
- port_id:
- {get_attr: [wordpress, addresses, private-network, 0, port]}
- type: OS::Neutron::FloatingIPAssociation
- wordpress:
- type: OS::Zun::Container
- properties:
- image: "wordpress:latest"
- environment:
- WORDPRESS_DB_HOST:
- {get_attr: [db, addresses,private-network, 0, addr]}
- WORDPRESS_DB_USER: root
- WORDPRESS_DB_PASSWORD: rootpass
- db:
- type: OS::Zun::Container
- properties:
- image: mysql
- environment:
- MYSQL_ROOT_PASSWORD: rootpass
- MYSQL_DATABASE: wordpress
- floating_ip:
- type: OS::Neutron::FloatingIP
- properties: {floating_network: external-net}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement