Puppet: stdlib installed but not available in namespace?

as a puppet newbie, I have a problem including the stdlib plugin

I would like to use stdlib file_line, so I am trying to include stdlib and call it

class service_mon
{
  include stdlib
  file_line 
  {
    "${name}_services": path=> ...
  }
}

However, I get an error stdlib not found

err: Failed to get the directory from the remote server: Error 400 on SERVER: Could not find the stdlib class for my.node.name in /etc/puppet/workspace/dev/src/modules/mymanifest/manifests/deploy.pp:87 on node my.node.name

which makes me wonder, since stdlib needs to be installed (?) ... or?

puppet module install puppetlabs-stdli

puppet module list
/etc/puppet/modules
└── puppetlabs-stdlib (v4.2.2)
/usr/share/puppet/modules (no modules installed)

puppet config print modulepath
/etc/puppet/modules:/usr/share/puppet/modules

So, I suppose that in principle all the necessary files are "there", but how can I convince Puppet to turn on stdlib?

Greetings and thanks for the tips, Thomas

+4
1

Puppet java- - include stdlib , class stdlib, - , .

. Puppet do , , stdlib .

stdlib, . , Puppet,

  • $modulepath
  • pluginsync

file_line - .

+3

Source: https://habr.com/ru/post/1546137/


All Articles