Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fabric): Fabric deployment without channel #2515

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 3 additions & 45 deletions platforms/hyperledger-fabric/configuration/deploy-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
name: "create/configtx"
vars:
config_file: "./build/configtx.yaml"
when: add_new_org == 'false' and '2.5.' not in network.version

# This role generate genesis block and channeltx
- name: Create channel artifacts for all channels
Expand All @@ -167,6 +168,7 @@
profile_name: "{{ item.channel_name }}"
fetch_certs: "false"
loop: "{{ network['channels'] }}"
when: add_new_org == 'false' and '2.5.' not in network.version

- name: "Create genesis block"
include_role:
Expand All @@ -176,6 +178,7 @@
genesis: "{{ item.genesis }}"
sys_channel_name: "syschannel"
loop: "{{ network['channels'] }}"
when: add_new_org == 'false' and '2.5.' not in network.version

# This role creates value file for zk-kafka (if kafka consensus is chosen) and orderer
- name: Create all orderers
Expand Down Expand Up @@ -217,51 +220,6 @@
loop: "{{ network['organizations'] }}"
when: item.type == 'peer'

# This role creates the value file for creating channel from creator organization
# to the vault.
- name: Create all create-channel jobs
include_role:
name: "create/channels"
vars:
build_path: "./build"
participants: "{{ item.participants }}"
docker_url: "{{ network.docker.url }}"
loop: "{{ network['channels'] }}"
when: add_new_org == 'false' and ('2.2.' in network.version or '1.4.' in network.version)

# This role creates the value file for creating channel from creator organization
# to the vault.
- name: Create all create-channel jobs
include_role:
name: "create/osnchannels"
vars:
build_path: "./build"
docker_url: "{{ network.docker.url }}"
loop: "{{ network['channels'] }}"
when: add_new_org == 'false' and '2.5.' in network.version

# This role creates the value file for joining channel from each participating peer
# to the vault.
- name: Create all join-channel jobs
include_role:
name: "create/channels_join"
vars:
build_path: "./build"
participants: "{{ item.participants }}"
docker_url: "{{ network.docker.url }}"
loop: "{{ network['channels'] }}"

# This role creates the value file for anchor peer update over channel for
# each organization which is the part of the channel.
- name: Create all anchor-peer jobs
include_role:
name: "create/anchorpeer"
vars:
build_path: "./build"
participants: "{{ item.participants }}"
docker_url: "{{ network.docker.url }}"
loop: "{{ network['channels'] }}"

# Create CLI pod for peers with cli option enabled
- name: Create CLI pod for each peer with it enabled
include_role:
Expand Down
Loading