ome_firmware_repository (Data Source)

This Terraform DataSource is used to query the firmware baseline compliance repository 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) 2024 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 details of all the firmware repositories 
data "ome_firmware_repository" "fbc-repository-all" {

}
output "fbc-repository" {
  value = data.ome_firmware_repository.fbc-repository-all
}

# Get filtered Repositories
# data "ome_firmware_repository" "firmware-repository-name-filter" {
#        # If names filter is added, it should atleast have one name.Otherwise you will see an error.
#        # If you do not want to filter and get all repositories then do not pass the name filter(Above configuration)
#         names = [
#           "tfacc_catalog_1",
#           "tfacc_catalog_dell_online_1",
#         ]
# }
# output "fbc-repository-name" {
#   value = data.ome_firmware_repository.firmware-repository-name-filter
# }

After the successful execution of above said block, We can see the output value by executing terraform output command.

Schema

Optional

  • names (Set of String) A list of repository names which can filter the datasource. Length should be at least 1.

Read-Only

  • fbc_repositories (Attributes List) Repositories fetched. (see below for nested schema)
  • id (Number) Dummy ID of the datasource.

Nested Schema for fbc_repositories

Read-Only:

  • backup_existing_catalog (Boolean) Catalog will take backup automatically if it is true.
  • check_certificate (Boolean) If certificate check must be done for HTTPS repository.
  • description (String) Description of the repository.
  • domain_name (String) Domain Name for user credentials.
  • editable (Boolean) True, if the catalog can be editable.
  • id (Number) ID of the repository.
  • name (String) Unique name of the repository.
  • repository_type (String) Source of the repository.
  • source (String) URL or IP or FQDN of the repository host.
  • username (String) Username to access the share containing the catalog (CIFS/HTTPS).