Switch to new ironicv1 module
Change-Id: I4e86cb755e050f323385f5fda92b33580330b28f
diff --git a/ironic/client.sls b/ironic/client.sls
index 2fffb2a..fa6b2f5 100644
--- a/ironic/client.sls
+++ b/ironic/client.sls
@@ -10,12 +10,12 @@
{%- for node in nodes %}
node_{{ node.name }}_present:
- ironicng.node_present:
+ ironicv1.node_present:
- name: {{ node.name }}
- driver: {{ node.driver }}
- - properties: {{ node.properties|default({}) }}
- - profile: {{ identity_name }}
- driver_info: {{ node.driver_info|default({}) }}
+ - cloud_name: {{ client.cloud_name }}
+ - properties: {{ node.properties|default({}) }}
{%- if node.network_interface is defined %}
- network_interface: {{ node.network_interface }}
{%- endif %}
@@ -27,16 +27,16 @@
{%- for port in node.ports %}
{{ node.name }}_port{{ loop.index }}_present:
- ironicng.port_present:
+ ironicv1.port_present:
- address: {{ port.address }}
- - node_name: {{ node.name }}
+ - node: {{ node.name }}
+ - cloud_name: {{ client.cloud_name }}
{%- if port.local_link_connection is defined %}
- local_link_connection: {{ port.local_link_connection }}
{%- endif %}
{%- if port.ironic_api_version is defined %}
- ironic_api_version: "{{ port.ironic_api_version }}"
{%- endif %}
- - profile: {{ identity_name }}
{%- endfor %} # end for ports
{%- endif %} # end if node.ports defined
diff --git a/metadata/service/client.yml b/metadata/service/client.yml
index 8e33a4b..325118f 100644
--- a/metadata/service/client.yml
+++ b/metadata/service/client.yml
@@ -4,3 +4,4 @@
ironic:
client:
enabled: True
+ cloud_name: admin_identity