ManageIQ plugin for the Embedded Terraform provider.
See the section on plugins in the ManageIQ Developer Setup
For quick local setup run bin/setup
, which will clone the core ManageIQ repository under the spec directory and setup necessary config files. If you have already cloned it, you can run bin/update
to bring the core ManageIQ code up to date.
First ensure that you have the opentofu-runner image pulled locally:
docker pull docker.io/manageiq/opentofu-runner:latest
If your database connection requires a password then create a secret:
echo '{"DATABASE_PASSWORD":"mypassword"}' | docker secret create opentofu-runner-secret -
And add --secret opentofu-runner-secret
to the command below
Now you can start your opentofu-runner:
docker run --name=opentofu-runner --rm --network=host --env NODE_ENV=development --env DATABASE_HOSTNAME=localhost --env DATABASE_NAME=vmdb_development --env DATABASE_USERNAME=root --env MEMCACHE_SERVERS=127.0.0.1:11211 --env PORT=6000 --expose=6000 docker.io/manageiq/opentofu-runner:latest
Verify that everything is working by checking Terraform::Runner.available?
with a rails console:
$ TERRAFORM_RUNNER_URL=http://localhost:6000 rails c
>> Terraform::Runner.available?
=> true
To stop the opentofu-runner docker stop opentofu-runner
in another terminal.
The gem is available as open source under the terms of the Apache License 2.0.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request