Add 'reclass-create-inventory-context' command
diff --git a/examples/environment/context-mcp11-ovs-dpdk.local.yaml b/examples/environment/context-mcp11-ovs-dpdk.local.yaml
new file mode 100644
index 0000000..ed3bf3a
--- /dev/null
+++ b/examples/environment/context-mcp11-ovs-dpdk.local.yaml
@@ -0,0 +1,182 @@
+cookiecutter:
+ cluster_name: mcp11-ovs-dpdk.local
+ nodes:
+ cmp001.mcp11-ovs-dpdk.local:
+ name: cmp001
+ parameters: {}
+ reclass_storage_name: openstack_compute_node01
+ roles: []
+ cmp002.mcp11-ovs-dpdk.local:
+ name: cmp002
+ parameters: {}
+ reclass_storage_name: openstack_compute_node02
+ roles: []
+ ctl01.mcp11-ovs-dpdk.local:
+ name: ctl01
+ parameters: {}
+ reclass_storage_name: openstack_control_node01
+ roles:
+ - vcp
+ ctl02.mcp11-ovs-dpdk.local:
+ name: ctl02
+ parameters: {}
+ reclass_storage_name: openstack_control_node02
+ roles:
+ - vcp
+ ctl03.mcp11-ovs-dpdk.local:
+ name: ctl03
+ parameters: {}
+ reclass_storage_name: openstack_control_node03
+ roles:
+ - vcp
+ dbs01.mcp11-ovs-dpdk.local:
+ name: dbs01
+ parameters: {}
+ reclass_storage_name: openstack_database_node01
+ roles:
+ - vcp
+ dbs02.mcp11-ovs-dpdk.local:
+ name: dbs02
+ parameters: {}
+ reclass_storage_name: openstack_database_node02
+ roles:
+ - vcp
+ dbs03.mcp11-ovs-dpdk.local:
+ name: dbs03
+ parameters: {}
+ reclass_storage_name: openstack_database_node03
+ roles:
+ - vcp
+ gtw01.mcp11-ovs-dpdk.local:
+ name: gtw01
+ parameters: {}
+ reclass_storage_name: openstack_gateway_node01
+ roles: []
+ gtw02.mcp11-ovs-dpdk.local:
+ name: gtw02
+ parameters: {}
+ reclass_storage_name: openstack_gateway_node02
+ roles: []
+ gtw03.mcp11-ovs-dpdk.local:
+ name: gtw03
+ parameters: {}
+ reclass_storage_name: openstack_gateway_node03
+ roles: []
+ kvm01.mcp11-ovs-dpdk.local:
+ name: kvm01
+ parameters: {}
+ reclass_storage_name: infra_kvm_node01
+ roles: []
+ kvm02.mcp11-ovs-dpdk.local:
+ name: kvm02
+ parameters: {}
+ reclass_storage_name: infra_kvm_node02
+ roles: []
+ kvm03.mcp11-ovs-dpdk.local:
+ name: kvm03
+ parameters: {}
+ reclass_storage_name: infra_kvm_node03
+ roles: []
+ log01.mcp11-ovs-dpdk.local:
+ name: log01
+ parameters: {}
+ reclass_storage_name: stacklight_log_node01
+ roles:
+ - vcp
+ log02.mcp11-ovs-dpdk.local:
+ name: log02
+ parameters: {}
+ reclass_storage_name: stacklight_log_node02
+ roles:
+ - vcp
+ log03.mcp11-ovs-dpdk.local:
+ name: log03
+ parameters: {}
+ reclass_storage_name: stacklight_log_node03
+ roles:
+ - vcp
+ mdb01.mcp11-ovs-dpdk.local:
+ name: mdb01
+ parameters: {}
+ reclass_storage_name: openstack_telemetry_node01
+ roles:
+ - vcp
+ mdb02.mcp11-ovs-dpdk.local:
+ name: mdb02
+ parameters: {}
+ reclass_storage_name: openstack_telemetry_node02
+ roles:
+ - vcp
+ mdb03.mcp11-ovs-dpdk.local:
+ name: mdb03
+ parameters: {}
+ reclass_storage_name: openstack_telemetry_node03
+ roles:
+ - vcp
+ mon01.mcp11-ovs-dpdk.local:
+ name: mon01
+ parameters: {}
+ reclass_storage_name: stacklight_monitor_node01
+ roles:
+ - vcp
+ mon02.mcp11-ovs-dpdk.local:
+ name: mon02
+ parameters: {}
+ reclass_storage_name: stacklight_monitor_node02
+ roles:
+ - vcp
+ mon03.mcp11-ovs-dpdk.local:
+ name: mon03
+ parameters: {}
+ reclass_storage_name: stacklight_monitor_node03
+ roles:
+ - vcp
+ msg01.mcp11-ovs-dpdk.local:
+ name: msg01
+ parameters: {}
+ reclass_storage_name: openstack_message_queue_node01
+ roles:
+ - vcp
+ msg02.mcp11-ovs-dpdk.local:
+ name: msg02
+ parameters: {}
+ reclass_storage_name: openstack_message_queue_node02
+ roles:
+ - vcp
+ msg03.mcp11-ovs-dpdk.local:
+ name: msg03
+ parameters: {}
+ reclass_storage_name: openstack_message_queue_node03
+ roles:
+ - vcp
+ mtr01.mcp11-ovs-dpdk.local:
+ name: mtr01
+ parameters: {}
+ reclass_storage_name: stacklight_telemetry_node01
+ roles:
+ - vcp
+ mtr02.mcp11-ovs-dpdk.local:
+ name: mtr02
+ parameters: {}
+ reclass_storage_name: stacklight_telemetry_node02
+ roles:
+ - vcp
+ mtr03.mcp11-ovs-dpdk.local:
+ name: mtr03
+ parameters: {}
+ reclass_storage_name: stacklight_telemetry_node03
+ roles:
+ - vcp
+ prx01.mcp11-ovs-dpdk.local:
+ name: prx01
+ parameters: {}
+ reclass_storage_name: openstack_proxy_node01
+ roles:
+ - vcp
+ prx02.mcp11-ovs-dpdk.local:
+ name: prx02
+ parameters: {}
+ reclass_storage_name: openstack_proxy_node02
+ roles:
+ - vcp
+
diff --git "a/examples/environment/\173\173 cookiecutter.cluster_name \175\175/init.yml" "b/examples/environment/\173\173 cookiecutter.cluster_name \175\175/init.yml"
new file mode 100644
index 0000000..633ed40
--- /dev/null
+++ "b/examples/environment/\173\173 cookiecutter.cluster_name \175\175/init.yml"
@@ -0,0 +1,16 @@
+parameters:
+ reclass:
+ storage:
+ node:
+{%- for inventory_node_name, node in cookiecutter.nodes.items() %}
+ {{ node['reclass_storage_name'] }}:
+ params:
+{%- if 'vcp' in node['roles'] %}
+ linux_network_interfaces:
+ ens3: ${_param:linux_single_interface}
+{%- else %}
+ linux_network_interfaces: None # Create interfaces configuration from your inventory
+{%- endif %}
+ classes:
+ - environment.{{ cookiecutter.cluster_name }}.networking
+{%- endfor %}
diff --git "a/examples/environment/\173\173 cookiecutter.cluster_name \175\175/networking.yml" "b/examples/environment/\173\173 cookiecutter.cluster_name \175\175/networking.yml"
new file mode 100644
index 0000000..1ef4d17
--- /dev/null
+++ "b/examples/environment/\173\173 cookiecutter.cluster_name \175\175/networking.yml"
@@ -0,0 +1,4 @@
+parameters:
+ linux:
+ network:
+ interface: ${_param:linux_network_interfaces}