Need help using puppet mount resource with credentials
I have have using the puppet documentation for the mount resource and hiera sections mainly. My goal is to mount a cifs share on centos7 system, using credentials. I am using puppet apply locally, I was successful in using hiera to store my user_name and password, So I have learned I am able to pull data from the .yaml file no problem.
My problem runs into how to use the mount resource to include username and password inside the mount resource. I have tried username => $username, and same for password, but it complains that username can't be used as parameter.
Now the options parameter has potential to use a credentials variable or file, is that my only option?
Any guidance or help would be much appreciated.