为puppet添加新的模块时出错“

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Could not match 'import' at /etc/puppet/modules/nrpe/manifests/init.pp:2

错误原因:格式错误 因为模块在windows编写,上传Linux导致格式错误

解决办法:

[root@puppet manifests]$ dos2unix manager.pp

dos2unix: converting file manager.pp to UNIX format ...