thias/puppet-memcached — pull request #1 by International (2013-04-13 18:21:11+00:00)
Title: Make sure directory exists before trying to install to it

I was receiving the following error:

>err: /Stage[memcached_stage]/Memcached/File[/etc/sysconfig/memcached]/ensure: >change from absent to file failed: Could not set 'file on ensure: No such file or directory - >/etc/sysconfig/memcached.puppettmp_8484 at /tmp/vagrant-puppet/modules-> 0/memcached/manifests/init.pp:34

Problem was caused by the directory not existing on my FS. I added a check to make sure that the directory exists.