mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
terraform: provide required configuration for yawol on OpenStack
This commit is contained in:
parent
bab27fbc69
commit
b5e848a87e
5 changed files with 59 additions and 1 deletions
|
@ -340,6 +340,18 @@ func (c *Client) ShowInfrastructure(ctx context.Context, provider cloudprovider.
|
|||
LoadBalancerName: loadBalancerName,
|
||||
AttestationURL: attestationURL,
|
||||
}
|
||||
case cloudprovider.OpenStack:
|
||||
networkIDOutput, ok := tfState.Values.Outputs["network_id"]
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("no network_id output found")
|
||||
}
|
||||
networkID, ok := networkIDOutput.Value.(string)
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("invalid type in network_id output: not a string")
|
||||
}
|
||||
res.OpenStack = &state.OpenStack{
|
||||
NetworkID: networkID,
|
||||
}
|
||||
}
|
||||
return res, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue