Skip to content

Conversation

@sorenisanerd
Copy link
Collaborator

Adds -config=/etc/nomad.d to Nomad agent's command line, providing a
location for confexts to add to Nomad's configuration.

Nomad agent will fail if the directory does not exist, so add it to the
base image.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables configuration extensions (confext) to add to Nomad's configuration by adding a new configuration directory path to the Nomad agent's command line arguments and creating the corresponding directory in the base image.

  • Adds -config=/etc/nomad.d flag to Nomad agent's systemd service
  • Creates the /etc/nomad.d directory in the base image to prevent startup failures

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
mkosi.images/nomad/systemd/nomad.service Adds -config /etc/nomad.d flag to enable confext configuration loading
mkosi.images/base/mkosi.extra/etc/nomad.d/.placeholder Creates the required directory structure with a placeholder file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants