page_title | subcategory | description |
---|---|---|
morpheus_file_template Resource - terraform-provider-morpheus |
Provides a Morpheus file template resource |
Provides a Morpheus file template resource
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"
}
file_name
(String) The name of the file deployed by the file templatename
(String) The name of the file templatephase
(String) The phase that the file template should be run during (preProvision, provision, postProvision, preDeploy, deploy)
file_content
(String) The content of the file templatefile_owner
(String) The file template file ownerfile_path
(String) The system path of the file deployed by the file templatelabels
(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 categorysetting_name
(String) The file template setting name
id
(String) The ID of the file template
Import is supported using the following syntax:
terraform import morpheus_file_template.tf_example_file_template 1