Hi,
I am having an issue with exc statement. running through non-root user.
Error: Failed to apply catalog: Parameter user failed on Exec[extract p17071663_1036_Generic.zip]: Only root can execute commands as other users at /etc/puppetlabs/puppet/environments/testing/modules/wls/manifests/bsupatch.pp
Let me know how to exec through non root user
my code is:
exec { "extract ${patchFile}":
113 command => "unzip -n ${puppetDownloadMntPoint}/${patchFile} -d ${mdwHome}/utils/bsu/cache_dir",
114 user => "puppet-admin",
115 creates => "${mdwHome}/utils/bsu/cache_dir/${patchId}.jar",
116 before => Bsu_patch[$patchId],
Help me