[英]How to Use stankevich-python puppet module?
我正在编写一个木偶清单文件,以通过pip install安装python库。
此python模块安装在服务器上,链接如下所示https://forge.puppetlabs.com/stankevich/python
我已经通过安装模块
puppet module install stankevich-python
这是我在sites.pp中创建的清单文件
class { 'python' :
version => 'system',
pip => 'present'
}
python::pip { 'reportlab' :
pkgname => 'reportlab',
ensure => latest,
}
我的代理程式上的错误指出找不到python资源
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class python at /etc/puppetlabs/code/environments/production/manifests/site.pp:6:1 on node dev1","issue_kind":"RUNTIME_ERROR","stacktrace":["Warning: The 'stacktrace' property is deprecated and will be removed in a future version of Puppet. For security reasons, stacktraces are not returned with Puppet HTTP Error responses."]}
但是,我已经确认我的模块在那里
$ puppet module list
/home/ubuntu/.puppetlabs/etc/code/modules
├── puppetlabs-stdlib (v4.16.0)
├── stahnma-epel (v1.2.2)
└── stankevich-python (v1.18.2)
任何建议表示赞赏。 谢谢。
我的错。 我要跑步
puppet module install stankevich-python
根,我没有。 这样做之后就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.