SHARE
TWEET

wordpresszun

raniaadouni Jan 12th, 2019 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top