Error Could not find class git config for xxxx on node xxxx

0 votes

When I run puppet apply, puppet does not find the git::config class:

sudo puppet apply --modulepath=/etc/puppet/modules /etc/puppet/manifests/site.pp

config file :

define git::config{

git module :

class git {
    include git::install
    include git::config
class git::install{
    package {'git': => present }

I am importing the git module via nodes.pp:

node default {
include git

site.pp imports nodes.pp as shown below:

import 'nodes.pp'

How do i resolve this?

Jul 31, 2019 in Puppet by anonymous

1 answer to this question.

0 votes

You should note that you cannot call include on git::config.

git::config is a defined type and not a class and so you can't include it.

You could use a defined type as:

git::config { 'the_name_var':
  param1 => 'A',
  param2 => 'B'
answered Jul 31, 2019 by Sirajul
• 59,070 points

Related Questions In Puppet

0 votes
1 answer

Error: Could not find init script for 'puppet' - Puppet error

You need to be running your processes ...READ MORE

answered Mar 12, 2019 in Puppet by Haider
0 votes
1 answer

Error: Could not find declared class firewall at /etc/puppetlabs/code/environments/production/manifests/site.pp

The modules that you install on master need ...READ MORE

answered Aug 5, 2019 in Puppet by Sirajul
• 59,070 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer