adding V1_3 capabilities to ansible agent
Adding V1_3 capabilities to ansible agent to configtx.j2
@@ -51,13 +51,19 @@ Organizations:
{% if project_version is version_compare('1.1.0','>=') or 'stable' in project_version or project_version == 'latest' %}
Capabilities:
Global: &ChannelCapabilities
+{% if project_version is version_compare('1.3.0','>=') or 'stable' in project_version or project_version == 'latest' %}
+ V1_3: true
+{% elif project_version is version_compare('1.1.0','>=') and project_version is version_compare('1.3.0','<') %}
V1_1: true
+{% endif %}
Orderer: &OrdererCapabilities
V1_1: true
Application: &ApplicationCapabilities
-{% if project_version is version_compare('1.2.0','>=') or 'stable' in project_version or project_version == 'latest' %}
+{% if project_version is version_compare('1.3.0','>=') or 'stable' in project_version or project_version == 'latest' %}
+ V1_3: true
+{% elif project_version is version_compare('1.2.0','>=') and project_version is version_compare('1.3.0','<') %}
V1_2: true
{% elif project_version is version_compare('1.1.0','>=') and project_version is version_compare('1.2.0','<') %}
V1_1: true
@@ -123,6 +129,10 @@ Application: &ApplicationDefaults
Type: ImplicitMeta
Rule: "MAJORITY Admins"
{% endif %}
+{% if project_version is version_compare('1.1.0','>=') or 'stable' in project_version or project_version == 'latest' %}
+ Capabilities:
+ <<: *ApplicationCapabilities
+{% endif %}
{% if project_version is version_compare('1.2.0','>=') or 'stable' in project_version or project_version == 'latest' %}
Channel: &ChannelDefaults
@@ -143,10 +153,6 @@ Profiles:
Consortium: FabricConsortium
Application:
<<: *ApplicationDefaults
-{% if project_version is version_compare('1.1.0','>=') or 'stable' in project_version or project_version == 'latest' %}
- Capabilities:
- <<: *ApplicationCapabilities
-{% endif %}
OrdererGenesis:
{% if project_version is version_compare('1.2.0','>=') or 'stable' in project_version or project_version == 'latest' %}
<<: *ChannelDefaults
