summaryrefslogtreecommitdiffstats
path: root/modules/README.rst
blob: caec46b1d621bf3a7a4c9f05809ac199636617c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
This directory may be used to add new tools that might be useful for any
project in OPNFV. This tools must be python based and shall be imported
as follows:

  from opnfv.utils import SSHUtils
  from opnfv.utils import OPNFVLogger
  from opnfv.utils import OPNFVException
  from opnfv.utils import constants

For further information about how to use this modules directory, contact:
  fatih.degirmenci@ericsson.com
  jose.lausuch@ericsson.com
Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
heat_template_version: 2013-05-23

description: >
  TOSCA simple profile that just defines a single compute instance and selects a
  (guest) host Operating System from the Compute node's properties. Note, this
  example includes default values on inputs properties.

parameters:
  cpus:
    type: number
    description: Number of CPUs for the server.
    default: 1
    constraints:
    - allowed_values:
      - 1
      - 2
      - 4
      - 8

resources:
  my_server:
    type: OS::Nova::Server
    properties:
      flavor: m1.small
      image: ubuntu-12.04-software-config-os-init
      user_data_format: SOFTWARE_CONFIG

outputs:
  private_ip:
    description: The private IP address of the deployed server instance.
    value:
      get_attr:
      - my_server
      - networks