On 05/31/2012 03:22 PM, jcbollinger wrote:
I suspect you have a problem either with paths or with permissions.

I don't find anything related to this.

Supposing you have not configured custom directories, your setup
should look like this:

<puppet base>
   L puppet.conf
   L manifests/
       L site.pp
   L modules/
       L bob/
           L manifests/
               L init.pp
               L postfix.pp
        L postfix/
           L manifests/
               L init.pp

That's true with slight modifications (eg.

Classes that have the same name as their module ( == classes whose
names are in the topmost namespace) should appear in their modules'
init.pp files.  Other classes directly in their modules' namespaces
should appear in manifest files that are siblings to their modules'
init.pp.

Thus, class 'bob' should appear in modules/bob/manifests/init.pp.
Class 'bob::postfix' should appear in modules/bob/manifests/
postfix.pp.  Class 'postfix' should appear in modules/postfix/
manifests/init.pp.

Furthermore, the whole tree must be readable, and the directories
traversible, by the puppetmaster user (often 'puppet', and typically
*not* root).


I can send you the /etc/puppet directory, if you prefer. However configuration is pretty simple.


Anyway, there is a strace log:

select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) lstat("*/etc/puppet/modules/bob/manifests/bob/postfix.pp*", 0x7fff452bdf70) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/bob/postfix.rb", 0x7fff452bdf70) = -1 ENOENT (No such file or directory)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd("/", 200)                        = 2
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/bob.pp", 0x7fff452be0c0) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/bob.rb", 0x7fff452be0c0) = -1 ENOENT (No such file or directory)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd("/", 200)                        = 2
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 lstat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452be0c0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
sendto(5, "<27>Jun 1 12:12:14 puppet-master[47038]: Could not find scope for bob::postfix at /etc/puppet/modules/bob/manifests/init.pp:2 on node bob.maramaros.chemaxon.local", 163, MSG_NOSIGNAL, NULL, 0) = 163
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
sendto(5, "<27>Jun 1 12:12:14 puppet-master[47038]: Could not find scope for bob::postfix at /etc/puppet/modules/bob/manifests/init.pp:2 on node bob.maramaros.chemaxon.local", 163, MSG_NOSIGNAL, NULL, 0) = 163
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)


If I create a symlink for that directory, it finds it, but still not good:

getcwd("/", 200)                        = 2
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) *lstat("/etc/puppet/modules/bob/manifests/bob/postfix.pp", {st_mode=S_IFREG|0644, st_size=130, ...}) = 0* lstat("/etc/puppet/modules/bob/manifests/bob/postfix.rb", 0x7fff452bdf70) = -1 ENOENT (No such file or directory) *stat("/etc/puppet/modules/bob/manifests/bob/postfix.pp", {st_mode=S_IFREG|0644, st_size=130, ...}) = 0*
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd("/", 200)                        = 2
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/bob.pp", 0x7fff452be0c0) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/bob.rb", 0x7fff452be0c0) = -1 ENOENT (No such file or directory)
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd("/", 200)                        = 2
select(9, [3 7], [], [], {0, 0})        = 0 (Timeout)
stat("/etc/puppet/modules/bob", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/etc/puppet/modules/bob/metadata.json", 0x7fff452bd2a0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 stat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452bdc20) = -1 ENOENT (No such file or directory) lstat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 lstat("/etc/puppet/modules/bob/manifests/init.rb", 0x7fff452be0c0) = -1 ENOENT (No such file or directory) stat("/etc/puppet/modules/bob/manifests/init.pp", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0



I've no idea how bob.pp should look like.
BTW, this is an Ubuntu 12.04 with default configuration.

Thank you,
tamas

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to