ome_template_info (Data Source)

This Terraform DataSource is used to query templates from OME. The information fetched from this data source can be used for getting the details for further processing in resource block.

Example Usage

/*
Copyright (c) 2023 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# get the template details 
data "ome_template_info" "data-template-1" {
  name = "template_1"
}

After the successful execution of above said block, We can see the output value by executing terraform output command. Also, we can use the fetched information by the variable data.ome_template_info.data-template-1

Schema

Required

  • name (String) Name of the template.

Optional

  • attributes (List of Object) List of attributes associated with template. (see below for nested schema)
  • content (String) The XML content of template from which the template will be created
  • description (String) Description for the template.
  • id (String) ID of the template data source.
  • refdevice_id (Number) Target device id from which the template is created.
  • vlan (Object) VLAN details to be attached with template. (see below for nested schema)

Read-Only

  • device_type_id (Number) Template type ID, indicating the type of device for which configuration is supported, current supported device is server
  • identity_pool_id (Number) ID of the Identity Pool attached with template.
  • view_type_id (Number) OME template view type id.

Nested Schema for attributes

Optional:

  • attribute_id (Number)
  • display_name (String)
  • is_ignored (Boolean)
  • value (String)

Nested Schema for vlan

Optional:

  • bonding_technology (String)
  • propogate_vlan (Boolean)
  • vlan_attributes (List of Object) (see below for nested schema)

Nested Schema for vlan.vlan_attributes

Optional:

  • is_nic_bonded (Boolean)
  • nic_identifier (String)
  • port (Number)
  • tagged_networks (List of Number)
  • untagged_network (Number)