You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The portainer_custom_template resource allows you to manage Portainer Custom Templates.
You can create templates using inline content (file_content), from a local file (file_path), or from a Git repository.
Example Usage
Create Custom Template using file_content
resource"portainer_custom_template""example_string" {
title="nginx-string"description="Template from inline string"note="This is from string"platform=1type=2file_content=<<-EOT version: "3" services: web: image: nginx EOT
}
Create Custom Template from local file
resource"portainer_custom_template""example_file" {
title="nginx-file"description="Template from file"note="Note here"platform=1type=2file_path="./templates/nginx.yml"
}