github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/template/provider.go (about)

     1  package template
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  	"github.com/hashicorp/terraform/terraform"
     6  )
     7  
     8  func Provider() terraform.ResourceProvider {
     9  	return &schema.Provider{
    10  		DataSourcesMap: map[string]*schema.Resource{
    11  			"template_file":             dataSourceFile(),
    12  			"template_cloudinit_config": dataSourceCloudinitConfig(),
    13  		},
    14  		ResourcesMap: map[string]*schema.Resource{
    15  			"template_file": schema.DataSourceResourceShim(
    16  				"template_file",
    17  				dataSourceFile(),
    18  			),
    19  			"template_cloudinit_config": schema.DataSourceResourceShim(
    20  				"template_cloudinit_config",
    21  				dataSourceCloudinitConfig(),
    22  			),
    23  		},
    24  	}
    25  }