puppet生成html文档:
puppet doc --all --outputdir /tmp/rdoc --mode rdoc --manifestdir /etc/puppet/manifests
生成依赖图:
yum install -y graphviz graphviz-gd
node 'huangat-test' {
include test
include linuxbaseinstall
include linuxoptimize
include linuxjdktomcat::tomcat8036
include linuxclean::yumclean
include linuxpercona::perconaxtradbcluster57rpm
include linuxnginx::nginx1102
}
node 'api2' {
include linuxbaseinstall
include linuxoptimize
include linuxjdktomcat::tomcat8516
include linuxpercona::perconaserver57rpm
include linuxnginx::openresty1136
}