This keeps being weird. Simply thought to wait until Puppet finishes, but had to quit after one and a half hour. Also tried ‘ensure => present’ instead of ‘ensure => directory‘ with no success. No log output at all. Still investigating. But any ideas still highly appreciated!
Bernd
--
This keeps being weird. Simply thought to wait until Puppet finishes, but had to quit after one and a half hour. Also tried ‘ensure => present’ instead of ‘ensure => directory‘ with no success. No log output at all. Still investigating. But any ideas still highly appreciated!
Bernd
Von: puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] Im Auftrag von Bernd Adamowicz
Gesendet: Donnerstag, 13. September 2012 10:46
An: puppet...@googlegroups.com
Betreff: Re: [Puppet Users] AW: Issue with large directory content
Thanks for your answers so far.
But beware that the huge artifacts are *not* managed by Puppet (see recurse => false). Actually it's a Maven repository filled by Nexus. Only the top directory is managed by Puppet to have it in place and have correct access rights. This worked well until I initially filled the repository with the artifacts manually. That slowed down Puppet. Seems to me as Puppet will do some recursive scanning, but that's just an assumption, since Puppet is running with almost 100% CPU load.
I turned debug on in Puppet but will not see anything even after a few minutes. Presumably I would see something if I let Puppet run just long enough. However, it's a strange behaviour I've never experienced. And I think my configuration is OK.
Bernd
On 09/13/2012 01:24 AM, Peter Brown wrote:
The other questions from all of you and finally Den's question, which
was: "Are you trying to set any permissions inside that directory elsewhere in the manifest?" made me rethink everything and pointed me to the right place. A few lines down from where I thought the error was I used to have this:
file { [
"${codebase_ng::repository_mount}/${sonatype_work_dir}/nexus",
"${codebase_ng::repository_mount}/${sonatype_work_dir}/nexus/conf"]:
require =>
File["${codebase_ng::repository_mount}/${sonatype_work_dir}"],
ensure => directory,
owner => $nexus_user_id,
group => $nexus_group_id,
mode => 0750,
source => "puppet:///modules/codebase_ng/nexus/conf",
recurse => true,
purge => false,
}
This file resource was just about having configuration files in place below '/repository/sonatype-work/nexus/conf'. But obviously the first entry in the file array which resolves to '/repository/sonatype-work/nexus' was the trigger for Puppet to start recursive scanning everything.
So, the misconfiguration was on my side (nice pitfall), but I wonder if this is expected behaviour. Shouldn't recursion only be done on the last entry of the file array?