File mode should be represented with 4 digits.

as per style-guide. http://docs.puppetlabs.com/guides/style_guide.html
Use meta parameters instead of chaining arrows
Use metaparameters instead of resource chaining.
Validation should always come first