Import of puppet module only shows params

The directory name of a module should match its name. So saz-ntp should
be named ntp, thus /etc/puppet/modules/common/ntp/manifests/init.pp. The
openshift module should live in /etc/puppet/modules/common/openshift.
See
http://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#module-layout
for more info.

··· On 03-06-13 14:21, james labocki wrote: > I followed the Quickstart Installation screencast by Dominic Cleal > located at http://theforeman.org/media.html. I was able to import the > saz-ntp puppet module successfully. I then used my own tarball of > puppet whose contents can be seen below. I copied it and untarred it > in /etc/puppet/modules/common/. When I import this module I only see > the ::params, but do not get the rest of the module to show up (see > attached screenshot). Since my directory is names "openshift" and the > puppet class name in > /etc/puppet/modules/common/openshift/manifests/init.pp is also > "openshift" I thought it should work. Why is openshift not showing up, > but only the ::params when I run an import? >

To be clear, saz-ntp worked as I expected and openshift did not.

saz-ntp was in /etc/puppet/modules/common/saz-ntp-2.0.3 and it's init.pp
has class ntp defined.

openshift was in /etc/puppet/modules/common/openshift and it's init.pp has
class openshift defined.

I believe this contradicts what you are saying above. Is there some place
to watch what takes place when the "import from" button is pressed in the
UI?

··· On Monday, 3 June 2013 08:32:32 UTC-4, Ewoud Kohl van Wijngaarden wrote: > > On 03-06-13 14:21, james labocki wrote: > > I followed the Quickstart Installation screencast by Dominic Cleal > > located at http://theforeman.org/media.html. I was able to import the > > saz-ntp puppet module successfully. I then used my own tarball of > > puppet whose contents can be seen below. I copied it and untarred it > > in /etc/puppet/modules/common/. When I import this module I only see > > the ::params, but do not get the rest of the module to show up (see > > attached screenshot). Since my directory is names "openshift" and the > > puppet class name in > > /etc/puppet/modules/common/openshift/manifests/init.pp is also > > "openshift" I thought it should work. Why is openshift not showing up, > > but only the ::params when I run an import? > > > The directory name of a module should match its name. So saz-ntp should > be named ntp, thus /etc/puppet/modules/common/ntp/manifests/init.pp. The > openshift module should live in /etc/puppet/modules/common/openshift. > See > > http://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#module-layout > for more info. >

2 questions:

  1. Can you paste your modulepath from your puppet.conf?
  2. Is it possible there's an ntp module somewhere else in your modulepath?

Ewoud is quite correct - a dir called saz-ntp-2.0.3 with a class of ntp
will not import correctly. See [1] for details on the module naming
conventions.

[1]
http://docs.puppetlabs.com/puppet/3/reference/modules_fundamentals.html#module-layout

··· On 3 June 2013 14:07, james labocki wrote:

To be clear, saz-ntp worked as I expected and openshift did not.

saz-ntp was in /etc/puppet/modules/common/saz-ntp-2.0.3 and it’s init.pp
has class ntp defined.

openshift was in /etc/puppet/modules/common/openshift and it’s init.pp has
class openshift defined.

I believe this contradicts what you are saying above. Is there some place
to watch what takes place when the “import from” button is pressed in the
UI?

Below is the output your requested. I believe in the Dominic's screencast
(mentioned in first post) he also creates a saz-ntp-2.0.3 directory by
using the puppet module install command and it works. Maybe I'm remembering
it incorrectly.

  1. Output from

cat /etc/puppet/puppet.conf

File managed with puppet

Served by: ''

Module: 'puppet'

Template source: 'MODULES/puppet/templates/puppet.conf.erb'

