在缩放策略中更改节点名称

时间:2019-05-08 20:38:55

标签: scaling cloudify

这是我的cloudify蓝图的片段:

tosca_definitions_version: cloudify_dsl_1_3
imports:
  - 'http://www.getcloudify.org/spec/cloudify/4.5.dev1/types.yaml'
  - 'plugin:cloudify-openstack-plugin'
  - 'http://www.getcloudify.org/spec/utilities-plugin/1.11.2/plugin.yaml'
...
node_templates:
  netscaler_vnf:
    type: cloudify.openstack.nodes.Server
    properties:
    ...
    relationships:
      - type: cloudify.relationships.contained_in
        target: cluster_member_aggregator
      ...   

  groups:   
    netscaler_vnf_scale_group:
      members:
        - netscaler_vnf
        ...    

 policies:   
   scale_policy1:
    type: cloudify.policies.scaling
    properties:
      default_instances: 2
      min_instances: 2
      max_instances: 3
    targets:
      - netscaler_vnf_scale_group

在Openstack中安装部署时,我会得到两台服务器:

  • myexample_netscaler_vnf_bycj8j
  • myexample_netscaler_vnf_jdwi3g

例如,我想“动态地”控制命名

  • netscaler_vnf_01
  • netscaler_vnf_02

我怎么能得到这个?

里卡多

0 个答案:

没有答案