ome_application_csr (Resource)

This terraform resource is used to generate application Certificate Signing Request from OME.

~> Note: Exactly one of ref_template_name and ref_template_id and exactly one of device_ids and device_servicetags are required.

~> Note: When schedule is true, following parameters are considered: notify_on_schedule, cron, email_addresses, output_format.

~> Note: Updates are supported for all the parameters.

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.
*/

resource "ome_application_csr" "csr1" {
  specs = {
    distinguished_name      = "localhost"
    department_name         = "Terraform Server Solutions"
    business_name           = "Dell Terraform"
    locality                = "RedRock"
    state                   = "Texas"
    country                 = "US"
    email                   = "noreply@gmail.com"
    subject_alternate_names = ["dell.com", "amer.dell.com", "10.36.0.124", "2607:f2b1:f006:127::10"]
  }
}

resource "local_file" "csr_file" {
  content  = ome_application_csr.csr
  filename = "foo.pem"
}

After the execution of above resource block, Certificate Signin Request would have been created on the OME. For more information, Please check the terraform state file.

Schema

Required

  • specs (Attributes) CSR specifications. Terraform will replace (delete and recreate) this resource if this attribute is modified. (see below for nested schema)

Read-Only

  • csr (String) CSR in single line PEM format returned from OME.
  • id (String) ID for application csr resource.

Nested Schema for specs

Required:

  • business_name (String) Business Name.
  • country (String) Country of the business.
  • department_name (String) Department Name.
  • distinguished_name (String) Distinguished Name.
  • email (String) Email address.
  • locality (String) Locality of the business.
  • state (String) State of the business.

Optional:

  • subject_alternate_names (List of String) Subject Alternate names. Maximum 4.