voxpupuli / puppet-nomad

Puppet module for managing Nomad
Apache License 2.0
16 stars 32 forks source link

Add config validate #85

Closed maxadamo closed 1 year ago

maxadamo commented 1 year ago

Pull Request (PR) description

Add config validate

This Pull Request (PR) fixes the following issues

Fixes #84

maxadamo commented 1 year ago

the CI looks good, but, apart from any other observation/objection, I want to test this change onto real servers, where I can try to uninstall ruby.

maxadamo commented 1 year ago

for the sake of sharing: I uninstalled ruby, I removed puppet from the PATH, I ran: /opt/puppetlabs/puppet/bin/puppet agent -t and it failed with this error:

Error: Execution of '/usr/local/bin/config_validate.rb /etc/nomad.d/config.json20230424-3227133-172987x' returned 127: /usr/bin/env: 'ruby': No such file or directory

It's good to have multiple options.