[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

# Allow services in the 'puppet' group to access key (Foreman + proxy)
privatekeydir = $ssldir/private_keys { group = service }
hostprivkey = $privatekeydir/$certname.pem { mode = 640 }

# Puppet 3.0.x requires this in both [main] and [master] - harmless on 

agents
autosign = $confdir/autosign.conf { mode = 664 }

[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
report      = true
pluginsync  = true
masterport  = 8140
environment = production
certname    = rhc-foreman.rhc.lab.eng.bos.redhat.com
server      = rhc-foreman.rhc.lab.eng.bos.redhat.com
listen      = false

Next part of the file is managed by a different template

Module: 'puppet'

Template source: 'MODULES/puppet/templates/server/puppet.conf.erb'

[master]
autosign = $confdir/autosign.conf { mode = 664 }
reports = foreman
external_nodes = /etc/puppet/node.rb
node_terminus = exec
ca = true
[development]
modulepath =
/etc/puppet/modules/development:/etc/puppet/modules/common:/usr/share/puppet/modules
[production]
modulepath =
/etc/puppet/modules/production:/etc/puppet/modules/common:/usr/share/puppet/modules

  1. Output of locate ntp

locate ntp

/bin/mountpoint
/etc/ntp
/etc/ntp.conf
/etc/X11/fontpath.d
/etc/X11/fontpath.d/default-ghostscript
/etc/X11/fontpath.d/fonts-default
/etc/dhcp/dhclient.d/ntp.sh
/etc/ntp/crypto
/etc/ntp/keys
/etc/ntp/step-tickers
/etc/ntp/crypto/pw
/etc/puppet/modules/common/saz-ntp-2.0.3
/etc/puppet/modules/common/saz-ntp-2.0.3/LICENSE
/etc/puppet/modules/common/saz-ntp-2.0.3/Modulefile
/etc/puppet/modules/common/saz-ntp-2.0.3/README.md
/etc/puppet/modules/common/saz-ntp-2.0.3/manifests
/etc/puppet/modules/common/saz-ntp-2.0.3/metadata.json
/etc/puppet/modules/common/saz-ntp-2.0.3/spec
/etc/puppet/modules/common/saz-ntp-2.0.3/templates
/etc/puppet/modules/common/saz-ntp-2.0.3/tests
/etc/puppet/modules/common/saz-ntp-2.0.3/manifests/init.pp
/etc/puppet/modules/common/saz-ntp-2.0.3/manifests/params.pp
/etc/puppet/modules/common/saz-ntp-2.0.3/spec/spec.opts
/etc/puppet/modules/common/saz-ntp-2.0.3/spec/spec_helper.rb
/etc/puppet/modules/common/saz-ntp-2.0.3/templates/ntp.conf.erb
/etc/puppet/modules/common/saz-ntp-2.0.3/templates/ntp.defaults.debian.erb
/etc/puppet/modules/common/saz-ntp-2.0.3/templates/ntp.defaults.redhat.erb
/etc/puppet/modules/common/saz-ntp-2.0.3/tests/init.pp
/etc/rc.d/init.d/ntpd
/etc/rc.d/init.d/ntpdate
/etc/rc.d/rc0.d/K74ntpd
/etc/rc.d/rc0.d/K75ntpdate
/etc/rc.d/rc1.d/K74ntpd
/etc/rc.d/rc1.d/K75ntpdate
/etc/rc.d/rc2.d/K74ntpd
/etc/rc.d/rc2.d/K75ntpdate
/etc/rc.d/rc3.d/K74ntpd
/etc/rc.d/rc3.d/K75ntpdate
/etc/rc.d/rc4.d/K74ntpd
/etc/rc.d/rc4.d/K75ntpdate
/etc/rc.d/rc5.d/K74ntpd
/etc/rc.d/rc5.d/K75ntpdate
/etc/rc.d/rc6.d/K74ntpd
/etc/rc.d/rc6.d/K75ntpdate
/etc/selinux/targeted/modules/active/modules/ntp.pp
/etc/sysconfig/ntpd
/etc/sysconfig/ntpdate
/root/modules/ntp
/root/modules/ntp/manifests
/root/modules/ntp/manifests/init.pp
/usr/bin/ntpstat
/usr/lib/python2.6/site-packages/ipaclient/ntpconf.py
/usr/lib/python2.6/site-packages/ipaclient/ntpconf.pyc
/usr/lib/python2.6/site-packages/ipaclient/ntpconf.pyo
/usr/lib/python2.6/site-packages/sos/plugins/ntp.py
/usr/lib/python2.6/site-packages/sos/plugins/ntp.pyc
/usr/lib/python2.6/site-packages/sos/plugins/ntp.pyo
/usr/lib64/python2.6/nntplib.py
/usr/lib64/python2.6/nntplib.pyc
/usr/lib64/python2.6/nntplib.pyo
/usr/lib64/python2.6/ntpath.py
/usr/lib64/python2.6/ntpath.pyc
/usr/lib64/python2.6/ntpath.pyo
/usr/lib64/python2.6/site-packages/lxml/_elementpath.py
/usr/lib64/python2.6/site-packages/lxml/_elementpath.pyc
/usr/lib64/python2.6/site-packages/lxml/_elementpath.pyo
/usr/libexec/hal-storage-cleanup-all-mountpoints
/usr/libexec/hal-storage-cleanup-mountpoint
/usr/sbin/ntp-keygen
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpdc
/usr/sbin/ntpq
/usr/sbin/ntptime
/usr/share/augeas/lenses/dist/ntp.aug
/usr/share/augeas/lenses/dist/tests/test_ntp.aug
/usr/share/doc/ntp-4.2.4p8
/usr/share/doc/man-pages-overrides-6.4.1/ntp
/usr/share/doc/man-pages-overrides-6.4.1/ntp/COPYRIGHT
/usr/share/doc/ntp-4.2.4p8/COPYRIGHT
/usr/share/doc/ntp-4.2.4p8/ChangeLog
/usr/share/doc/ntp-4.2.4p8/NEWS
/usr/share/dstat/dstat_ntp.py
/usr/share/dstat/dstat_ntp.pyc
/usr/share/foomatic/db/source/printer/Fujifilm-Printpix-CX-400.xml
/usr/share/foomatic/db/source/printer/Fujifilm-Printpix-CX-550.xml
/usr/share/man/man1/mountpoint.1.gz
/usr/share/man/man3/grantpt.3.gz
/usr/share/man/man3p/grantpt.3p.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp_acc.5.gz
/usr/share/man/man5/ntp_auth.5.gz
/usr/share/man/man5/ntp_clock.5.gz
/usr/share/man/man5/ntp_misc.5.gz
/usr/share/man/man5/ntp_mon.5.gz
/usr/share/man/man7/kgrantpty.7.gz
/usr/share/man/man8/ntp-keygen.8.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpd_selinux.8.gz
/usr/share/man/man8/ntpdate.8.gz
/usr/share/man/man8/ntpdc.8.gz
/usr/share/man/man8/ntpq.8.gz
/usr/share/man/man8/ntpstat.8.gz
/usr/share/man/man8/ntptime.8.gz
/usr/share/man/overrides/man8/ntp-keygen.8.gz
/usr/share/man/overrides/man8/ntpq.8.gz
/usr/share/perl5/LWP/Protocol/nntp.pm
/usr/share/perl5/URI/nntp.pm
/usr/share/selinux/devel/include/services/ntp.if
/usr/share/selinux/targeted/ntp.pp.bz2
/var/lib/ntp
/var/lib/dhclient/ntp.conf.predhclient.eth0
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/checksum_data
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/checksum_type
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/from_repo
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/from_repo_revision
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/from_repo_timestamp
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/installed_by
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/reason
/var/lib/yum/yumdb/f/5a26670de286cfc04ede698f8ceadaf205006f04-fontpackages-filesystem-1.41-1.1.el6-noarch/releasever
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/changed_by
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/checksum_data
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/checksum_type
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/command_line
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/from_repo
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/installed_by
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/reason
/var/lib/yum/yumdb/n/3c552d49310e4483a33d4518eedc10fb40f43e42-ntpdate-4.2.4p8-3.el6-x86_64/releasever
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/changed_by
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/checksum_data
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/checksum_type
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/command_line
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/from_repo
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/installed_by
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/reason
/var/lib/yum/yumdb/n/f4b9ef2f1299956e3fda2df2ad66addd7b747688-ntp-4.2.4p8-3.el6-x86_64/releasever
/var/log/ntpstats

··· On Monday, 3 June 2013 11:47:07 UTC-4, Greg Sutcliffe wrote: > > On 3 June 2013 14:07, james labocki <jamesl...@gmail.com >wrote: > >> To be clear, saz-ntp worked as I expected and openshift did not. >> >> saz-ntp was in /etc/puppet/modules/common/saz-ntp-2.0.3 and it's init.pp >> has class ntp defined. >> >> openshift was in /etc/puppet/modules/common/openshift and it's init.pp >> has class openshift defined. >> >> I believe this contradicts what you are saying above. Is there some place >> to watch what takes place when the "import from" button is pressed in the >> UI? >> > > 2 questions: > > 1) Can you paste your modulepath from your puppet.conf? > 2) Is it possible there's an ntp module somewhere else in your modulepath? > > Ewoud is quite correct - a dir called saz-ntp-2.0.3 with a class of ntp > will not import correctly. See [1] for details on the module naming > conventions. > > [1] > http://docs.puppetlabs.com/puppet/3/reference/modules_fundamentals.html#module-layout > >

