Quellcode durchsuchen

Update comments, add conditions for deployment type param

Anuj Bansal vor 3 Jahren
Ursprung
Commit
e5af62243d

+ 1 - 1
devops/infrastructure/cloudformation/infrastructure.yml

@@ -116,7 +116,7 @@ Resources:
             # Update all packages
             apt-get update -y
 
-            # Install the updates except docker
+            # Install the updates except docker, to avoid interactive prompt which blocks the flow of the script
             apt-mark hold docker.io
             apt-get upgrade -y
 

+ 2 - 1
devops/infrastructure/roles/common/tasks/chain-spec-node-keys.yml

@@ -23,8 +23,9 @@
 - name: Run chain-spec-builder to generate chainspec.json file (with initial data)
   shell: >
     {{ admin_code_dir }}/target/release/chain-spec-builder generate -a {{ number_of_validators }}
-    --chain-spec-path {{ chain_spec_path }} --deployment {{ deployment_type }}
+    --chain-spec-path {{ chain_spec_path }}
     --endowed 1 --keystore-path {{ data_path }}
+    {% if deployment_type is defined and deployment_type|length > 0 %}--deployment {{ deployment_type }}{% endif %}
     {% if initial_members_file is defined and initial_members_file|length > 0 %}--initial-balances-path {{ admin_code_dir }}/initial-balances.json{% endif %}
     {% if initial_balances_file is defined and initial_balances_file|length > 0 %}--initial-members-path {{ admin_code_dir }}/initial-members.json{% endif %}
   register: chain_spec_output