goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.53k stars 470 forks source link

add /etc/goss/goss.yaml or something like that for default config search path #302

Closed belonesox closed 4 years ago

belonesox commented 6 years ago

It will be very useful and convenient if we can run goss ...

Please!

Let by default, if no GOSS_FILE defined, not "-g" specified, not "~/.goss" exists, let get "/etc/goss/goss.yaml" (or something like that) by default.

taurus-forever commented 6 years ago

There is a very simple and powerful workaround, just install your's 'goss' script, sample from us:

me@host:~$ cat /usr/bin/goss
#!/bin/bash
# HEADER: managed by puppet, do NOT edit manually!

/usr/bin/goss_0.3.4 -g /etc/goss/goss.yaml $@
me@host:~$ 

In this case you can have multiply goss versions "installed" on the same host (migration period to ensure new version is running well). Also you can call "goss v" only ;-)

Have fun!

aelsabbahy commented 4 years ago

I'd rather this be explicitly set by the user so it's clear which Goss file is being executed.