Virtual Infrastructure

Download
description: OpenStack in OpenStack (Debian)
heat_template_version: '2013-05-23'
parameters:
  key_name:
    constraints:
    - {custom_constraint: nova.keypair, description: Must name a public key (pair)
        known to Nova}
    description: Name of an existing key pair to use for the instance
    label: Key pair
    type: string
resources:
  cinder_net:
    depends_on: [management_net, management_subnet]
    properties: {name: Cinder}
    type: OS::Neutron::Net
  cinder_subnet:
    properties:
      cidr: 192.168.180.0/24
      gateway_ip: ''
      network_id: {get_resource: cinder_net}
    type: OS::Neutron::Subnet
  compute1:
    properties:
      flavor: Large Plus
      image: Debian 8
      key_name: {get_param: key_name}
      name: compute1
      networks:
      - port: {get_resource: compute1_port0}
      - port: {get_resource: compute1_port1}
      - port: {get_resource: compute1_port2}
      user_data: "#cloud-config\n\
        \bootcmd:\n\
        \    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key | sudo apt-key add -\n\
        \    - echo \"deb https://deb.pkg.ultimum.io/debian upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth1\" >> /etc/network/interfaces\n\
        \    - echo \"iface eth1 inet dhcp\" >> /etc/network/interfaces\n\
        \    - echo \"allow-hotplug eth2\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth2\" >> /etc/network/interfaces\n\
        \    - echo \"iface eth2 inet dhcp\" >> /etc/network/interfaces\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl \npackages:\n\
        \    - apt-transport-https\n\
        \    - salt-minion\n\
        \    - python-keystoneclient\n\
        \    - mc\n\
        \    - htop\n\
        \    - vim\nruncmd:\n\
        \    - apt-get -y update\n\
        \    - apt-get -y install --only-upgrade salt-minion\n\
        \    - hostname -s > /etc/salt/minion_id\n\
        \    - systemctl restart networking\n\
        \    - systemctl enable salt-minion\n\
        \    - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  compute1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.31}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  compute1_port1:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.200.31}
      network: {get_resource: tunnel_net}
    type: OS::Neutron::Port
  compute1_port2:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.180.31}
      network: {get_resource: cinder_net}
    type: OS::Neutron::Port
  compute2:
    properties:
      flavor: Large Plus
      image: Debian 8
      key_name: {get_param: key_name}
      name: compute2
      networks:
      - port: {get_resource: compute2_port0}
      - port: {get_resource: compute2_port1}
      - port: {get_resource: compute2_port2}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n    - echo\
        \ \"auto eth1\" >> /etc/network/interfaces\n    - echo \"iface eth1 inet dhcp\"\
        \ >> /etc/network/interfaces\n    - echo \"allow-hotplug eth2\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth2\" >> /etc/network/interfaces\n    - echo \"iface eth2\
        \ inet dhcp\" >> /etc/network/interfaces\n    - cloud-init-per once customhosts\
        \ echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl \npackages:\n\
        \    - apt-transport-https\n    - salt-minion\n    - python-keystoneclient\n\
        \    - mc\n    - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    -\
        \ apt-get -y install --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n\
        \    - systemctl restart networking\n    - systemctl enable salt-minion\n\
        \    - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  compute2_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.32}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  compute2_port1:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.200.32}
      network: {get_resource: tunnel_net}
    type: OS::Neutron::Port
  compute2_port2:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.180.32}
      network: {get_resource: cinder_net}
    type: OS::Neutron::Port
  controller1:
    properties:
      flavor: Standard Plus
      image: Debian 8
      key_name: {get_param: key_name}
      name: controller1
      networks:
      - port: {get_resource: controller1_port0}
      - port: {get_resource: controller1_port1}
      - port: {get_resource: controller1_port2}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n    - echo\
        \ \"auto eth1\" >> /etc/network/interfaces\n    - echo \"iface eth1 inet dhcp\"\
        \ >> /etc/network/interfaces\n    - echo \"allow-hotplug eth2\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth2\" >> /etc/network/interfaces\n    - echo \"iface eth2\
        \ inet dhcp\" >> /etc/network/interfaces\n    - cloud-init-per once customhosts\
        \ echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl \npackages:\n\
        \    - apt-transport-https\n    - salt-minion\n    - python-keystoneclient\n\
        \    - mc\n    - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    -\
        \ apt-get -y install --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n\
        \    - systemctl restart networking\n    - systemctl enable salt-minion\n\
        \    - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  controller1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.11}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  controller1_port1:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.160.11}
      network: {get_resource: swift_net}
    type: OS::Neutron::Port
  controller1_port2:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.180.11}
      network: {get_resource: cinder_net}
    type: OS::Neutron::Port
  dashboard1:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: dashboard1
      networks:
      - port: {get_resource: dashboard1_port0}
      - port: {get_resource: dashboard1_port1}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - sed -i /etc/network/interfaces -e 's/iface eth0 inet dhcp/iface eth0\
        \ inet static/'\n    - echo \"address 192.168.20.13\" >> /etc/network/interfaces\n\
        \    - echo \"netmask 255.255.255.0\" >> /etc/network/interfaces\n    - echo\
        \ \"gateway 192.168.20.1\" >> /etc/network/interfaces\n    - echo \"metric\
        \ 10\" >> /etc/network/interfaces\n    - echo \"dns-nameservers 192.168.20.2\"\
        \ >> /etc/network/interfaces\n    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth1\" >> /etc/network/interfaces\n    - echo \"iface eth1\
        \ inet manual\" >> /etc/network/interfaces\n    - echo \"up /sbin/ip link\
        \ set dev $IFACE up\" >> /etc/network/interfaces\n    - echo \"down /sbin/ip\
        \ link set dev $IFACE down\" >> /etc/network/interfaces\n    - cloud-init-per\
        \ once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  dashboard1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.13}
      - {ip_address: 192.168.20.30}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  dashboard1_port1:
    depends_on: [salt]
    properties: {network: public}
    type: OS::Neutron::Port
  db1:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: db1
      networks:
      - port: {get_resource: db1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  db1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.19}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  dns1:
    properties:
      flavor: Basic
      image: Debian 8
      key_name: {get_param: key_name}
      name: dns1
      networks:
      - port: {get_resource: dns1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  dns1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.37}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  elastic1:
    properties:
      flavor: Basic
      image: Debian 8
      key_name: {get_param: key_name}
      name: elastic1
      networks:
      - port: {get_resource: elastic1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  elastic1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.35}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  ikepolicy:
    depends_on: [router, router_interface]
    properties: {encryption_algorithm: aes-256, ike_version: v2}
    type: OS::Neutron::IKEPolicy
  ipsecpolicy:
    depends_on: [router, router_interface]
    properties: {encryption_algorithm: aes-256}
    type: OS::Neutron::IPsecPolicy
  management_net:
    properties: {name: Management}
    type: OS::Neutron::Net
  management_subnet:
    properties:
      cidr: 192.168.20.0/24
      gateway_ip: 192.168.20.1
      network_id: {get_resource: management_net}
    type: OS::Neutron::Subnet
  mongodb1:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: mongodb1
      networks:
      - port: {get_resource: mongodb1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  mongodb1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.28}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  rabbitmq1:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: rabbitmq1
      networks:
      - port: {get_resource: rabbitmq1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  rabbitmq1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.15}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  router:
    depends_on: [tunnel_net, tunnel_subnet]
    properties:
      external_gateway_info: {network: public}
    type: OS::Neutron::Router
  router_interface:
    properties:
      router_id: {get_resource: router}
      subnet_id: {get_resource: management_subnet}
    type: OS::Neutron::RouterInterface
  salt:
    properties:
      flavor: Basic
      image: Debian 8
      key_name: {get_param: key_name}
      name: salt
      networks:
      - port: {get_resource: salt_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo 'deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie' > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - git\n    - salt-master\n \
        \   - python-keystoneclient\n    - mc\n    - htop\n    - vim\nruncmd:\n  \
        \  - hostname -s > /etc/salt/minion_id\n    - systemctl restart networking\n\
        \    - systemctl enable salt-master\n    - service salt-master start\n"
      user_data_format: RAW
    type: OS::Nova::Server
  salt_port0:
    depends_on: [router, router_interface]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.10}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  storage1:
    properties:
      flavor: Large
      image: Debian 8
      key_name: {get_param: key_name}
      name: storage1
      networks:
      - port: {get_resource: storage1_port0}
      - port: {get_resource: storage1_port1}
      - port: {get_resource: storage1_port2}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n    - echo\
        \ \"auto eth1\" >> /etc/network/interfaces\n    - echo \"iface eth1 inet dhcp\"\
        \ >> /etc/network/interfaces\n    - echo \"allow-hotplug eth2\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth2\" >> /etc/network/interfaces\n    - echo \"iface eth2\
        \ inet dhcp\" >> /etc/network/interfaces\n    - cloud-init-per once customhosts\
        \ echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl \npackages:\n\
        \    - apt-transport-https\n    - salt-minion\n    - mc\n    - htop\n    -\
        \ vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install --only-upgrade\
        \ salt-minion\n    - hostname -s > /etc/salt/minion_id\n    - systemctl restart\
        \ networking\n    - systemctl enable salt-minion\n    - service salt-minion\
        \ restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  storage1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.21}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  storage1_port1:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.160.21}
      network: {get_resource: swift_net}
    type: OS::Neutron::Port
  storage1_port2:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.180.21}
      network: {get_resource: cinder_net}
    type: OS::Neutron::Port
  storage2:
    properties:
      flavor: Large
      image: Debian 8
      key_name: {get_param: key_name}
      name: storage2
      networks:
      - port: {get_resource: storage2_port0}
      - port: {get_resource: storage2_port1}
      - port: {get_resource: storage2_port2}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - echo \"allow-hotplug eth1\" >> /etc/network/interfaces\n    - echo\
        \ \"auto eth1\" >> /etc/network/interfaces\n    - echo \"iface eth1 inet dhcp\"\
        \ >> /etc/network/interfaces\n    - echo \"allow-hotplug eth2\" >> /etc/network/interfaces\n\
        \    - echo \"auto eth2\" >> /etc/network/interfaces\n    - echo \"iface eth2\
        \ inet dhcp\" >> /etc/network/interfaces\n    - cloud-init-per once customhosts\
        \ echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl \npackages:\n\
        \    - apt-transport-https\n    - salt-minion\n    - mc\n    - htop\n    -\
        \ vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install --only-upgrade\
        \ salt-minion\n    - hostname -s > /etc/salt/minion_id\n    - systemctl restart\
        \ networking\n    - systemctl enable salt-minion\n    - service salt-minion\
        \ restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  storage2_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.22}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  storage2_port1:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.160.22}
      network: {get_resource: swift_net}
    type: OS::Neutron::Port
  storage2_port2:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.180.23}
      network: {get_resource: cinder_net}
    type: OS::Neutron::Port
  swift_net:
    depends_on: [cinder_net, cinder_subnet]
    properties: {name: Swift}
    type: OS::Neutron::Net
  swift_subnet:
    properties:
      cidr: 192.168.160.0/24
      gateway_ip: ''
      network_id: {get_resource: swift_net}
    type: OS::Neutron::Subnet
  tunnel_net:
    depends_on: [swift_net, swift_subnet]
    properties: {name: Tunnel}
    type: OS::Neutron::Net
  tunnel_subnet:
    properties:
      cidr: 192.168.200.0/24
      gateway_ip: ''
      network_id: {get_resource: tunnel_net}
    type: OS::Neutron::Subnet
  vpnservice:
    depends_on: [router, router_interface]
    properties:
      router: {get_resource: router}
      subnet: {get_resource: management_subnet}
    type: OS::Neutron::VPNService
  zabbix:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: zabbix
      networks:
      - port: {get_resource: zabbix_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  zabbix_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.27}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  zookeeper1:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: zookeeper1
      networks:
      - port: {get_resource: zookeeper1_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  zookeeper1_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.24}
      network: {get_resource: management_net}
    type: OS::Neutron::Port
  zookeeper2:
    properties:
      flavor: Standard
      image: Debian 8
      key_name: {get_param: key_name}
      name: zookeeper2
      networks:
      - port: {get_resource: zookeeper2_port0}
      user_data: "#cloud-config\nbootcmd:\n    - sed -i /etc/apt/sources.list -e 's/ftp.us/httpredir/g'\n\
        \    - wget -O - https://deb.pkg.ultimum.io/debian/ulticloud.key\
        \ | sudo apt-key add -\n    - echo \"deb https://deb.pkg.ultimum.io/debian\
        \ upstream-utils saltstack-jessie\" > /etc/apt/sources.list.d/saltstack.list\n\
        \    - cloud-init-per once customhosts echo '192.168.20.10 salt' >> /etc/cloud/templates/hosts.debian.tmpl\
        \ \npackages:\n    - apt-transport-https\n    - salt-minion\n    - mc\n  \
        \  - htop\n    - vim\nruncmd:\n    - apt-get -y update\n    - apt-get -y install\
        \ --only-upgrade salt-minion\n    - hostname -s > /etc/salt/minion_id\n  \
        \  - systemctl restart networking\n    - systemctl enable salt-minion\n  \
        \  - service salt-minion restart\n"
      user_data_format: RAW
    type: OS::Nova::Server
  zookeeper2_port0:
    depends_on: [salt]
    properties:
      fixed_ips:
      - {ip_address: 192.168.20.25}
      network: {get_resource: management_net}

Last modified: 2017-05-25