The importance of the naming isn't when importing (Foreman's importer is
liberal in what it accepts), but when you come to run Puppet. I used
the puppet module command, but it renames the directory to just the
module name, i.e. "ntp". If it doesn't get renamed, you'll find Foreman
imports it but then Puppet will throw a class not found error if it's
not under <modulename>/.

··· On 03/06/13 18:02, james labocki wrote: > Below is the output your requested. I believe in the Dominic's > screencast (mentioned in first post) he also creates a saz-ntp-2.0.3 > directory by using the puppet module install command and it works. Maybe > I'm remembering it incorrectly.


Dominic Cleal
Red Hat Engineering

Thanks Dominic, that helps me understand when the naming becomes important
in the process. However, my problem still exists in that I have a directory
named the same as the class in my init.pp for my puppet module but the
import button in the UI only produces "openshift::params" instead of
"openshift::params" and "openshift". Any clues to help me debug and find
the root cause would be greatly appreciated. Thanks!

  1. I have a puppet module in /etc/puppet/modules/common/openshift with the
    following contents.

ls -lR /etc/puppet/modules/common/openshift/

/etc/puppet/modules/common/openshift/:
total 8
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 manifests
drwxr-xr-x. 6 root root 4096 Jun 3 14:01 templates

/etc/puppet/modules/common/openshift/manifests:
total 36
-rw-r–r--. 1 root root 2940 Jun 3 14:01 activemq.pp
-rw-r–r--. 1 root root 6875 Jun 3 14:01 broker.pp
-rw-r–r--. 1 root root 2536 Jun 3 14:01 init.pp
-rw-r–r--. 1 root root 3171 Jun 3 14:01 mongo.pp
-rw-r–r--. 1 root root 11645 Jun 3 14:01 node.pp
-rw-r–r--. 1 root root 1452 Jun 3 14:01 params.pp

