错误:未能应用目录:无法在PUPPET中找到类[Zeo::Install]的依赖类[Zeo]。

时间:2021-08-21 18:36:37

I was trying to install zeo service from puppet master in windows agent and I got the following error:

我试图在windows代理中从puppet master安装zeo服务,我得到了以下错误:

Error: Failed to apply catalog: Could not find dependency Class[Zeo] for Class[Z eo::Install] in PUPPET

错误:未能应用目录:无法在PUPPET中找到类[Zeo::Install]的依赖类[Zeo]。

I have module called zeo and its manifests init.pp and make.pp and install.pp

我有一个叫zeo的模块,它的显示init。并使页。页和install.pp

But Its failing to reach init.pp and class zeo

但是它没有到达init。页和类zeo

# make.pp
class zeo::make {

  notify{" make.pp client mass section zope/init.pp": }
  require zeo
  #....
  #....
  #....
}


# install.pp
class zeo::install {

  notify{"client mass section zope/init.pp ${title}": }

  require zeo::make
  #....
  #....
  #....

}

# init.pp
class zeo {

  require prerequisite::install
  #....
  #....
  #....
}

Please help me to resolve this

请帮我解决这个问题。

2 个解决方案

#1


1  

Please debug as:

请调试:

1) Checkout your module path i.e : puppet config print modulepath 2) Module name i.e zeo should be same as your class name as it is case sensitive.In refrence to your class name i.e "zeo" and module name is "Zeo" (as appeared in error message) . 3) Comment out this line "require prerequisite::install" as we don't know whether prerequisite::install class exists or not.

1)检查模块路径i。e: puppet config print modulepath 2)模块名i。e zeo应该和你的类名一样,因为它是区分大小写的。对你的类名我。“zeo”和模块名称是“zeo”(出现在错误消息中)。3)注释这一行“需要先决条件::安装”,因为我们不知道前提::安装类是否存在。

#2


0  

You did not show where you are calling zeo::install.

您没有显示您在哪里调用zeo::install。

So 2 options :

所以2选项:

  • make sure you do not mean require zeo::install instead of require prerequisite::install
  • 确保您不需要zeo::安装,而不是要求先决条件::安装。
  • Make sure the directories are :
  • 确保目录是:
 modules
    |_ zeo
        |- manifests
             |- init.pp
             |- make.pp
             |- install.pp
    |_ prerequiste
        |- manifests
             |- init.pp
             |- install.pp

#1


1  

Please debug as:

请调试:

1) Checkout your module path i.e : puppet config print modulepath 2) Module name i.e zeo should be same as your class name as it is case sensitive.In refrence to your class name i.e "zeo" and module name is "Zeo" (as appeared in error message) . 3) Comment out this line "require prerequisite::install" as we don't know whether prerequisite::install class exists or not.

1)检查模块路径i。e: puppet config print modulepath 2)模块名i。e zeo应该和你的类名一样,因为它是区分大小写的。对你的类名我。“zeo”和模块名称是“zeo”(出现在错误消息中)。3)注释这一行“需要先决条件::安装”,因为我们不知道前提::安装类是否存在。

#2


0  

You did not show where you are calling zeo::install.

您没有显示您在哪里调用zeo::install。

So 2 options :

所以2选项:

  • make sure you do not mean require zeo::install instead of require prerequisite::install
  • 确保您不需要zeo::安装,而不是要求先决条件::安装。
  • Make sure the directories are :
  • 确保目录是:
 modules
    |_ zeo
        |- manifests
             |- init.pp
             |- make.pp
             |- install.pp
    |_ prerequiste
        |- manifests
             |- init.pp
             |- install.pp