"Fossies" - the Fresh Open Source Software Archive

Member "magnum-8.1.0/contrib/templates/example/example_template/example.yaml" (1 Oct 2019, 908 Bytes) of package /linux/misc/openstack/magnum-8.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 heat_template_version: 2014-10-16
    2 
    3 description: >
    4   This is just an example Heat template. It only provisions a single server
    5   instance and does not produce a usable cluster.
    6 
    7 parameters:
    8   #
    9   # REQUIRED PARAMETERS
   10   #
   11   ssh_key_name:
   12     type: string
   13     description: name of ssh key to be provisioned on our server
   14 
   15   #
   16   # OPTIONAL PARAMETERS
   17   #
   18   server_image:
   19     type: string
   20     default: centos-atomic
   21     description: glance image used to boot the server
   22 
   23   server_flavor:
   24     type: string
   25     default: m1.small
   26     description: flavor to use when booting the server
   27 
   28 resources:
   29 
   30   example_server:
   31     type: "OS::Nova::Server"
   32     properties:
   33       image:
   34         get_param: server_image
   35       flavor:
   36         get_param: server_flavor
   37       key_name:
   38         get_param: ssh_key_name
   39 
   40 outputs:
   41 
   42   server_address:
   43     value: {get_attr: [example_server, accessIPv4]}
   44 
   45   node_addresses:
   46     value: []