%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyc |
�
���^c @� s� d Z d d l m Z m Z m Z m Z m Z d d l Z e j e � Z
e d � Z d d � Z d d d d d e d e d e e e e d d d d � Z d � Z d S( u�
State module for syslog_ng
==========================
:maintainer: Tibor Benke <btibi@sch.bme.hu>
:maturity: new
:depends: cmd, ps, syslog_ng
:platform: all
Users can generate syslog-ng configuration files from YAML format or use
plain ones and reload, start, or stop their syslog-ng by using this module.
Details
-------
The service module is not available on all system, so this module includes
:mod:`syslog_ng.reloaded <salt.states.syslog_ng.reloaded>`,
:mod:`syslog_ng.stopped <salt.states.syslog_ng.stopped>`,
and :mod:`syslog_ng.started <salt.states.syslog_ng.started>` functions.
If the service module is available on the computers, users should use that.
Users can generate syslog-ng configuration with
:mod:`syslog_ng.config <salt.states.syslog_ng.config>` function.
For more information see :ref:`syslog-ng state usage <syslog-ng-sate-usage>`.
Syslog-ng configuration file format
-----------------------------------
The syntax of a configuration snippet in syslog-ng.conf:
..
object_type object_id {<options>};
These constructions are also called statements. There are options inside of them:
..
option(parameter1, parameter2); option2(parameter1, parameter2);
You can find more information about syslog-ng's configuration syntax in the
Syslog-ng Admin guide:
http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html-single/index.html#syslog-ng.conf.5
i ( t absolute_importt unicode_literalst print_functiont
generatorst with_statementNc C� s t d | | | � S( u�
Builds syslog-ng configuration.
name : the id of the Salt document
config : the parsed YAML code
write : if True, it writes the config into the configuration file,
otherwise just returns it
u syslog_ng.config( t __salt__( t namet configt write( ( s9 /usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyR 7 s c C� s t d | � S( u
Kills syslog-ng.
u syslog_ng.stop( R ( R ( ( s9 /usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyt stoppedE s c ! O� sk t d d | d | d | d | d | d | d | d | d
| d | d |
d
| d | d |
d | d | � S( u�
Ensures, that syslog-ng is started via the given parameters.
Users shouldn't use this function, if the service module is available on
their system.
u syslog_ng.startR t usert groupt chroott capst no_capst pidfilet enable_coret fd_limitt verboset debugt tracet yydebugt persist_filet controlt worker_threads( R ( R R
R R R
R R R R R R R R R R R t argst kwargs( ( s9 /usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyt startedL s c C� s t d | � S( u
Reloads syslog-ng.
u syslog_ng.reload( R ( R ( ( s9 /usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyt reloadedv s ( t __doc__t
__future__R R R R R t loggingt getLoggert __name__t logt TrueR t NoneR t FalseR R ( ( ( s9 /usr/lib/python2.7/site-packages/salt/states/syslog_ng.pyt <module>. s, (