Skip to content

Instantly share code, notes, and snippets.

@MattHodge
Created July 8, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattHodge/b061ce77d39210ac552e8a8c0c43a5b4 to your computer and use it in GitHub Desktop.
Save MattHodge/b061ce77d39210ac552e8a8c0c43a5b4 to your computer and use it in GitHub Desktop.
func getDeploymentStepIISSchema() *schema.Schema {
schmeaToReturn := &schema.Schema{
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"web_application_parent_website_name": {
Type: schema.TypeString,
Description: "Create or update an IIS Web Application as a child of an existing IIS Web Site",
Optional: true,
ConflictsWith: []string{"website_name", "virtual_directory_parent_website_name", "virtual_directory_virtual_path"},
},
"web_application_virtual_path": {
Type: schema.TypeString,
Description: "Create or update an IIS Web Site",
Optional: true,
ConflictsWith: []string{"website_name", "virtual_directory_parent_website_name", "virtual_directory_virtual_path"},
},
"virtual_directory_parent_website_name": {
Type: schema.TypeString,
Description: "The name of the parent Web Site for this Virtual Directory in IIS. The Web Site should already exist when this step runs.",
Optional: true,
ConflictsWith: []string{"website_name", "web_application_parent_website_name", "web_application_virtual_path"},
},
"virtual_directory_virtual_path": {
Type: schema.TypeString,
Description: "The virtual path in IIS relative to the parent Web Site. E.g. /application1/directory2/mydirectory. Note: All parent directories/applications must already exist.",
Optional: true,
ConflictsWith: []string{"website_name", "web_application_parent_website_name", "web_application_virtual_path"},
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment