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, 2019 in Puppet by anonymous
730 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, 2019 by Sirajul
• 59,230 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
2,057 views
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,230 points
1,827 views
+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
3,460 views
+2 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP