puppet配置之puppet.conf详解中英文对照

【导读】

sky也是运维人员,在使用puppet的配置过程中,经常会有碰到些参数,

不知道如何修改,每次都要去看查puppet手册,要不去puppet的官方

网站去看文档,另外也有些同学不知道,puppet的配置到底有那些参数,

以及参数的具体意思,你真的懂得puppet吗,熟悉puppet参数吗,为节约时间查找,

直接把相关内容转贴过来,带着上面的问题跟 sky一起学习puppet.conf吧!

【基础】

puppet的安装与配置可以参阅sky之前的文章,在使用puppet的时候,

也请熟悉的核心配置文件puppet.conf,接下来就详细介绍puppet.conf文件。

puppet 配置文件详解】

Name

Configuration Reference

 

This page is autogenerated; any changes will get overwritten(last generated on Sat Mar 22 17:46:15 +1100 2008)

 

Specifying Configuration Parameters On The Command-Line

 

Every Puppet executable (with the exception of puppetdoc )accepts all of the parameters below,

 but not all of the arguments make sense for everyexecutable. Each parameter has a section

listed with it in parentheses; often, that section will map toan executable (e.g., puppetd ),

 in which case it probably only makes sense for that oneexecutable. If main is listed as the section,

it is most likely an option that is valid for everyone.

I have tried to be as thorough as possible in the descriptionsof the arguments,

so it should be obvious whether an argument is appropriate ornot.

 

These parameters can be supplied to the executables either ascommand-line options or in the configuration file.

 For instance, the command-line invocation below would setthe configuration directory to /private/puppet :

 

$ puppetd --confdir=/private/puppet # 指定puppetd.conf文件生成路径目录。

Note that boolean options are turned on and off with a slightlydifferent syntax on the command line:

$ puppetd --storeconfigs  ## 命令行下使用storeconfigs

 

$ puppetd --no-storeconfigs ##命令行下不使用 storeconfigs

The invocations above will enable and disable, respectively, thestorage of the client configuration.

Configuration Files

 

As mentioned above, the configuration parameters can also bestored in a configuration file,

 located in the configuration directory. As root, thedefault configuration directory is /etc/puppet ,

 and as a regular user, the default configuration directoryis ~user/.puppet executables look for puppet.conf

 in their configuration directory (although they previouslylooked for separate files). For example,

puppet.conf is located at /etc/puppet/puppet.conf as root and

 

~user/.puppet/puppet.conf as a regular user by default.

All executables will set any parameters set within the mainsection,

while each executable will also look for a section named for theexecutable and load those parameters.

For example, puppetd will look for a section named puppetd ,

and puppetmasterd looks for a section named puppetmasterd tocustomize the settings for all of your executables.

File Format

The file follows INI-style formatting. Here is an example of avery simple

puppet.conf file:

 

[main]

    confdir = /private/puppet

    storeconfigs = true

Note that boolean parameters must be explicitly specified astrue or

false as seen above.

 

If you need to change file parameters (e.g., reset the mode orowner), do so within curly braces on the same line:

 

[main]

    myfile = /tmp/whatever {owner = root, mode =644}

If you are starting out with a fresh configuration,

 you may wish to let the executable generate a templateconfiguration file for you

 by invoking the executable in question with the--genconfig command.

The executable will print a template configuration to standardoutput, which can be redirected to a file like so:

$ puppetd --genconfig > /etc/puppet/puppet.conf ##生成puppet配置文件,请注意生成的配置文件会覆盖之前的。

Note that this invocation will replace the contents of anypre-existing

puppet.conf file, so make a backup of your present config if itcontains valuable information.

 

All parameters will be under a single section heading matchingthe name of the process

 used to generate the configuraiton (puppetd, in thiscase).

 

Like the --genconfig argument, the executables also accept a--genmanifest

 

argument, which will generate a manifest that can be used tomanage all of Puppets

directories and files and prints it to standard output. This canlikewise be redirected to a file:

 

