Puppet basemodules alone not imported

Hi,

My environment classes are imported properly, but i have configured
basemodulepath. But basemodulepath alone not imported in foreman. Please
suggest any solution for it.
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
ca_server=puppet-ca-sv4

environmentpath = $confdir/environments
  • basemodulepath = /etc/puppet/modules*

/etc/puppet/environments/production/environment.conf
modulepath = modules:$basemodulepath
manifest = manifests/site.pp

Regards,
Suresh

Hi,

Here is the reply

/etc/puppet# puppet master --configprint modulepath --environment
production
/etc/puppet/environments/production/modules:/etc/puppet/modules

Regards,
Suresh

··· On Tuesday, 14 October 2014 21:59:06 UTC+5:30, Suresh P wrote: > > Hi, > > My environment classes are imported properly, but i have configured > basemodulepath. But basemodulepath alone not imported in foreman. Please > suggest any solution for it. > 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 > ca_server=puppet-ca-sv4 > > environmentpath = $confdir/environments > * basemodulepath = /etc/puppet/modules* > > /etc/puppet/environments/production/environment.conf > modulepath = modules:*$basemodulepath* > manifest = manifests/site.pp > > Regards, > Suresh > >

Can you provide the output from:

puppet master --configprint modulepath --environment production

Using directory environments, we rely entirely on Puppet's
configuration, so if it thinks /etc/puppet/modules is in the module path
then it should pick this up.

··· On 14/10/14 17:29, Suresh P wrote: > Hi, > > My environment classes are imported properly, but i have configured > basemodulepath. But basemodulepath alone not imported in foreman. > Please suggest any solution for it. > 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 > ca_server=puppet-ca-sv4 > > environmentpath = $confdir/environments > * basemodulepath = /etc/puppet/modules* > > /etc/puppet/environments/production/environment.conf > modulepath = modules:*$basemodulepath* > manifest = manifests/site.pp


Dominic Cleal
Red Hat Engineering

Looks okay, can you paste what's in /etc/puppet/modules?

Maybe also try this to check the Puppet master's reporting the same
paths for the production environment:

curl -k --cert /var/lib/puppet/ssl/certs/$(hostname -f).pem --key
/var/lib/puppet/ssl/private_keys/$(hostname -f).pem https://$(hostname
-f):8140/v2.0/environments

··· -- Dominic Cleal Red Hat Engineering

On 16/10/14 10:41, Suresh P wrote:

Hi,

Here is the reply

/etc/puppet# puppet master --configprint modulepath --environment
production
/etc/puppet/environments/production/modules:/etc/puppet/modules

Regards,
Suresh

On Tuesday, 14 October 2014 21:59:06 UTC+5:30, Suresh P wrote:

Hi,

My environment classes are imported properly,  but i have configured
basemodulepath.  But basemodulepath alone not imported in foreman. 
Please suggest any solution for it.
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
    ca_server=puppet-ca-sv4

    environmentpath = $confdir/environments
*    basemodulepath = /etc/puppet/modules*

/etc/puppet/environments/production/environment.conf
modulepath = modules:*$basemodulepath*
manifest = manifests/site.pp

Regards,
Suresh


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

I have changed my basemodule directory to /home/sas/puppet/modules and
following 2 modules present in basemodulepath.

/home/sas/puppet/modules#ls -l
total 8
drwxr-xr-x 4 root root 4096 Oct 14 09:54 kvmhosts
drwxr-xr-x 3 root root 4096 Oct 16 07:11 test

/home/sas/puppet/modules#curl -k --cert
/var/lib/puppet/ssl/certs/$(hostname -f).pem --key
/var/lib/puppet/ssl/private_keys/$(hostname -f).pem https://$(hostname
-f):8140/v2.0/environments

{"search_paths":["file:///etc/puppet/environments","data:text/plain,internal"],"environments":{"production":{"settings":{"environment_timeout":180,"config_version":"","manifest":"/etc/puppet/environments/production/manifests/site.pp","modulepath":["/etc/puppet/environments/production/modules","/home/sas/puppet/modules"]}}}}

/home/sas/puppet/modules#puppet master --configprint modulepath
–environment production
/etc/puppet/environments/production/modules:/home/sas/puppet/modules

Regards,
Suresh

··· On Thursday, 16 October 2014 17:03:49 UTC+5:30, Dominic Cleal wrote: > > Looks okay, can you paste what's in /etc/puppet/modules? > > Maybe also try this to check the Puppet master's reporting the same > paths for the production environment: > > curl -k --cert /var/lib/puppet/ssl/certs/$(hostname -f).pem --key > /var/lib/puppet/ssl/private_keys/$(hostname -f).pem https://$(hostname > -f):8140/v2.0/environments > > -- > Dominic Cleal > Red Hat Engineering > > On 16/10/14 10:41, Suresh P wrote: > > Hi, > > > > Here is the reply > > > > /etc/puppet# puppet master --configprint modulepath --environment > > production > > /etc/puppet/environments/production/modules:/etc/puppet/modules > > > > Regards, > > Suresh > > > > On Tuesday, 14 October 2014 21:59:06 UTC+5:30, Suresh P wrote: > > > > Hi, > > > > My environment classes are imported properly, but i have configured > > basemodulepath. But basemodulepath alone not imported in foreman. > > Please suggest any solution for it. > > 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 > > ca_server=puppet-ca-sv4 > > > > environmentpath = $confdir/environments > > * basemodulepath = /etc/puppet/modules* > > > > /etc/puppet/environments/production/environment.conf > > modulepath = modules:*$basemodulepath* > > manifest = manifests/site.pp > > > > Regards, > > Suresh > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-user...@googlegroups.com > > <mailto:foreman-users+unsubscribe@googlegroups.com >. > > To post to this group, send email to forema...@googlegroups.com > > > <mailto:forema...@googlegroups.com >. > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > >