Ask Your Question
0

Why are modules in basemodule path being ignored?

asked 2015-07-10 17:00:12 -0500

Jeffroeq gravatar image

updated 2015-07-11 14:38:24 -0500

domcleal gravatar image

I currently have two environments configured, but I also want all environments to use modules in the basemodule path (/etc/puppet/modules). However, it seems as though none of my nodes are able to use them, or are ignoring the path all together.

puppet master puppet.conf:

[main]

    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet
    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet
    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl
    runinterval = 1h
    server = puppet.domain.com
    environment = infrastructure
[master]

    dns_alt_names = puppet,puppet.domain.com,puppetmaster,puppetmaster.domain.com
    environment_timeout = unlimited
    always_cache_features = true
    autosign = true
    environmentpath = $confdir/environments
    basemodulepath = $confdir/modules:/usr/share/puppet/modules
[agent]

    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/classes.txt
    # Where puppetd caches the local configuration.  An
    # extension indicating the cache format is added automatically.
    # The default value is '$confdir/localconfig'.
    localconfig = $vardir/localconfig

Node puppet.conf:

[main]

    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet
    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet
    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl
    runinterval = 1h 
    server = puppet.domain.com
    environment = lab
[agent]

    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/classes.txt
    # Where puppetd caches the local configuration.  An
    # extension indicating the cache format is added automatically.
    # The default value is '$confdir/localconfig'.
    localconfig = $vardir/localconfig**

Node basemodulepath:

[root@ep1t-rhel7a1 ~]# puppet config print basemodulepath
/etc/puppet/modules:/usr/share/puppet/modules

Master basemodulepath:

[root@ep1p-apux06 ~]# puppet config print basemodulepath
/etc/puppet/modules:/usr/share/puppet/modules
[root@ep1p-apux06 ~]# puppet master --configprint basemodulepath
/etc/puppet/modules:/usr/share/puppet/modules

What might I be missing?

edit retag flag offensive close merge delete

Comments

What version of Puppet are you using?

GregLarkin gravatar imageGregLarkin ( 2015-08-31 16:57:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-12 11:19:00 -0500

mat1010 gravatar image

updated 2015-08-28 14:17:42 -0500

Mhh looks like your config is ok.

What's the output of puppet module list on the master? Have you restarted the puppetmaster service after installing the modules?

EDIT

I was able to reproduce your issue - it seems to not pickup you change since the basemodulepath must be defined within the [main] section instead of the [master] section

edit flag offensive delete link more

Comments

Yeah, I've restarted the service and have actually rebooted since installing the modules. [root@ep1p-apux06 ~]# puppet module list /etc/puppet/modules ntp (???) users (???) /usr/share/puppet/modules ntp (???) users (???

Jeffroeq gravatar imageJeffroeq ( 2015-07-13 10:03:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-07-10 17:00:12 -0500

Seen: 221 times

Last updated: Aug 28 '15