$ puppetd --genmanifest > /etc/puppet/manifests/site.pp ##使用genmaifest生成puppet 站点文件(site.pp)

Puppet can also create user and group accounts for itself (onepuppet group and one puppet user)

if it is invoked as root with the --mkusers argument:

$ puppetd --mkusers ##创建puppet的运行用户和组。

Signals

The puppetd and puppetmasterd executables catch some signals forspecial handling.

 Both daemons catch ( SIGHUP ), which forces the server torestart tself. Predictably,

interrupt and terminate ( SIGINT and SIGHUP ) will shut down theserver, whether it be an instance of

puppetd or puppetmasterd Sending the SIGUSR1 signal to aninstance of puppetd will cause it to

immediately begin a new configuration transaction with theserver. This signal has no effect on puppetmasterd

 

Configuration Parameter Reference Below is a list of alldocumented parameters. Not all of them are valid

with all Puppet executables, but the executables will ignore anyinappropriate values.

 

authconfig

 

The configuration file that defines the rights to the differentnamespaces and methods.

 This can be used as a coarse-grained authorization systemfor both puppetd and puppetmasterd

*

Default: $confdir/namespaceauth.conf

 

autoflush

 

Whether log files should always flush to disk.

*

Default: false

autosign ##是否启动自动ssl签名

Whether to enable autosign. Valid values are true (whichautosigns any key request, and is a very bad idea),

false (which never autosigns any key request), and the path to afile, which uses that configuration file to determine which keys to sign.

*

Default: $confdir/autosign.conf ##如要自动给客户端签名,这里就是配置文件。

 

bindaddress ##绑定ip地址

 

The address to bind to. Mongrel servers default to 127.0.0.1 andWEBrick defaults to 0.0.0.0.

bucketdir

 

Where FileBucket files are stored.

*

Default: $vardir/bucket

 

ca

 

Wether the master should function as a certificate authority.

*

Default: true

 

ca_days

 

How long a certificate should be valid. This parameter isdeprecated, use ca_ttl instead

ca_md

 

The type of hash used in certificates.

*

Default: md5

 

ca_port

 

The port to use for the certificate authority.

*

Default: $masterport

 

ca_server

 

The server to use for certificate authority requests. It is aseparate server because it cannot and does not need to horizontally scale.

*

Default: $server

ca_ttl ##证书有效时期单位

 

The default TTL for new certificates; valid values must be aninteger, o

ptionally followed by one of the units y (years of 365 days), d(days), h (hours), or s (seconds).

 The unit defaults to seconds. If this parameter is set,ca_days is ignored.

Examples are 3600 (one hour) and 1825d, which is the same as 5y(5 years)

*

Default: 5y

 

cacert

 

The CA certificate.

*

Default: $cadir/ca_crt.pem

 

cacrl

 

The certificate revocation list (CRL) for the CA. Set this tofalse if you do not want to use a CRL.

*

Default: $cadir/ca_crl.pem

 

cadir

 

The root directory for the certificate authority.

*

Default: $ssldir/ca

 

cakey

 

The CA private key.

*

Default: $cadir/ca_key.pem

 

capass

 

Where the CA stores the password for the private key

*

Default: $caprivatedir/ca.pass

 

caprivatedir

 

Where the CA stores private certificate information.

*

Default: $cadir/private ##客户端私钥保存的位置

 

capub

 

The CA public key.

*

Default: $cadir/ca_pub.pem

 

casesensitive

 

Whether matching in case statements and selectors should becase-sensitive.

Case insensitivity is handled by downcasing all values beforecomparison.

*

Default: false

 

cert_inventory

 

A Complete listing of all certificates

*

Default: $cadir/inventory.txt

 

certdir

 

The certificate directory.

*

Default: $ssldir/certs

 

certdnsnames

 

The DNS names on the Server certificate as a colon-separatedlist. If it is anything other than an empty string,

 it will be used as an alias in the created certificate. Bydefault, only the server gets an alias set up, and only for puppet.

certname

 

The name to use when handling certificates. Defaults to thefully qualified domain name.

*

Default: www.mysqlops.com

classfile

 

The file in which puppetd stores a list of the classesassociated with the retrieved configuration.

Can be loaded in the separate puppet executable using the--loadclasses option.

*

Default: $statedir/classes.txt

 

clientbucketdir

 

Where FileBucket files are stored locally.

*

Default: $vardir/clientbucket ##客户端FileBucket保存的路径

 

code

 

Code to parse directly. This is essentially only used by puppet,

and should only be set if you are writing your own Puppetexecutable

color

 

Whether to use colors when logging to the console. Valid valuesare ansi (equivalent to true ),

 html (mostly used during testing with TextMate), and false, which produces no color.

*

Default: ansi

 

confdir

 

The main Puppet configuration directory. The default for thisparameter is calculated based on the user.

If the process is runnig as root or the user that puppetmasterdis supposed to run as, it defaults to a system directory,

 but if it is running as any other user, it defaults tobeing in ~

*

Default: /etc/puppet

 

config

 

The configuration file for puppetdoc.

*

Default: $confdir/puppet.conf

 

configprint ##打印配置文件参数

 

Print the value of a specific configuration parameter. If aparameter is provided for this,

 then the value is printed and puppet exits. Comma-separatemultiple values. For a list of all values, specify all.

This feature is only available in Puppet versions higher than0.18.4.

configtimeout  ##客户端等待配置时间

 

How long the client should wait for the configuration to beretrieved before considering it a failure.

This can help reduce flapping if too many clients contact theserver at one time.

*

Default: 120

 

csrdir

 

Where the CA stores certificate requests

*

Default: $cadir/requests

daemonize ##默认在后台运行程序

 

Send the process into the background. This is the default.

*

Default: true

 

dbadapter ##使用何种数据库

 

The type of database to use.

*

Default: sqlite3

 

dblocation

 

The database cache for client configurations. Used for queryingwithin the language.

*

Default: $statedir/clientconfigs.sqlite3

 

dbmigrate

 

Whether to automatically migrate the database.

*

Default: false

 

dbname

 

The name of the database to use.

*

Default: puppet

 

dbpassword

 

The database password for Client caching. Only used whennetworked databases are used.

*

Default: puppet

 

dbserver

 

The database server for Client caching. Only used when networkeddatabases are used.

*

Default: localhost

 

dbsocket

 

The database socket location. Only used when networked databasesare used. Will be ignored if the value is an empty string.

dbuser

 

The database user for Client caching. Only used when networkeddatabases are used.

*

Default: puppet

diff

 

Which diff command to use when printing differences betweenfiles.

*

Default: diff

 

diff_args

 

Which arguments to pass to the diff command when printingdifferences between files.

downcasefacts

 

Whether facts should be made all lowercase when sent to theserver.

*

Default: false

 

dynamicfacts

 

Facts that are dynamic; these facts will be ignored whendeciding whether changed facts should result in a recompile.

 Multiple facts should be comma-separated.

*

Default: memorysize,memoryfree,swapsize,swapfree

 

environment ##puppet 运行环境

 

The environment Puppet is running in. For clients (e.g., puppetd) this determines the environment itself,

which is used to find modules and much more. For servers (i.e.,puppetmasterd ) this provides the default environment for

nodes we know nothing about.

*

Default: development

 

environments

 

The valid environments for Puppet clients. This is more usefulas a server-side setting than client,

 but any environment chosen must be in this list. Valuesshould be separated by a comma.

*

Default: production,development

 

evaltrace

 

Whether each resource should log when it is being evaluated.This allows you to interactively see exactly what is being done.

*

Default: false

 

external_nodes

 

An external command that can produce node information. Theoutput must be a YAML dump of a hash,

 and that hash must have one or both of classes andparameters , where classes is an array and parameters is a hash.

 For unknown nodes, the commands should exit with anon-zero exit code.

This command makes it straightforward to store your node mappinginformation in other data sources like databases.

*

Default: none

 

factdest

 

Where Puppet should store facts that it pulls down from thecentral server.

*

Default: $vardir/facts

 

factpath

 

Where Puppet should look for facts. Multiple directories shouldbe colon-separated, like normal PATH variables.

*

Default: $vardir/facts

 

factsignore

 

What files to ignore when pulling down facts.

*

Default: .svn CVS

 

factsource

 

From where to retrieve facts. The standard Puppet file type isused for retrieval,

so anything that is a valid file source can be used here.

*

Default: puppet://$server/facts

 

factsync

 

Whether facts should be synced with the central server.

*

Default: false

 

fileserverconfig

 

Where the fileserver configuration is stored.

*

Default: $confdir/fileserver.conf

 

filetimeout

 

The minimum time to wait (in seconds) between checking forupdates in configuration files.

This timeout determines how quickly Puppet checks whether a file(such as manifests or templates) has changed on disk.

*

Default: 15

 

genconfig

 

Whether to just print a configuration to stdout and exit. Onlymakes sense when used interactively.

 Takes into account arguments specified on the CLI.

*

Default: false

 

genmanifest

 

Whether to just print a manifest to stdout and exit. Only makessense when used interactively.

Takes into account arguments specified on the CLI.

*

Default: false

 

graph

 

Whether to create dot graph files for the differentconfiguration graphs.

These dot files can be interpreted by tools like OmniGraffle ordot (which is part of ImageMagick).

*

Default: false

 

graphdir

 

Where to store dot-outputted graphs.

*

Default: $statedir/graphs

 

group

 

The group puppetmasterd should run as.

*

Default: puppet

 

hostcert

 

Where individual hosts store and look for their certificates.

*

Default: $certdir/$certname.pem

 

hostcsr

 

Where individual hosts store and look for their certificates.

*

Default: $ssldir/csr_$certname.pem

 

hostprivkey

 

Where individual hosts store and look for their private key.

*

Default: $privatekeydir/$certname.pem

 

hostpubkey

 

Where individual hosts store and look for their public key.

*

Default: $publickeydir/$certname.pem

 

http_enable_post_connection_check

 

Boolean; wheter or not puppetd should validate the server SSLcertificate against the request hostname.

*

Default: true

 

http_proxy_host

 

The HTTP proxy host to use for outgoing connections. Note: Youmay need to use a FQDN for the server hostname when using a proxy.

*

Default: none

 

http_proxy_port

 

The HTTP proxy port to use for outgoing connections

*

Default: 3128

 

httplog

 

Where the puppetd web server logs.

*

Default: $logdir/http.log

 

ignorecache ##忽略缓存,总是重新编译配置

 

Ignore cache and always recompile the configuration. This isuseful for testing new configurations,

 where the local cache may in fact be stale even if thetimestamps are up to date - if the facts change or if the server changes.

*

Default: false

 

ignoreimport

 

A parameter that can be used in commit hooks,

since it enables you to parse-check a single file rather thanrequiring that all files exist.

*

Default: false

 

ignoreschedules

 

Boolean; whether puppetd should ignore schedules. This is usefulfor initial puppetd runs.

*

Default: false

 

keylength

 

The bit length of keys.

*

Default: 1024

 

ldapattrs

 

The LDAP attributes to include when querying LDAP for nodes.

 All returned attributes are set as variables in thetop-level scope.

Multiple values should be comma-separated. The value all returnsall attributes.

*

Default: all

 

ldapbase

 

The search base for LDAP searches. It is impossible to provide ameaningful default here,

although the LDAP libraries might have one already set. Generally,i

t should be the ou=Hosts branch under your main directory.

ldapclassattrs

 

The LDAP attributes to use to define Puppet classes. Valuesshould be comma-separated.

*

Default: puppetclass

 

ldapnodes

 

Whether to search for node configurations in LDAP.

 See http://reductivelabs.com/puppet/trac/wiki/LdapNodes/for more information.

*

Default: false

 

