%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/chef.pyo |
�
���^c @@ sh d Z d d l m Z m Z m Z d d l Z d � Z d � Z d � Z d � Z d � Z
d � Z d S(
uz
Execute Chef client runs
=====================================================================
Run chef-client or chef-solo
.. code-block:: yaml
my-chef-run:
chef.client:
- override-runlist: 'demo1,demo2'
- server: 'https://chef.domain.com'
default-chef-run:
chef.client: []
my-solo-run:
chef.solo:
- environment: dev
i ( t absolute_importt print_functiont unicode_literalsNc C@ s d t k r t St S( u:
Only load if Chef execution module is available.
u chef.client( t __salt__t Truet False( ( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyt __virtual__ s c K@ s t | d | � S( u0
name
Unique identifier for the state. Does not affect the Chef run.
server
The chef server URL
client_key
Set the client key file location
config
The configuration file to use
config-file-jail
Directory under which config files are allowed to be loaded
(no client.rb or knife.rb outside this path will be loaded).
environment
Set the Chef Environment on the node
group
Group to set privilege to
json-attributes
Load attributes from a JSON file or URL
localmode
Point chef-client at local repository if True
log_level
Set the log level (debug, info, warn, error, fatal)
logfile
Set the log file location
node-name
The node name for this client
override-runlist
Replace current run list with specified items for a single run
pid
Set the PID file location, defaults to /tmp/chef-client.pid
run-lock-timeout
Set maximum duration to wait for another client run to finish,
default is indefinitely.
runlist
Permanently replace current run list with specified items
user
User to set privilege to
validation_key
Set the validation key file location, used for registering new clients
u chef.client( t _run( t namet kwargs( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyt client# s :c K@ s t | d | � S( u^
name
Unique identifier for the state. Does not affect the Chef run.
config
The configuration file to use
environment
Set the Chef Environment on the node
group
Group to set privilege to
json-attributes
Load attributes from a JSON file or URL
log_level
Set the log level (debug, info, warn, error, fatal)
logfile
Set the log file location
node-name
The node name for this client
override-runlist
Replace current run list with specified items for a single run
recipe-url
Pull down a remote gzipped tarball of recipes and untar it to
the cookbook cache
run-lock-timeout
Set maximum duration to wait for another client run to finish,
default is indefinitely.
user
User to set privilege to
u chef.solo( R ( R R ( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyt solo` s )c C@ s� i | d 6i d 6d d 6d d 6} t | d t d | � } | d d k r� t | d
� r� t | d
� | d d <t d s� t n d | d <q� t | d <n
t | d <d j | d
| d
g � | d <| S( Nu nameu changesu resultu u commentt whyrunu testu retcodei u stdoutu summaryu
u stderr( t NoneR t __opts__t _has_changest _summaryR R t join( R t modR t rett result( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyR � s
!c C@ s | j � d S( Ni����( t
splitlines( t stdout( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyR � s c C@ s7 t j d t | � t j � } t | j d � � d k S( Nu Chef Client finished, (\d+)i i ( t ret searchR t
IGNORECASEt intt group( R t regex( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyR � s
( t __doc__t
__future__R R R R R R
R R R R ( ( ( s4 /usr/lib/python2.7/site-packages/salt/states/chef.pyt <module> s = ,