Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I tested with 2.7 and 3.2 on Ruby 1.8.7, 1.9.3, and 2.0.0. Works fine in my tests.

However I noticed that your code says this:

file { '/opt/graphite/storage':
  owner   => $::graphite::params::web_user,
  group   => $::graphite::params::web_user,
  ignore  => '.snapshot',
  recurse => true,
  require => Anchor['graphite::install::end'],
}

while your logs mention a path that stats with /data rather than /opt in the code above.

notice: /File[/data/opt/graphite/storage/.snapshot]/owner: current_value root, should be www-data (noop)

Is it possible that a different resource is causing the problem?

I tested with 2.7 and 3.2 on Ruby 1.8.7, 1.9.3, and 2.0.0. Works fine in my tests.

However I noticed that your code says this:

file { '/opt/graphite/storage':
  owner   => $::graphite::params::web_user,
  group   => $::graphite::params::web_user,
  ignore  => '.snapshot',
  recurse => true,
  require => Anchor['graphite::install::end'],
}

while your logs mention a path that stats with /data rather than /opt in the code above.

notice: /File[/data/opt/graphite/storage/.snapshot]/owner: current_value root, should be www-data (noop)

Is it possible that a different resource is causing the problem?

After chatting on IRC I think your problem was that you were managing different parts of the path in different resources all with recurse. While the ignore was working it was ultimately clobbered by a recurse earlier int he path with no ignore.

I tested with 2.7 and 3.2 on Ruby 1.8.7, 1.9.3, and 2.0.0. Works fine in my tests.

However I noticed that your code says this:

file { '/opt/graphite/storage':
  owner   => $::graphite::params::web_user,
  group   => $::graphite::params::web_user,
  ignore  => '.snapshot',
  recurse => true,
  require => Anchor['graphite::install::end'],
}

while your logs mention a path that stats with /data rather than /opt in the code above.

notice: /File[/data/opt/graphite/storage/.snapshot]/owner: current_value root, should be www-data (noop)

Is it possible that a different resource is causing the problem?

After chatting on IRC I think your problem was that you were managing different parts of the path in different resources all with recurse. While the ignore was working it was ultimately clobbered by a recurse earlier int he in the path with no ignore.