/etc/puppet/modules/common/openshift/templates:
total 28
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 activemq
drwxr-xr-x. 3 root root 4096 Jun 3 14:01 broker
-rw-r–r--. 1 root root 410 Jun 3 14:01 mcollective-client.cfg.erb
-rw-r–r--. 1 root root 1230 Jun 3 14:01 mcollective-server.cfg.erb
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 mongodb
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 node
-rw-r–r--. 1 root root 358 Jun 3 14:01 rhel-scl-ruby193-env.erb

/etc/puppet/modules/common/openshift/templates/activemq:
total 24
-rw-r–r--. 1 root root 7129 Jun 3 14:01 activemq.xml.erb
-rw-r–r--. 1 root root 1124 Jun 3 14:01 jetty-realm.properties.erb
-rw-r–r--. 1 root root 5708 Jun 3 14:01 jetty.xml.erb
-rw-r–r--. 1 root root 44 Jun 3 14:01 tmp-activemq.conf.erb

/etc/puppet/modules/common/openshift/templates/broker:
total 16
-rw-r–r--. 1 root root 1418 Jun 3 14:01 broker.conf.erb
-rw-r–r--. 1 root root 867 Jun 3 14:01 msg-broker-mcollective.conf.erb
drwxr-xr-x. 4 root root 4096 Jun 3 14:01 plugins
-rw-r–r--. 1 root root 2609 Jun 3 14:01 ssl.conf.erb

