Added "mode" attribute so it is set at the time the file is
installed instead of waiting for another Puppet run.
Turned off a deprecation warning that's emitted when using PE 3.3.0