Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.63 KB

file_template.md

File metadata and controls

56 lines (42 loc) · 1.63 KB
page_title subcategory description
morpheus_file_template Resource - terraform-provider-morpheus
Provides a Morpheus file template resource

morpheus_file_template

Provides a Morpheus file template resource

Example Usage

resource "morpheus_file_template" "tfexample_file_template" {
  name             = "tf-terraform-file-template"
  labels           = ["demo", "template", "terraform"]
  file_name        = "tfcustom.cnf"
  file_path        = "/etc/my.cnf.d"
  phase            = "preProvision"
  file_content     = file("${path.module}/custom.cnf")
  file_owner       = "root"
  setting_name     = "myCnf"
  setting_category = "master"
}

Schema

Required

  • file_name (String) The name of the file deployed by the file template
  • name (String) The name of the file template
  • phase (String) The phase that the file template should be run during (preProvision, provision, postProvision, preDeploy, deploy)

Optional

  • file_content (String) The content of the file template
  • file_owner (String) The file template file owner
  • file_path (String) The system path of the file deployed by the file template
  • labels (Set of String) The organization labels associated with the file template (Only supported on Morpheus 5.5.3 or higher)
  • setting_category (String) The file template setting category
  • setting_name (String) The file template setting name

Read-Only

  • id (String) The ID of the file template

Import

Import is supported using the following syntax:

terraform import morpheus_file_template.tf_example_file_template 1