Hi guys, I'm trying to use puppet to run and install splunk on a Windows 
Box, I have created a module called splunk, and I try to get the powershell 
script and the files from the puppet master, everything is almost right but 
the file with the msi package couldn't copied to the windows box, What am I 
doing wrong?, could you help me please? Is it possible? copying files from 
the master to a windows client box?...

This is my module init.pp file:

class splunk()
{
file {'D:\Powershell-Scripts':
        ensure => directory,
        mode => 0777,
        }

file {'D:\Powershell-Scripts\libs':
        ensure => directory,
        mode => 0777,
        }

file {'D:\Powershell-Scripts\Apps':
        ensure => directory,
        mode => 0777,
        }

file {"D:/Powershell-Scripts/install-splunkforwarder.ps1":
        ensure => 'file',
        content => 
template("/etc/puppet/modules/splunk/templates/install-splunkforwarder.ps1"),
}

file {"D:/Powershell-Scripts/libs/MainFunctions.ps1":
        ensure => 'file',
        content => 
template("/etc/puppet/modules/splunk/templates/libs/MainFunctions.ps1"),
}


And this is what I got on windows puppet agent when I ran:

C:\Users\Administrator>puppet agent --test
notice: Ignoring --listen on onetime run
info: Retrieving plugin
info: Caching catalog for cscltest01.office.comscore.com
info: Applying configuration version '1333025700'
err: 
/Stage[main]/Splunk/File[D:/Powershell-Scripts/Apps/splunkforwarder-4.3-115073-x64-release.msi]:
 
Could not evaluate: Could not retrieve information from environment 
production source(s) 
puppet:///modules/splunk/files/splunkforwarder-4.3-115073-x64-release.msi 
at /etc/puppet/modules/splunk/manifests/init.pp:31
notice: Finished catalog run in 0.33 seconds
notice: 
/File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]/content:

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/IcMoISXXqyAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to