我希望通过Vagrant 1.9.5部署CentOS 7 VirtualBox VM,我想运行一些本地部署的木偶模块。
在我的Vagrantfile下面:
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "test01.virtual"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules/"
puppet.options = ['--verbose']
end
end
和./puppet/manifests下的default.pp文件:
Package { allow_virtual => true }
include mycode-dummy
Puppet模块似乎没问题:
$ grep class puppet/modules/mycode-dummy/manifests/init.pp
class dummy($path = '/tmp/dummy',
当我运行vagrant时,我收到以下错误消息:
....
==> default: Info: Loading facts
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
它也发生在其他模块和其他流浪盒中 我没有抓到错了......
BR
FLEX
答案 0 :(得分:0)
你没有调用虚拟类,你包含一个模块,但不要从这个模块调用任何东西。
在`from mailparser import MailParser
parser = MailParser()
parser.parse_from_file(f)
parser.parse_from_string(raw_mail)
parser.body
parser.headers
parser.message_id
parser.to_
parser.from_
parser.subject
parser.text_plain_list: only text plain mail parts in a list
parser.attachments_list: list of all attachments
parser.date_mail
parser.parsed_mail_obj: tokenized mail in a object
parser.parsed_mail_json: tokenized mail in a JSON
parser.defects: defect RFC not compliance
parser.defects_category: only defects categories
parser.has_defects
parser.anomalies
parser.has_anomalies
parser.get_server_ipaddress(trust="my_server_mail_trust")`
中,你需要有类似
default.pp