How to give a windows shared path and linux shared path as source for a software and rpm respectively using "package resource"?"

asked 2016-05-15 09:58:27 -0500

Sujatha.R gravatar image

I am having an windows executable in shared path that resides in a CIFS/SMB file sharing system which has a user name and password. How to pass the source path with credentials in the manifest of puppet master and run it through agent. When I run it without credentials it is showing "Unable to open the file" error

edit retag flag offensive close merge delete


Hi Sujatha, there are limitations for source attribute: Why don't you create your own custom resource to download the package and getting is installed using respective provider?

rajeevsharma gravatar imagerajeevsharma ( 2016-05-16 12:16:54 -0500 )edit

HI rajeevsharma , thanks for the reply. But my requirement is I am having the rpm and exe/msi installables in a NFS which has a user name and password. I need to run puppet agent -t, in the manifest I need to provide the installable NFS share path with user name and password (using any resource)

Sujatha.R gravatar imageSujatha.R ( 2016-05-17 12:58:47 -0500 )edit

I have done something similar. I have my own custom downloader for files from s3 (that takes into account the etag), I save it to a local file, then use the source of the package resource to point to my local copy of the file.

DarylW gravatar imageDarylW ( 2016-05-18 21:25:15 -0500 )edit

Hi DarylW, glad to know that. Did you try pointing the source to a NFS server? If so please let me know as how did you pass the credentials.

Sujatha.R gravatar imageSujatha.R ( 2016-05-19 01:18:10 -0500 )edit

Hi Sujatha, Do you have transcript of manual steps (commands) how do you this locally? If you have one liner command to copy file from NFS server then you are good to go otherwise you might need something like 'expect' to be wrapped up in puppet.

rajeevsharma gravatar imagerajeevsharma ( 2016-05-19 03:16:16 -0500 )edit