github.com/ystia/yorc/v4@v4.3.0/plugin/testdata/plugin-sample/tosca/topology.yml (about)

     1  tosca_definitions_version: alien_dsl_2_0_0
     2  
     3  metadata:
     4    template_name: TestPlugins
     5    template_version: 0.1.0-SNAPSHOT
     6    template_author: admin
     7  
     8  imports:
     9    - <my-def.yaml>
    10  
    11  topology_template:
    12    node_templates:
    13      Compute:
    14        type: yorc.my.types.Compute
    15        capabilities:
    16          endpoint:
    17            properties:
    18              protocol: tcp
    19              initiator: source
    20              secure: true
    21              network_name: PRIVATE
    22          scalable:
    23            properties:
    24              max_instances: 5
    25              min_instances: 1
    26              default_instances: 2
    27  
    28      Soft:
    29        type: yorc.my.types.Soft
    30  
    31    workflows:
    32      install:
    33        steps:
    34          Compute_install:
    35            target: Compute
    36            activities:
    37              - delegate: install
    38            on_success:
    39              - Soft_initial
    40          Soft_initial:
    41            target: Soft
    42            activities:
    43              - set_state: initial
    44            on_success:
    45              - Soft_creating
    46          Soft_creating:
    47            target: Soft
    48            activities:
    49              - set_state: creating
    50            on_success:
    51              - create_Soft
    52          create_Soft:
    53            target: Soft
    54            activities:
    55              - call_operation: Standard.create
    56            on_success:
    57              - Soft_created
    58          Soft_created:
    59            target: Soft
    60            activities:
    61              - set_state: created
    62            on_success:
    63              - Soft_configuring
    64          Soft_configuring:
    65            target: Soft
    66            activities:
    67              - set_state: configuring
    68            on_success:
    69              - configure_Soft
    70          configure_Soft:
    71            target: Soft
    72            activities:
    73              - call_operation: Standard.configure
    74            on_success:
    75              - Soft_configured
    76          Soft_configured:
    77            target: Soft
    78            activities:
    79              - set_state: configured
    80            on_success:
    81              - Soft_starting
    82          Soft_starting:
    83            target: Soft
    84            activities:
    85              - set_state: starting
    86            on_success:
    87              - start_Soft
    88          start_Soft:
    89            target: Soft
    90            activities:
    91              - call_operation: Standard.start
    92            on_success:
    93              - Soft_started
    94          Soft_started:
    95            target: Soft
    96            activities:
    97              - set_state: started
    98      uninstall:
    99        steps:
   100          Soft_stopping:
   101            target: Soft
   102            activities:
   103              - set_state: stopping
   104            on_success:
   105              - stop_Soft
   106          stop_Soft:
   107            target: Soft
   108            activities:
   109              - call_operation: Standard.stop
   110            on_success:
   111              - Soft_stopped
   112          Soft_stopped:
   113            target: Soft
   114            activities:
   115              - set_state: stopped
   116            on_success:
   117              - Soft_deleting
   118          Soft_deleting:
   119            target: Soft
   120            activities:
   121              - set_state: deleting
   122            on_success:
   123              - Soft_deleted
   124          Soft_deleted:
   125            target: Soft
   126            activities:
   127              - set_state: deleted
   128            on_success:
   129              - Compute_uninstall
   130          Compute_uninstall:
   131            target: Compute
   132            activities:
   133              - delegate: uninstall