-tile_uid = node[:etc][:passwd][:"tile"][:uid]
-www_data_gid = node[:etc][:group][:"www-data"][:gid]
-
-ruby_block node[:tile][:node_file] do
- block do
- File.chown(tile_uid, www_data_gid, node[:tile][:node_file])
- File.chmod(0640, node[:tile][:node_file])
- end
- not_if do
- stat = File.stat(node[:tile][:node_file])
- stat.uid == tile_uid && stat.gid == www_data_gid && stat.mode == 0640
- end