/etc/puppet/modules/common/openshift/templates/broker/plugins:
total 8
drwxr-xr-x. 4 root root 4096 Jun 3 14:01 auth
drwxr-xr-x. 4 root root 4096 Jun 3 14:01 dns

/etc/puppet/modules/common/openshift/templates/broker/plugins/auth:
total 8
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 basic
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 mongo

/etc/puppet/modules/common/openshift/templates/broker/plugins/auth/basic:
total 8
-rw-r–r--. 1 root root 20 Jun 3 14:01 htpasswd.erb
-rwxr-xr-x. 1 root root 738 Jun 3 14:01 remote-user.conf.plugin.erb

/etc/puppet/modules/common/openshift/templates/broker/plugins/auth/mongo:
total 4
-rw-r–r--. 1 root root 403 Jun 3 14:01 mongo.conf.plugin.erb

/etc/puppet/modules/common/openshift/templates/broker/plugins/dns:
total 8
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 bind
drwxr-xr-x. 2 root root 4096 Jun 3 14:01 nsupdate

/etc/puppet/modules/common/openshift/templates/broker/plugins/dns/bind:
total 4
-rw-r–r--. 1 root root 275 Jun 3 14:01 dns-bind.conf.erb

/etc/puppet/modules/common/openshift/templates/broker/plugins/dns/nsupdate:
total 4
-rw-r–r--. 1 root root 288 Jun 3 14:01 nsupdate.conf.erb

/etc/puppet/modules/common/openshift/templates/mongodb:
total 16
-rw-r–r--. 1 root root 1933 Jun 3 14:01 mongodb.conf
-rw-r–r--. 1 root root 1982 Jun 3 14:01 mongodb.conf.erb
-rw-r–r--. 1 root root 3826 Jun 3 14:01 oo-mongo-setup
-rw-r–r--. 1 root root 274 Jun 3 14:01 openshift-mongo-setup.service

/etc/puppet/modules/common/openshift/templates/node:
total 72
-rw-r–r--. 1 root root 796 Jun 3 14:01 cgconfig.conf.erb
-rw-r–r--. 1 root root 172 Jun 3 14:01 namespace-d-sandbox.conf.erb
-rw-r–r--. 1 root root 156 Jun 3 14:01 namespace-d-tmp.conf.erb
-rw-r–r--. 1 root root 153 Jun 3 14:01 namespace-d-vartmp.conf.erb
-rw-r–r--. 1 root root 2715 Jun 3 14:01 node.conf.erb
-rw-r–r--. 1 root root 130 Jun 3 14:01 node_routes.txt.erb
-rw-r–r--. 1 root root 171 Jun 3 14:01
openshift-origin-node_servername.conf.erb
-rw-r–r--. 1 root root 269 Jun 3 14:01 pam.runuser-fedora.erb
-rw-r–r--. 1 root root 218 Jun 3 14:01 pam.runuser-l-fedora.erb
-rw-r–r--. 1 root root 839 Jun 3 14:01 pam.sshd-fedora.erb
-rw-r–r--. 1 root root 750 Jun 3 14:01 pam.sshd-rhel.erb
-rw-r–r--. 1 root root 769 Jun 3 14:01 pam.su-fedora.erb
-rw-r–r--. 1 root root 542 Jun 3 14:01 pam.su-rhel.erb
-rw-r–r--. 1 root root 1017 Jun 3 14:01 pam.system-auth-ac-fedora.erb
-rw-r–r--. 1 root root 951 Jun 3 14:01 pam.system-auth-ac-rhel.erb
-rw-r–r--. 1 root root 3890 Jun 3 14:01 sshd_config.erb
-rw-r–r--. 1 root root 1297 Jun 3 14:01 sysctl.conf.erb
-rw-r–r--. 1 root root 1070 Jun 3 14:01 system.conf.erb

  1. /etc/puppet/modules/common/openshift/manifests/init.pp has an openshift
    class

