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

module isn't compatible with solaris syslog #3

Open
vchepkov opened this issue Dec 11, 2015 · 1 comment
Open

module isn't compatible with solaris syslog #3

vchepkov opened this issue Dec 11, 2015 · 1 comment
Labels
bug Something isn't working

Comments

@vchepkov
Copy link

Hi,

Could you add support for Solaris syslog configuration, please?
I assume current module doesn't like this constructs:

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err                                        /dev/sysmsg
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)

when trying to apply this resource:

syslog { 'local0':
  ensure      => present,
  facility    => 'local0',
  level       => 'info',
  action_type => 'file',
  action      => '/var/log/local0.log',
  target      => '/etc/syslog.conf',
  provider    => 'augeas',
}

I get an error:

Error: /Stage[main]/Main/Syslog[local0]: Could not evaluate: Augeas didn't load /etc/syslog.conf with Syslog.lns: Get did not match entire input (line:24, character:0)

Thank you

@raphink
Copy link
Member

raphink commented Dec 14, 2015

Afaik, this construct is not supported by the lens. Please open a bug in Augeas itself for this.

@raphink raphink added the bug Something isn't working label Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants