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 :

#/etc/puppet/modules/git/manifests/config.pp
define git::config{
   //------------
}

git module :

#/etc/puppet/modules/git/manifests/init.pp
class git {
    include git::install
    include git::config
}
class git::install{
    package {'git': => present }
}

I am importing the git module via nodes.pp:

#/etc/puppet/manifests/nodes.pp
node default {
}
include git

site.pp imports nodes.pp as shown below:

#/etc/puppet/manifests/site.pp
import 'nodes.pp'

How do i resolve this?

Jul 31 in Puppet by anonymous
61 views

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 by Sirajul
• 31,180 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 in Puppet by Haider
164 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
181 views
0 votes
1 answer
0 votes
1 answer