maehachi08 Anything Blog

2012年07月02日
Puppet独自の定義情報

puppetで使われる内部変数

puppetって、puppet.confとかで$serverとか$manifestdirとか使われています。

これどこ指してんねん!!

って思ったりしてたんですけど、以下コマンドで確認出来ることを知り、テンションアゲアゲになったので、メモします。

⇒ puppetmasterで使用する定義情報
# puppet master --genconfig

⇒ puppet agentで使用する定義情報
# puppet agent --genconfig

コメントとか空白行省くと以下のようになる。

# puppet master --genconfig | grep -v "^$" | grep -v ".#" | grep -v "^#"
[master]
    railslog = /var/log/puppet/rails.log
    dblocation = /var/lib/puppet/state/clientconfigs.sqlite3
    splaylimit = 1800
    classfile = /var/lib/puppet/state/classes.txt
    report_port = 8140
    lastrunfile = /var/lib/puppet/state/last_run_summary.yaml
    graphdir = /var/lib/puppet/state/graphs
    clientyamldir = /var/lib/puppet/client_yaml
    puppetdlog = /var/log/puppet/puppetd.log
    reportserver = puppet
    inventory_server = puppet
    ca_server = puppet
    lastrunreport = /var/lib/puppet/state/last_run_report.yaml
    localconfig = /var/lib/puppet/state/localconfig
    client_datadir = /var/lib/puppet/client_data
    clientbucketdir = /var/lib/puppet/clientbucket
    report_server = puppet
    inventory_port = 8140
    ca_port = 8140
    puppetdlockfile = /var/lib/puppet/state/puppetdlock
    node_name_value = manage000.heteml.pblan
    statefile = /var/lib/puppet/state/state.yaml
    server_datadir = /var/lib/puppet/server_data
    pidfile = /var/run/puppet/master.pid
    manifestdir = /var/lib/puppet/data/manifests
    masterhttplog = /var/log/puppet/masterhttp.log
    bucketdir = /var/lib/puppet/bucket
    fileserverconfig = /etc/puppet/fileserver.conf
    config = /etc/puppet/puppet.conf
    manifest = /var/lib/puppet/data/manifests/site.pp
    rest_authconfig = /etc/puppet/auth.conf
    yamldir = /var/lib/puppet/yaml
    reportdir = /var/lib/puppet/reports
    masterlog = /var/log/puppet/puppetmaster.log
    modulepath = /var/lib/puppet/data/modules
    requestdir = /var/lib/puppet/ssl/certificate_requests
    factpath = /var/lib/puppet/lib/facter:/var/lib/puppet/facts
    passfile = /var/lib/puppet/ssl/private/password
    hostprivkey = /var/lib/puppet/ssl/private_keys/manage000.heteml.pblan.pem
    authconfig = /etc/puppet/namespaceauth.conf
    hostcrl = /var/lib/puppet/ssl/crl.pem
    certname = manage000.heteml.pblan
    ssldir = /var/lib/puppet/ssl
    privatekeydir = /var/lib/puppet/ssl/private_keys
    factdest = /var/lib/puppet/facts/
    hostcsr = /var/lib/puppet/ssl/csr_manage000.heteml.pblan.pem
    hostpubkey = /var/lib/puppet/ssl/public_keys/manage000.heteml.pblan.pem
    libdir = /var/lib/puppet/lib
    rundir = /var/run/puppet
    plugindest = /var/lib/puppet/lib
    inventory_terminus = yaml
    publickeydir = /var/lib/puppet/ssl/public_keys
    privatedir = /var/lib/puppet/ssl/private
    factsource = puppet://puppet/facts/
    statedir = /var/lib/puppet/state
    hostcert = /var/lib/puppet/ssl/certs/manage000.heteml.pblan.pem
    localcacert = /var/lib/puppet/ssl/certs/ca.pem
    logdir = /var/log/puppet
    certdir = /var/lib/puppet/ssl/certs
    pluginsource = puppet://puppet/plugins
    httplog = /var/log/puppet/http.log
    capass = /var/lib/puppet/ssl/ca/private/ca.pass
    cadir = /var/lib/puppet/ssl/ca
    capub = /var/lib/puppet/ssl/ca/ca_pub.pem
    csrdir = /var/lib/puppet/ssl/ca/requests
    serial = /var/lib/puppet/ssl/ca/serial
    cacert = /var/lib/puppet/ssl/ca/ca_crt.pem
    cacrl = /var/lib/puppet/ssl/ca/ca_crl.pem
    signeddir = /var/lib/puppet/ssl/ca/signed
    autosign = /etc/puppet/autosign.conf
    cert_inventory = /var/lib/puppet/ssl/ca/inventory.txt
    ca_name = Puppet CA: manage000.heteml.pblan
    cakey = /var/lib/puppet/ssl/ca/ca_key.pem
    caprivatedir = /var/lib/puppet/ssl/ca/private
    tagmap = /etc/puppet/tagmail.conf
    rrddir = /var/lib/puppet/rrd
    rrdinterval = 1800
    archive_file_server = puppet
    templatedir = /var/lib/puppet/data/templates


# puppet agent --genconfig | grep -v "^$" | grep -v ".#" | grep -v "^#"
[agent]
    localconfig = /var/lib/puppet/state/localconfig
    clientbucketdir = /var/lib/puppet/clientbucket
    client_datadir = /var/lib/puppet/client_data
    report_server = puppet
    inventory_port = 8140
    ca_port = 8140
    puppetdlockfile = /var/lib/puppet/state/puppetdlock
    pidfile = /var/run/puppet/agent.pid
    node_name_value = manage000.heteml.pblan
    splaylimit = 1800
    statefile = /var/lib/puppet/state/state.yaml
    config = /etc/puppet/puppet.conf
    classfile = /var/lib/puppet/state/classes.txt
    report_port = 8140
    lastrunfile = /var/lib/puppet/state/last_run_summary.yaml
    graphdir = /var/lib/puppet/state/graphs
    clientyamldir = /var/lib/puppet/client_yaml
    reportserver = puppet
    puppetdlog = /var/log/puppet/puppetd.log
    inventory_server = puppet
    ca_server = puppet
    lastrunreport = /var/lib/puppet/state/last_run_report.yaml
    rest_authconfig = /etc/puppet/auth.conf
    masterlog = /var/log/puppet/puppetmaster.log
    modulepath = /etc/puppet/modules:/usr/share/puppet/modules
    server_datadir = /var/lib/puppet/server_data
    manifestdir = /etc/puppet/manifests
    masterhttplog = /var/log/puppet/masterhttp.log
    fileserverconfig = /etc/puppet/fileserver.conf
    manifest = /etc/puppet/manifests/site.pp
    bucketdir = /var/lib/puppet/bucket
    yamldir = /var/lib/puppet/yaml
    reportdir = /var/lib/puppet/reports
    ca_name = Puppet CA: manage000.heteml.pblan
    cakey = /var/lib/puppet/ssl/ca/ca_key.pem
    caprivatedir = /var/lib/puppet/ssl/ca/private
    capass = /var/lib/puppet/ssl/ca/private/ca.pass
    cadir = /var/lib/puppet/ssl/ca
    capub = /var/lib/puppet/ssl/ca/ca_pub.pem
    csrdir = /var/lib/puppet/ssl/ca/requests
    serial = /var/lib/puppet/ssl/ca/serial
    cacert = /var/lib/puppet/ssl/ca/ca_crt.pem
    cacrl = /var/lib/puppet/ssl/ca/ca_crl.pem
    signeddir = /var/lib/puppet/ssl/ca/signed
    autosign = /etc/puppet/autosign.conf
    cert_inventory = /var/lib/puppet/ssl/ca/inventory.txt
    statedir = /var/lib/puppet/state
    plugindest = /var/lib/puppet/lib
    ssldir = /var/lib/puppet/ssl
    inventory_terminus = facter
    privatekeydir = /var/lib/puppet/ssl/private_keys
    factsource = puppet://puppet/facts/
    hostcsr = /var/lib/puppet/ssl/csr_manage000.heteml.pblan.pem
    hostpubkey = /var/lib/puppet/ssl/public_keys/manage000.heteml.pblan.pem
    rundir = /var/run/puppet
    libdir = /var/lib/puppet/lib
    pluginsource = puppet://puppet/plugins
    publickeydir = /var/lib/puppet/ssl/public_keys
    factpath = /var/lib/puppet/lib/facter:/var/lib/puppet/facts
    httplog = /var/log/puppet/http.log
    privatedir = /var/lib/puppet/ssl/private
    hostcert = /var/lib/puppet/ssl/certs/manage000.heteml.pblan.pem
    logdir = /var/log/puppet
    localcacert = /var/lib/puppet/ssl/certs/ca.pem
    certname = manage000.heteml.pblan
    authconfig = /etc/puppet/namespaceauth.conf
    certdir = /var/lib/puppet/ssl/certs
    requestdir = /var/lib/puppet/ssl/certificate_requests
    factdest = /var/lib/puppet/facts/
    passfile = /var/lib/puppet/ssl/private/password
    hostprivkey = /var/lib/puppet/ssl/private_keys/manage000.heteml.pblan.pem
    hostcrl = /var/lib/puppet/ssl/crl.pem
    dblocation = /var/lib/puppet/state/clientconfigs.sqlite3
    railslog = /var/log/puppet/rails.log
    rrdinterval = 1800
    rrddir = /var/lib/puppet/rrd
    templatedir = /var/lib/puppet/templates
    tagmap = /etc/puppet/tagmail.conf
    archive_file_server = puppet