Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename legacy_config defined type and class #160

Open
dhollinger opened this issue Sep 8, 2020 · 1 comment
Open

Rename legacy_config defined type and class #160

dhollinger opened this issue Sep 8, 2020 · 1 comment
Assignees
Labels
bug Something isn't working docs Improvements or additions to documentation enhancement New feature or request

Comments

@dhollinger
Copy link
Member

dhollinger commented Sep 8, 2020

What this module refers to as "legacy_config" is actually what Rsyslog refers to as the basic syslog configuration.

Vote for renaming this to match the rsyslog documentation.

example of what Rsyslog calls "Basic" syslog configuration:

mail.info /var/log/mail.log
mail.err @@server.example.net

How we create those in this module today:

rsyslog::component::legacy_config { 'mail.info':
  'priority'  => $rsyslog::legacy_config_priority,
  'target'    => $rsyslog::target_file,
  'confdir'  => $rsyslog::confdir,
  'key'       => 'mail.info',
  'value'    => '/var/log/mail.log',
}

rsyslog::component::legacy_config { 'mail.err':
  'priority'  => $rsyslog::legacy_config_priority,
  'target'    => $rsyslog::target_file,
  'confdir'  => $rsyslog::confdir,
  'key'       => 'mail.err',
  'value'    => '@@server.example.net',
}
@dhollinger dhollinger self-assigned this Sep 8, 2020
@dhollinger dhollinger added bug Something isn't working docs Improvements or additions to documentation enhancement New feature or request labels Sep 8, 2020
@m8t
Copy link

m8t commented Sep 2, 2024

I had recommend to use the custom_config for this purpose.

hiera example:

rsyslog::config::custom_config:
  mail.info:
    content: |
      mail.info /var/log/mail.log
      & ~

puppet example:

rsyslog::component::custom_config { 'mail.info':
    #content => template('some_prefix/template.conf.erb')
    content => 'mail.info /var/log/mail.log'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants