add container and volume resources
This commit is contained in:
parent
a85067062d
commit
761d58df2f
|
@ -42,6 +42,12 @@ func (c *Config) loadAndValidate() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Config) blockStorageV1Client(region string) (*gophercloud.ServiceClient, error) {
|
||||||
|
return openstack.NewBlockStorageV1(c.osClient, gophercloud.EndpointOpts{
|
||||||
|
Region: region,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Config) computeV2Client(region string) (*gophercloud.ServiceClient, error) {
|
func (c *Config) computeV2Client(region string) (*gophercloud.ServiceClient, error) {
|
||||||
return openstack.NewComputeV2(c.osClient, gophercloud.EndpointOpts{
|
return openstack.NewComputeV2(c.osClient, gophercloud.EndpointOpts{
|
||||||
Region: region,
|
Region: region,
|
||||||
|
|
|
@ -59,6 +59,7 @@ func Provider() terraform.ResourceProvider {
|
||||||
},
|
},
|
||||||
|
|
||||||
ResourcesMap: map[string]*schema.Resource{
|
ResourcesMap: map[string]*schema.Resource{
|
||||||
|
"openstack_blockstorage_volume_v1": resourceBlockStorageVolumeV1(),
|
||||||
"openstack_compute_instance_v2": resourceComputeInstanceV2(),
|
"openstack_compute_instance_v2": resourceComputeInstanceV2(),
|
||||||
"openstack_compute_keypair_v2": resourceComputeKeypairV2(),
|
"openstack_compute_keypair_v2": resourceComputeKeypairV2(),
|
||||||
"openstack_compute_secgroup_v2": resourceComputeSecGroupV2(),
|
"openstack_compute_secgroup_v2": resourceComputeSecGroupV2(),
|
||||||
|
|
Loading…
Reference in New Issue