puppet-bind icon indicating copy to clipboard operation
puppet-bind copied to clipboard

Hard coded logging locations

Open hybby opened this issue 7 years ago • 5 comments

Right now, logging appears not to be configurable, with the ERB file being hard-coded with the following stanzas:

logging {
    channel main_log {
        file "/var/log/named/named.log" versions 3 size 5m;
        severity info;
        print-time yes;
        print-severity yes;
        print-category yes;
    };
    category default{
        main_log;
    };
    category lame-servers {
        null;
    };
};

It would be helpful if the contents of main_log could be altered, for example, to permit logs to be sent to syslog instead of a specific log file.

hybby avatar Oct 02 '17 11:10 hybby

I raised a PR (#81) to address my immediate use case, but I recognise that a more flexible approach might be preferred.

hybby avatar Oct 02 '17 13:10 hybby

@hybby my PR from awhile ago may be of interest/use: https://github.com/thias/puppet-bind/pull/57

nickchappell avatar Oct 02 '17 21:10 nickchappell

@nickchappell - oh, excellent! This looks great. I'll close my PR, as it looks like you spent a bit more time on making things lovely and configurable. Thanks for sharing!

I hope that @thias has time to look at and merge your PR soon, as it would be a great contribution.

hybby avatar Oct 02 '17 21:10 hybby

Please implement this. I'm afraid of the newrelic-forks version, as the commits are very old in this repo.

If logging is not configurable, could you consider at least not hardcoding the template ? This way it would be possible to specify the template to use as a parameter, without starting to make local commits to the module.

ybrock avatar Feb 21 '18 13:02 ybrock

I have created PR #105 which makes all the logging options configurable

sshipway avatar Feb 25 '20 02:02 sshipway