bastille icon indicating copy to clipboard operation
bastille copied to clipboard

[BUG] LOG in Bastillefile is not working

Open eoli3n opened this issue 3 years ago • 2 comments

[MANDATORY] Describe the bug [MANDATORY] I want to be able to log my templatings. In the README.md, it says that I can log with LOG /path/to/file.

[MANDATORY] Bastille and FreeBSD version (paste bastille -v && freebsd-version -kru output)

root@nas ~# bastille -v && freebsd-version -kru
0.8.20210115
13.0-RELEASE
13.0-RELEASE
13.0-RELEASE

[MANDATORY] How did you install bastille? (port/pkg/git) pkg

[optional] Steps to reproduce? Add this line to a Bastillefile

LOG /var/log/bastille/jail1_template.log
$ bastille template jail1 services/jail1
[...]
Failed to execute command: log

[optional] Expected behavior Bastille creating a log file on the host (and not the jail) which will be listed with bastille list logs.

eoli3n avatar Jun 16 '21 13:06 eoli3n

The readme says »Planned template hooks include: PF, LOG«. Unfortunately they are not implemented yet.

Still, this might be a good issue to track the progress of the LOG hook.

tobiastom avatar Jun 16 '21 14:06 tobiastom

Oh sorry, misunderstood that, ok, let's keep it :)

eoli3n avatar Jun 16 '21 14:06 eoli3n

@tobiastom what readme has this in it?? I cannot find a reference to a LOG hook anywhere.

bmac2 avatar Oct 21 '23 18:10 bmac2

It was mentioned here, but was it was removed, maybe there is no need for a log hook anymore.

tobiastom avatar Oct 25 '23 08:10 tobiastom

documentation was updated, no action item for this ticket anymore.

bmac2 avatar Oct 25 '23 17:10 bmac2