Page tree
Skip to end of metadata
Go to start of metadata

EXAMPLE

policy_types:

  mycompany.mytypes.policies.placement.Container.Linux:

    description: My company’s placement policy for linux

    derived_from: tosca.policies.Root


GRAMMAR

<policy_type_name>:

  derived_from: <parent_policy_type_name>

  version: <version_number>

  metadata:

    <map of string>

  description: <policy_description>

  properties:

    <property_definitions>

  targets: [ <list_of_valid_target_types> ]

  triggers:

    <list_of_trigger_definitions>


POLICY TYPE FIELDS

Keyname

Required

Type

Description

derived_from

no

string

An optional parent Policy Type name the Policy Type derives from.

version

no

version

An optional version for the Policy Type definition.

metadata 

no

map of string

Defines a section used to declare additional metadata information.

description

no

description

The optional description for the Policy Type.

properties

no

list of

property definitions

An optional list of property definitions for the Policy Type.

targets

 

no

string[]

An optional list of valid Node Types or Group Types the Policy Type can be applied to.

 

Note: This can be viewed by TOSCA Orchestrators as an implied relationship to the target nodes, but one that does not have operational lifecycle considerations.  For example, if we were to name this as an explicit Relationship Type we might call this “AppliesTo” (node or group).

triggers

no

list of trigger

An optional list of policy triggers for the Policy Type.

 

 

  • No labels