puppet (五) master-agent模型

首先我们这里做俩个虚拟机,node1.ma.com 和node2.ma.com,写一下/etc/hosts,这样就不做dns解析了,然后创建一个master实例(master端):

这是puppet master常用参数

puppet-master(8) -- The puppet master daemon
========

SYNOPSIS
--------
The central puppet server. Functions as a certificate authority by
default.


USAGE
-----
puppet master [-D|--daemonize|--no-daemonize] [-d|--debug] [-h|--help]
  [-l|--logdest syslog|<FILE>|console] [-v|--verbose] [-V|--version]
  [--compile <NODE-NAME>]


DESCRIPTION
-----------
这个命令启动puppet master的一个实例,作为守护进程运行

使用ruby内置的webrick webserver。puppet也可以

由其他应用服务器管理;如果是这样,则

未使用可执行文件。


OPTIONS

* --daemonize:
将进程发送到后台。这是默认设置。

(这是一个puppet设置,可以在puppet.conf中进行。

命令行上布尔设置的前缀。)



* --no-daemonize:
  不要将进程发送到后台。

(这是一个puppet设置,可以在puppet.conf中进行。

命令行上布尔设置的前缀。)

* --debug:
启用完全调试。

* --help:
  Print this help message.

* --logdest:
  Where to send log messages. Choose between 'syslog' (the POSIX syslog
  service), 'console', or the path to a log file. If debugging or verbosity is
  enabled, this defaults to 'console'. Otherwise, it defaults to 'syslog'.

  A path ending with '.json' will receive structured output in JSON format. The
  log file will not have an ending ']' automatically written to it due to the
  appending nature of logging. It must be appended manually to make the content
  valid JSON.

* --masterport:
监听流量的端口。

(这是一个puppet设置,可以在puppet.conf中进行。)



* --verbose:
启用详细信息。

* --version:
  Print the puppet version number and exit.

* --compile:
编译一个目录并从puppet master以json格式输出。使用

包含在$vardir/yaml/目录中以编译目录的事实。




EXAMPLE
-------
  puppet master
View Code

View Code

猜你喜欢

转载自www.cnblogs.com/abels0025/p/11469584.html
今日推荐