ldapparentattr

 

The attribute to use to define the parent node.

*

Default: parentnode

 

ldappassword

 

The password to use to connect to LDAP.

ldapport

 

The LDAP port. Only used if ldapnodes is enabled.

*

Default: 389

 

ldapserver

 

The LDAP server. Only used if ldapnodes is enabled.

*

Default: ldap

 

ldapssl

 

Whether SSL should be used when searching for nodes.

Defaults to false because SSL usually requires certificates tobe set up on the client side.

*

Default: false

 

ldapstring

 

The search string used to find an LDAP node.

*

Default: (&(objectclass=puppetClient)(cn=%s))

 

ldaptls

 

Whether TLS should be used when searching for nodes.

 Defaults to false because TLS usually requirescertificates to be set up on the client side.

*

Default: false

 

ldapuser

 

The user to use to connect to LDAP. Must be specified as a fullDN.

lexical

 

Whether to use lexical scoping (vs. dynamic).

*

Default: false

 

libdir

 

An extra search path for Puppet. This is only useful for thosefiles that

 Puppet will load on demand, and is only guaranteed to workfor those cases. In fact,

the autoload mechanism is responsible for making sure thisdirectory is in Ruby is search path

*

Default: $vardir/lib

listen ##是否监听连接,在使用pupptrun时候要配置

 

Whether puppetd should listen for connections. If this is true,

then by default only the runner server is started,

which allows remote authorized and authenticated nodes toconnect and trigger puppetd runs.

*

Default: false

 

localcacert

 

Where each client stores the CA certificate.

*

Default: $certdir/ca.pem

 

localconfig

 

Where puppetd caches the local configuration. An extensionindicating the cache format is added automatically.

*

Default: $statedir/localconfig

 

logdir ##puppet 的日志目录

 

The Puppet log directory.

*

Default: $vardir/log

 

manifest ##puppet的站点文件,在使用多个puppet环境时用

 

The entry-point manifest for puppetmasterd.

*

Default: $manifestdir/site.pp

 

manifestdir ##puppet 的站点文件目录

 

Where puppetmasterd looks for its manifests.

*

Default: $confdir/manifests

 

masterhttplog ##puppetmasterdweb服务器日志

 

Where the puppetmasterd web server logs.

*

Default: $logdir/masterhttp.log

 

masterlog ##puppetmasterd的日志

 

Where puppetmasterd logs. This is generally not used, sincesyslog is the default log destination.

*

Default: $logdir/puppetmaster.log

 

masterport ##puppetmaster的监听端口

 

Which port puppetmasterd listens on.

*

Default: 8140

 

maximum_uid ##支持最大的uid

 

The maximum allowed UID. Some platforms use negative UIDs

but then ship with tools that do not know how to handle signedints,

so the UIDs show up as huge numbers that can then not be fedback into the system.

 This is a hackish way to fail in a slightly more usefulway when that happens.

*

Default: 4294967290

 

mkusers ##创建puppet的运行用户

 

Whether to create the necessary user and group that puppetd willrun as.

*

Default: false

 

modulepath ##puppet 模块存放路径

 

The search path for modules as a colon-separated list ofdirectories.

*

Default: $confdir/modules:/usr/share/puppet/modules

name ##服务名

 

The name of the service, if we are running as one. The defaultis essentially $0 without the path or

*

Default: puppetdoc

 

node_name ##客户端节点名

 

How the puppetmaster determines the clients identity and setsthe hostname,

 fqdn and domain facts for use in the manifest, inparticular for determining which node statement applies to the client.

 Possible values are cert (use the subject is CN in theclient is certificate)

and facter (use the hostname that the client reported in itsfacts)

*

Default: cert

 

node_terminus ## 那里查找节点信息

 

Where to find information about nodes.

*

Default: plain

 

noop ##puppet是否要运行noop模式,noop模式其实就是调试模式,模拟执行结果,用要用于测试。

 

Whether puppetd should be run in noop mode.

*

Default: false

 

paramcheck

 

