超账结构中的自定义对等名称

时间:2018-07-24 22:50:59

标签: yaml hyperledger-fabric hyperledger

当在crypto-config.yaml模板here上运行cryptogen时,将通过定义

来接收组织中x个对等点的加密材料。
Template:
   Count: x

这将为peer0.Org1.example.com一直到peerx.Org1.example.com产生加密。在模板中显示

    # ---------------------------------------------------------------------------
# "Template"
# ---------------------------------------------------------------------------
# Allows for the definition of 1 or more hosts that are created sequentially
# from a template. By default, this looks like "peer%d" from 0 to Count-1.
# You may override the number of nodes (Count), the starting index (Start)
# or the template used to construct the name (Hostname).
#
# Note: Template and Specs are not mutually exclusive.  You may define both
# sections and the aggregate nodes will be created for you.  Take care with
# name collisions
# ---------------------------------------------------------------------------
Template:
  Count: 1
  # Start: 5
  # Hostname: {{.Prefix}}{{.Index}} # default

我的问题是如何创建自己的主机名模板,以便具有诸如party.Org1.example.com和harty.Org1.example.com这样的描述性对等名称

0 个答案:

没有答案