cat /etc/puppet/modules/common/openshift/manifests/init.pp |more

class openshift (
$node_fqdn = $::fqdn,
$configure_broker = false,
$broker_fqdn = 'host188.rhc.lab.eng.bos.redhat.com',
$configure_node = false,
$mongodb = true,
$enable_network_services = true,
$configure_firewall = true,
$configure_activemq = true,
$mq_provider = 'stomp',
$mq_server_user = 'mcollective',
$mq_server_password = 'marionette',
$mongo_auth_user = 'openshift',
$mongo_db_name = 'openshift_broker_dev',
$mongo_auth_password = 'mooo',
$mongodb_fqdn = $::fqdn,
$broker_auth_plugin = 'basic-auth',
$cloud_domain = 'rhcose.lab.eng.bos.redhat.com',
$broker_auth_salt = 'ClWqe5zKtEW4CJEMyjzQ',
$broker_auth_key_password = '',
$named_server_ip = '10.16.132.10',
$named_tsig_key =
'tbWIY5i7k7ZMbnXTbvxiXBAOizx6GFoTfHPpCvLffv3ZezNQBwlfJHuXTf8M+tvlaNMkFTS/yOgqMKdWJu/fAw==',
$configure_cgroups = true,
$configure_pam = true,
$message_q_fqdn = 'host188.rhc.lab.eng.bos.redhat.com',
) {

if ($configure_broker == true) {
include openshift::broker
}

if ($configure_node == true) {
include openshift::node
}

if ($mongodb == true) {
include openshift::mongo
}

··· On Monday, 3 June 2013 13:07:06 UTC-4, Dominic Cleal wrote: > > On 03/06/13 18:02, james labocki wrote: > > Below is the output your requested. I believe in the Dominic's > > screencast (mentioned in first post) he also creates a saz-ntp-2.0.3 > > directory by using the puppet module install command and it works. Maybe > > I'm remembering it incorrectly. > > The importance of the naming isn't when importing (Foreman's importer is > liberal in what it accepts), but when you come to run Puppet. I used > the puppet module command, but it renames the directory to just the > module name, i.e. "ntp". If it doesn't get renamed, you'll find Foreman > imports it but then Puppet will throw a class not found error if it's > not under /. > > -- > Dominic Cleal > Red Hat Engineering >

Can you check the proxy.log file with the log_level set to debug?

Often parse errors from a class will prevent the classes from being
discovered. These will be logged here. A common issue is mismatched
Puppet versions, e.g. a class designed for 2.7 upwards with trailing
commas won't work if you only have 2.6 installed on the proxy.

··· On 03/06/13 20:11, james labocki wrote: > Thanks Dominic, that helps me understand when the naming becomes > important in the process. However, my problem still exists in that I > have a directory named the same as the class in my init.pp for my puppet > module but the import button in the UI only produces "openshift::params" > instead of "openshift::params" and "openshift". Any clues to help me > debug and find the root cause would be greatly appreciated. Thanks!


Dominic Cleal
Red Hat Engineering