Puppet 找不到木偶大师的印度班
我创建了一个名为bharath的模块,如下所示Puppet 找不到木偶大师的印度班,puppet,puppet-enterprise,Puppet,Puppet Enterprise,我创建了一个名为bharath的模块,如下所示 $ pwd >> /etc/puppetlabs/puppet/modules $ ls -lrth >> total 8.0K >> drwxr-xr-x 6 root root 4.0K Apr 18 08:01 motd >> drwxr-xr-x 6 root root 4.0K Apr 18 13:09 bharath $ cd bharath/ $ ls -lrt >
$ pwd
>> /etc/puppetlabs/puppet/modules
$ ls -lrth
>> total 8.0K
>> drwxr-xr-x 6 root root 4.0K Apr 18 08:01 motd
>> drwxr-xr-x 6 root root 4.0K Apr 18 13:09 bharath
$ cd bharath/
$ ls -lrt
>> total 16
>> drwxr-xr-x 2 root root 4096 Apr 18 12:59 templates
>> drwxr-xr-x 2 root root 4096 Apr 18 13:10 files
>> drwxr-xr-x 2 root root 4096 Apr 18 13:15 manifests
>> drwxr-xr-x 2 root root 4096 Apr 18 13:16 tests h
$ cat manifests/init.pp files/india1 tests/init.pp
class india {
file { '/root/india1':
ensure => 'file',
source => 'puppet:///modules/bharath/india1',
}
}
india is grat country --> files/india1 content
include india --> tests/init.pp content
但我仍然得到如下错误..尽管我在stie.pp节点分类指令中也添加了类india
$ cd tests
$ puppet apply --noop init.pp
>> Error: Could not find class india for uppetmaster.bharathkumarraju.com on node uppetmaster.bharathkumarraju.com
>> Error: Could not find class india for uppetmaster.bharathkumarraju.com on node puppetmaster.bharathkumarraju.com
使用
puppet apply
时,需要在命令行上设置modulepath
$ puppet apply --modulepath /path/to/modules --noop init.pp
正如@FelixFrank所说的,你应该重新格式化你的问题,让它更清楚你在问什么,以及更好地阅读你正在cat
”的文件
希望这有帮助现在还不清楚发生了什么。您使用多个文件名参数粘贴了
cat
的输出。然后,您显然向输出中添加了注释。这两件事都不要做!