-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Opentofu Worker #2
Conversation
|
447f3cf
to
b816f10
Compare
90a00db
to
0ece888
Compare
app/models/opentofu_worker.rb
Outdated
def container_image_namespace | ||
ENV["CONTAINER_IMAGE_NAMESPACE"] | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exists in the base class already:
https://github.com/ManageIQ/manageiq/blob/master/app/models/miq_worker/container_common.rb#L92-L94
* [draft] add spec for .create_in_provider * Add EmbeddedTerraform Provider class * add ensure_managers * fixed .create_in_provider test * Add more tests * Use basename of dir, as template-name pre-fix, & full git repo url details as suffix * Add more test - templates-in-repo & update-in-provider
…t_source_and_payload Add configuration script source and payload
5dd21af
to
3b99c79
Compare
4177da6
to
2889114
Compare
Okay I have the opentofu-runner.service being started by EvmServer via the
|
For the systemd service I broadly followed https://www.redhat.com/sysadmin/podman-run-pods-systemd-services without some of the complexity of creating a Pod plus a Container |
126c614
to
82e1ab5
Compare
systemd/opentofu-runner.service
Outdated
User=manageiq | ||
Group=manageiq | ||
ExecStartPre=/bin/rm -f /tmp/%n.cid | ||
ExecStart=/usr/bin/podman run --conmon-pidfile %T/%N.pid --cidfile %T/%N.cid --cgroup-manager=cgroupfs --cgroups=no-conmon --log-driver=journald --replace --name=opentofu-runner --secret=opentofu-runner-secret --root=/var/www/miq/vmdb/data/containers/storage docker.io/agrare/opentofu-runner:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExecStart=/usr/bin/podman run --conmon-pidfile %T/%N.pid --cidfile %T/%N.cid --cgroup-manager=cgroupfs --cgroups=no-conmon --log-driver=journald --replace --name=opentofu-runner --secret=opentofu-runner-secret --root=/var/www/miq/vmdb/data/containers/storage docker.io/agrare/opentofu-runner:latest | |
ExecStart=/usr/bin/podman run --conmon-pidfile %T/%N.pid --cidfile %T/%N.cid --cgroup-manager=cgroupfs --cgroups=no-conmon --log-driver=journald --replace --name=opentofu-runner --secret=opentofu-runner-secret --root=/var/www/miq/vmdb/data/containers/storage docker.io/manageiq/opentofu-runner:latest |
0f32a3a
to
4e6881a
Compare
Checked commits agrare/manageiq-providers-embedded_terraform@fc97155~...4e6881a with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
TODO in a follow-up, check |
TODO check if you can use an Environment Variable in an ExecStart to change the runner image label |
Adds an opentofu worker using the embedded_terraform role, note this will be the first non-ruby worker we'll have 🎉
TODO:
Dependents: