请帮我从 github 配置自定义 puppet 模块。模块在主节点中被正确拉出,但在代理节点上根本没有被识别。
木偶文件
mod "puppet-lamp",
:git => "https://github.com/blablabla/puppet_lamp.git",
:ref => "659fe4056060426d3a1449sdfgbc290571f5714f"
环境.conf
modulepath = modules:$basemodulepath
r10k 正确地从 github 拉取模块
.
└── production
├── environment.conf
├── modules
│ └── lamp
│ └── manifests
│ ├── apache.pp
│ └── test.pp
└── Puppetfile
4 directories, 4 files
apache.pp
class apache {
package { 'httpd':
ensure => installed,
}
service { 'httpd':
enable => true,
ensure => 'running'
}
}
网站.pp
include apache
但是当我运行代理时,什么都没有应用!
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Applying configuration version '1549348460'
Notice: Applied catalog in 0.01 seconds
尝试使用节点定义,没有变化......
node 'default' {
include 'apache'
}
在这里使用最新的木偶
[root@puppetmaster environments]# puppetserver --version
puppetserver version: 6.2.0
[root@node01 ~]# puppet -V
6.2.0
有人可以告诉我我做错了什么吗?提前致谢!