Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
PUP 3.4.3
-
None
-
Version of puppet : 3.4.3
The modules available in the modulepath on client is
lakshmi@sys-server:~$ sudo puppet module list
/etc/puppet/modules
âââ puppetlabs-concat (v1.1.2)
âââ puppetlabs-stdlib (v4.5.1)Module path :
lakshmi@sys-server:~$ sudo puppet config print modulepath
/etc/puppet/modulesInstallation of module done as per the steps in https://forge.puppetlabs.com/puppetlabs/stdlib
Version of puppet : 3.4.3 The modules available in the modulepath on client is lakshmi@sys-server:~$ sudo puppet module list /etc/puppet/modules âââ puppetlabs-concat (v1.1.2) âââ puppetlabs-stdlib (v4.5.1) Module path : lakshmi@sys-server:~$ sudo puppet config print modulepath /etc/puppet/modules Installation of module done as per the steps in https://forge.puppetlabs.com/puppetlabs/stdlib
Description
Resource(file_line) which is available in Class(StdLib) is not accessible after installation of the class in modulepath /etc/puppet/modules
Usage of the resource(file_line) done in a class ( profilechange1) is as below
class postgresql::profilechange1{ |
file_line{'Path updation': |
path => '/etc/profile', |
ensure => present, |
line => 'PATH=$PATH:/usr/local/pgsql/bin\n', |
}
|
}
|
Error encountered
--------------------------
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class stdlib for sys-server on node sys-server
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
The class stdlib although available under /etc/puppet/modules
is not accessible from a local class
Could find a similar issue reported in the older puppet issue list in redmine
https://projects.puppetlabs.com/issues/16568
As per it, restart of server and client was suggested, which was also tried
with no favourable results.