github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/cli_test/channel/cryptogen.yaml (about) 1 # 2 # Copyright IBM Corp. All Rights Reserved. 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 # 6 # --------------------------------------------------------------------------- 7 # "OrdererOrgs" - Definition of organizations managing orderer nodes 8 # --------------------------------------------------------------------------- 9 OrdererOrgs: 10 # --------------------------------------------------------------------------- 11 # Orderer 12 # --------------------------------------------------------------------------- 13 - Name: Orderer 14 Domain: example.com 15 16 # --------------------------------------------------------------------------- 17 # "Specs" - See PeerOrgs below for complete description 18 # --------------------------------------------------------------------------- 19 Specs: 20 - Hostname: orderer 21 22 # --------------------------------------------------------------------------- 23 # "PeerOrgs" - Definition of organizations managing peer nodes 24 # --------------------------------------------------------------------------- 25 PeerOrgs: 26 # --------------------------------------------------------------------------- 27 # Org1 28 # --------------------------------------------------------------------------- 29 - Name: Org1 30 Domain: org1.example.com 31 32 # --------------------------------------------------------------------------- 33 # "CA" 34 # --------------------------------------------------------------------------- 35 # Uncomment this section to enable the explicit definition of the CA for this 36 # organization. This entry is a Spec. See "Specs" section below for details. 37 # --------------------------------------------------------------------------- 38 CA: 39 Hostname: ca # implicitly ca.org1.example.com 40 41 # --------------------------------------------------------------------------- 42 # "Specs" 43 # --------------------------------------------------------------------------- 44 # Uncomment this section to enable the explicit definition of hosts in your 45 # configuration. Most users will want to use Template, below 46 # 47 # Specs is an array of Spec entries. Each Spec entry consists of two fields: 48 # - Hostname: (Required) The desired hostname, sans the domain. 49 # - CommonName: (Optional) Specifies the template or explicit override for 50 # the CN. By default, this is the template: 51 # 52 # "{{.Hostname}}.{{.Domain}}" 53 # 54 # which obtains its values from the Spec.Hostname and 55 # Org.Domain, respectively. 56 # - SANS: (Optional) Specifies one or more Subject Alternative Names 57 # the be set in the resulting x509. Accepts template 58 # variables {{.Hostname}}, {{.Domain}}, {{.CommonName}} 59 # NOTE: Two implicit entries are created for you: 60 # - {{ .CommonName }} 61 # - {{ .Hostname }} 62 # --------------------------------------------------------------------------- 63 # Specs: 64 # - Hostname: foo # implicitly "foo.org1.example.com" 65 # CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above 66 # SANS: 67 # - "bar.{{.Domain}}" 68 # - "altfoo.{{.Domain}}" 69 # - "{{.Hostname}}.org6.net" 70 # - Hostname: bar 71 # - Hostname: baz 72 73 # --------------------------------------------------------------------------- 74 # "Template" 75 # --------------------------------------------------------------------------- 76 # Allows for the definition of 1 or more hosts that are created sequentially 77 # from a template. By default, this looks like "peer%d" from 0 to Count-1. 78 # You may override the number of nodes (Count), the starting index (Start) 79 # or the template used to construct the name (Hostname). 80 # 81 # Note: Template and Specs are not mutually exclusive. You may define both 82 # sections and the aggregate nodes will be created for you. Take care with 83 # name collisions 84 # --------------------------------------------------------------------------- 85 Template: 86 Count: 2 87 # Start: 5 88 # Hostname: {{.Prefix}}{{.Index}} # default 89 SANS: 90 - "localhost" 91 92 # --------------------------------------------------------------------------- 93 # "Users" 94 # --------------------------------------------------------------------------- 95 # Count: The number of user accounts _in addition_ to Admin 96 # --------------------------------------------------------------------------- 97 Users: 98 Count: 1 99 100 # --------------------------------------------------------------------------- 101 # Org2: See "Org1" for full specification 102 # --------------------------------------------------------------------------- 103 - Name: Org2 104 Domain: org2.example.com 105 CA: 106 Hostname: ca # implicitly ca.org1.example.com 107 108 Template: 109 Count: 2 110 SANS: 111 - "localhost" 112 Users: 113 Count: 1