Whether to validate parameters during parsing.

*

Default: true

 

parseonly ## 检查mainfests的语法

 

Just check the syntax of the manifests.

*

Default: false

 

passfile

 

Where puppetd stores the password for its private key. Generallyunused.

*

Default: $privatedir/password

 

path

 

The shell search path. Defaults to whatever is inherited fromthe parent process.

*

Default: none

 

pidfile

 

The pid file

plugindest

 

Where Puppet should store plugins that it pulls down from thecentral server.

*

Default: $libdir

 

pluginpath ##插件路径

 

Where Puppet should look for plugins. Multiple directoriesshould be colon-separated,

like normal PATH variables. As of 0.23.1, this option isdeprecated;

download your custom libraries to the $libdir instead.

*

Default: $vardir/plugins

 

pluginsignore

 

What files to ignore when pulling down plugins.

*

Default: .svn CVS

 

pluginsource

 

From where to retrieve plugins. The standard Puppet file type isused for retrieval,

 so anything that is a valid file source can be used here.

*

Default: puppet://$server/plugins

pluginsync ##是否与puppetmaster同步插件

 

Whether plugins should be synced with the central server.

*

Default: false

 

privatedir

 

Where the client stores private certificate information.

*

Default: $ssldir/private

 

privatekeydir

 

The private key directory.

*

Default: $ssldir/private_keys

 

publickeydir

 

The public key directory.

*

Default: $ssldir/public_keys

 

puppetdlockfile ##临时停止puppet运行的文件

 

A lock file to temporarily stop puppetd from doing anything.

*

Default: $statedir/puppetdlock

 

puppetdlog ##puppet运行日志

 

The log file for puppetd. This is generally not used.

*

Default: $logdir/puppetd.log

 

puppetport

 

Which port puppetd listens on.

*

Default: 8139

 

rails_loglevel

 

The log level for Rails connections. The value must be a validlog level within Rails.

 Production environments normally use info and otherenvironments normally use debug

*

Default: info

 

railslog

 

Where Rails-specific logs are sent

*

Default: $logdir/rails.log

 

report ##每次运行puppet是否要发送报告。

 

Whether to send reports after every transaction.

*

Default: false

 

reportdir ##存放report的路径

 

The directory in which to store reports received from theclient. Each client gets a separate subdirectory.

*

Default: $vardir/reports

 

reportfrom ##发送report的邮件账号

 

The from email address for the reports.

*

Default: sky@ww.mysqlops.com

 

reports ##生成的report文件

 

The list of reports to generate. All reports are looked for inpuppet/reports/<name>.rb,

 and multiple report names should be comma-separated(whitespace is okay).

*

Default: store

 

reportserver ##reportserver主机

 

The server to which to send transaction reports.

*

Default: $server

 

req_bits

 

The bit length of the certificates.

*

Default: 2048

 

rrddir

 

The directory where RRD database files are stored.

 Directories for each reporting host will be created underthis directory.

*

Default: $vardir/rrd

 

rrdgraph

 

Whether RRD information should be graphed.

*

Default: false

 

rrdinterval

 

How often RRD should expect data. This should match how oftenthe hosts report back to the server.

*

Default: $runinterval

 

rundir

 

Where Puppet PID files are kept.

*

Default: $vardir/run

runinterval #客户端多长时间连接到puppetmaster,单位为秒,经常用同学说要修改puppet客户端的默认连接时间

 

How often puppetd applies the client configuration; in seconds.

*

Default: 1800

 

sendmail ##sendmail的二进制文件路径

 

Where to find the sendmail binary with which to send email.

serial

 

Where the serial number for certificates is stored.

*

Default: $cadir/serial

 

server

 

The server to which server puppetd should connect

*

Default: puppet

 

servertype

 

The type of server to use. Currently supported options arewebrick and mongrel.

 If you use mongrel, you will need a proxy in front of theprocess or processes,

 since Mongrel cannot speak SSL.

*

Default: webrick

 

show_diff

 

