FAQ
I use cp.get_file frequently on Windows minions:

$ salt 'winminion1' cp.get_file
'salt://files/windows/BGInfo-WPTemplate.bgi'
'C:\Tools\SysinternalsSuite\BGInfo-WPTemplate.bgi'
winminion1:
     C:\Tools\SysinternalsSuite\BGInfo-WPTemplate.bgi

On Friday, October 17, 2014 2:29:31 PM UTC-7, Jeff Vincent wrote:

Delving into saltstack a bit more, I installed
*Salt-Minion-2014.1.11-AMD64-Setup.exe* on some new windows VM's and want
to do a little more "provisioning" using salt.

I've downloaded and extracted a suite of tools called SysinternalsSuite.

I've extracted it on one of my minions at 'C:\Tools\SysinternalsSuite'

One of the tools it comes with is Bginfo.exe that overlays system info on
the background wallpaper. I created a template file called
'C:\Tools\SysinternalsSuite\BGInfo-Template.bgi'.

I now want to push that file to the salt-master and then copy it up to all
other windows minions. (Eventually I want to push that entire directory..)

However, it doesn't seem to recognized the file or path as specified.
I've tried:

# salt 'winminion1' win_path.exists
'C:\Tools\SysinternalsSuite\BGInfo-WPTemplate.bgi'
winminion1:
False

# salt 'winminion1' file.file_exists
'C:\Tools\SysinternalsSuite\BGInfo-WPTemplate.bgi'
winminion1:
False

# salt 'winminion1' cp.push
'C:\Tools\SysinternalsSuite\BGInfo-WPTemplate.bgi'
winminion1:
False


Nothing seems to work. I've tried omitting the drive letter (e.g.,
'\Tools\SysinternalsSuite\...'), escaping the backslash (e.g.,
'C:\\Tools\\SysinternalsSuite\\...'), using forward slashes (e.g.,
'C:/Tools/SysinternalsSuite/...').

What am I missing?

--
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupsalt-users @
postedOct 17, '14 at 9:29p
activeOct 18, '14 at 12:23a
posts3
users2

2 users in discussion

Jeff: 2 posts Benjamen Keroack: 1 post

People

Translate

site design / logo © 2022 Grokbase