簡體   English   中英

如何使用stankevich-python puppet模塊?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM