Skip to content

Commit

Permalink
feat(fabric): replace ansible roles readme with inline code comments
Browse files Browse the repository at this point in the history
Changes:
- Added clear and concise comment messages in ansible roles.
- Maintained proper code indentation for increased code reliability.
- Removed the roles' Readme.md \ if it existed.

Additional changes:
- Deleted storageclass ansible role as we already migrated it to the shared platform.

fixes #2326

Signed-off-by: saurabhkumarkardam <[email protected]>
  • Loading branch information
saurabhkumarkardam authored and suvajit-sarkar committed Nov 2, 2023
1 parent 8e5a508 commit 2ee9a1e
Show file tree
Hide file tree
Showing 197 changed files with 699 additions and 4,107 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# SPDX-License-Identifier: Apache-2.0
##############################################################################################

###########################################################################################
##############################################################################################
# This task calls valuefile to generate the anchorpeer files
############################################################################################
##############################################################################################

# Call nested_anchorpeer for each organization
- name: Call nested_anchorpeer for each organization
include_tasks: nested_anchorpeer.yaml
vars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
loop_control:
loop_var: peer

#Git Push : Pushes the above generated files to git directory
# Git Push : Pushes the above generated files to git directory
- name: Git Push
include_role:
name: "{{ playbook_dir }}/../../shared/configuration/roles/git_push"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
# Also, creates the value file for Certificate Authority (CA)
#############################################################################################

############################################################################################
# This task creates the folder to store crypto material
# Create the folder to store crypto material
- name: "creating the directory ./build/crypto-config/{{ component_type }}Organizations/{{ component_name }}/ca"
include_role:
name: "{{ playbook_dir }}/../../shared/configuration/roles/check/directory"
Expand All @@ -25,8 +24,7 @@
vault_path: "{{ vault.secret_path | default('secretsv2') }}/crypto/{{ component_type }}Organizations/{{ component_name }}/ca"
check: "certs_created"

#####################################################################################################################
# This tasks generates cacerts helmrelease file.
# Generate cacerts helmrelease file.
- name: "Create value file for cacerts job"
include_role:
name: helm_component
Expand All @@ -45,7 +43,7 @@
values_dir: "{{playbook_dir}}/../../../{{ gitops.release_dir }}/{{ component }}"
when: certs_created.failed == True

#Git Push : Pushes the above generated files to git directory
# Git Push : Push the above generated files to git directory
- name: Git Push
include_role:
name: "{{ playbook_dir }}/../../shared/configuration/roles/git_push"
Expand Down Expand Up @@ -76,8 +74,7 @@
cp {{ ca.configpath }} ../../../{{ gitops.chart_source }}/ca/conf/fabric-ca-server-config-{{ component }}.yaml
when: ca.configpath is defined

# ############################################################################################
# This task creates the CA value file for Orderer
# Create the CA value file for Orderer
- name: "Create CA server values for Orderer"
include_role:
name: helm_component
Expand All @@ -93,8 +90,7 @@
external_url_suffix: "{{ item.external_url_suffix }}"
when: component_type == 'orderer'

############################################################################################
# This task creates the CA value file for Organizations
# Create the CA value file for Organizations
- name: "Create CA server values organizations"
include_role:
name: helm_component
Expand All @@ -110,7 +106,7 @@
external_url_suffix: "{{ item.external_url_suffix }}"
when: component_type == 'peer'

#Git Push : Pushes the above generated files to git directory
# Git Push : Push the above generated files to git directory
- name: Git Push
include_role:
name: "{{ playbook_dir }}/../../shared/configuration/roles/git_push"
Expand Down
Loading

0 comments on commit 2ee9a1e

Please sign in to comment.