With the assisted-service client now in a separate go module, we are
able to drop the dependency on the main assisted-service module. This
allows us to update to the latest version without pulling in any
undesirable dependencies as a side-effect.
* Replace terraform modules with github.com/hashicorp/terraform-exec.
* Remove all terraform providers.
* Remove all unneeded replaces.
* Tidy up the replace stanzas so that it is more clear why each replace is needed.
* Remove and re-create all indirect requires to clean up ones that are
no longer needed.
This updates baremetal-operator to pull in the latest changes including
hardware profiles. The installer vendors hardware profiles from
baremetal-operator to keep the interface the same between
terraform-provisioned baremetal hosts and those provisioned by the
machine-api.
This is done by updating the entry in the `replace` clause of the go.mod
file. Then, we run `go mod tidy`, followed by `go mod vendor`. This
breaks because the requested version of google.golang.org/grpc, v1.27.0,
changes the API in backwards-incompatible ways. Thus, we also include a
new pin for this dependency to the previously requested version,
v1.25.0, which yields a working build.
Also had to manually add vfsutil to testImports because glide didn't
pick it up for some reason.
Commands run:
rm glide.lock
glide install --strip-vendor
glide-vc --use-lock-file --no-tests --only-code