Whether to print a contextual diff when files are beingreplaced.

The diff is printed on stdout, so this option is meaninglessunless you are running Puppet interactively.

This feature currently requires the diff/lcs Ruby library.

*

Default: false

 

signeddir ##ssl证书存放路径。

 

Where the CA stores signed certificates.

*

Default: $cadir/signed

 

smtpserver ##smpt的服务器ip

 

The server through which to send email reports.

*

Default: none

 

splay

 

Whether to sleep for a pseudo-random (but consistent) amount oftime before a run.

*

Default: false

 

splaylimit

 

The maximum time to delay before runs. Defaults to being thesame as the run interval.

*

Default: $runinterval

 

ssl_client_header

 

The header containing an authenticated client is SSL DN. Onlyused with Mongrel.

 This header must be set by the proxy to the authenticatedclient is SSL DN

(e.g., /CN=puppet.reductivelabs.com ).

 See http://reductivelabs.com/puppet/trac/wiki/UsingMongrelfor more information.

*

Default: HTTP_X_CLIENT_DN

 

ssl_client_verify_header

 

The header containing the status message of the clientverification.

 Only used with Mongrel. This header must be set by theproxy to SUCCESS if the client successfully authenticated,

 and anything else otherwise. Seehttp://reductivelabs.com/puppet/trac/wiki/UsingMongrel for more information.

*

Default: HTTP_X_CLIENT_VERIFY

 

ssldir

 

Where SSL certificates are kept.

*

Default: $confdir/ssl

 

statedir

 

The directory where Puppet state is stored. Generally,

this directory can be removed without causing harm (although itmight result in spurious service restarts).

*

Default: $vardir/state

 

statefile

 

Where puppetd and puppetmasterd store state associated with therunning configuration.

In the case of puppetmasterd, this file reflects the statediscovered through interacting with clients.

*

Default: $statedir/state.yaml

 

storeconfigs ##是否保存每个客户端的配置,这个需要activeRecordrails支持

 

Whether to store each client is configuration. This requiresActiveRecord from Ruby on Rails.

*

Default: false

summarize ##打印概要信息

 

Whether to print a transaction summary.

*

Default: false

 

syslogfacility ##记录到系统日志级别

 

What syslog facility to use when logging to syslog. Syslog has afixed list of valid facilities,

 and you must choose one of those; you cannot just make oneup.

*

Default: daemon

 

tagmap

 

The mapping between reporting tags and email addresses.

*

Default: $confdir/tagmail.conf

 

tags ##资源的tag标签

 

Tags to use to find resources. If this is set, then onlyresources tagged

 with the specified tags will be applied. Values must becomma-separated.

templatedir

 

Where Puppet looks for template files.

*

Default: $vardir/templates

 

trace ##打印跟踪调试信息

 

Whether to print stack traces on some errors

*

Default: false

 

typecheck

 

Whether to validate types during parsing.

*

Default: true

 

usecacheonfailure

 

Whether to use the cached configuration when the remoteconfiguration will not compile.

 This option is useful for testing new configurations,where you want to fix the broken

 configuration rather than reverting to a known-good one.

*

Default: true

 

user

 

The user puppetmasterd should run as.

*

Default: puppet

 

vardir

 

Where Puppet stores dynamic and growing data.

The default for this parameter is calculated specially, likeconfdir.

*

Default: /var/puppet

 

yamldir

 

The directory in which YAML data is stored, usually in asubdirectory.

*

Default: $vardir/yaml

【总结】

虽然说sky经常使用puppet。但还真的不清楚puppet配置文件有这么多的参数, 大部分的英文还是比较简单,部分常用的

参数加粗了,并加以说明。相信大家都会看明白的。因为比较忙简单先翻译了部分参数,如有同学要兴趣可以全文翻译下。

puppet在使用过程中问题会随之不断的深入而出现,大家如有问题,可以先问google,大家也可以加入skypuppet中文

自动化群(179750784)一起交流运维自动化以及puppet的应用。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值