Closed danielcbright closed 7 years ago
We are also going to need to modify virtual_guest to accept a provisioning hook label as a parameter.
After some discussion, we no longer feel that adding a 'provisioning_hook_label' field to the virtual_guest resource adds sufficient value to offset the complexity in doing so.
Some factors that weigh into this thinking:
resource "softlayer_provisioning_hook" "my_hook" {
name = "mike_custom_script"
uri = "https://something"
}
resource "softlayer_virtual_guest" "guest1" {
…
post_install_script_uri = "${softlayer_provisioning_hook.my_hook.uri}"
…
}
Implement Resource: softlayer_provisioning_hook
This issue will track the completion of the _provisioninghook resource type requirement for the SoftLayer Provisioner.
Tracking Checklist
softlayer-go
API, including enhancements and tests. Please follow all contribution guidelines listed in the main README, all updates should be made via PR to https://github.com/TheWeatherCompany/softlayer-go which will be code-reviewed and then merged, changes will eventually be merged upstream.Example configuration: