2015-05-02 01:59:16 +02:00
|
|
|
package template
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/helper/schema"
|
|
|
|
"github.com/hashicorp/terraform/terraform"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Provider() terraform.ResourceProvider {
|
|
|
|
return &schema.Provider{
|
2016-05-22 00:09:55 +02:00
|
|
|
DataSourcesMap: map[string]*schema.Resource{
|
|
|
|
"template_file": dataSourceFile(),
|
|
|
|
"template_cloudinit_config": dataSourceCloudinitConfig(),
|
|
|
|
},
|
2015-05-02 01:59:16 +02:00
|
|
|
ResourcesMap: map[string]*schema.Resource{
|
2016-05-22 00:09:55 +02:00
|
|
|
"template_file": schema.DataSourceResourceShim(
|
|
|
|
"template_file",
|
|
|
|
dataSourceFile(),
|
|
|
|
),
|
|
|
|
"template_cloudinit_config": schema.DataSourceResourceShim(
|
|
|
|
"template_cloudinit_config",
|
|
|
|
dataSourceCloudinitConfig(),
|
|
|
|
),
|
2015-05-02 01:59:16 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|