Salt state examples/tips with Windows...

2,759 views
Skip to first unread message

Jeff

unread,
Nov 11, 2014, 1:17:25 PM11/11/14
to salt-...@googlegroups.com
Some of the things I want to do include (based on the windows version):
  • Registry updates:
    • set the "auto login" registry settings
    • Disable windows update (specifically to control which IE browser versions are installed)
    • Enable RDP (via registry?)
  • Map network drives (net use...)
  • Update files from a remote SMB share (robocopy/xcopy?)
    • selenium grid files/shortcuts
  • Extract zip file (sysinternalssuite.zip)
  • Configure shortcuts
    • startup shortcuts
      • BGInfo
      • Selenium Grid Node startup
    • Desktop shortcuts
  • install/validate software packages (Firefox, Chrome, Safari, IE version)
I am currently pointing to the windows repo in github, but I think I need to add to that or create an internal one for additional packages, but I'd really like to see/understand how others may have approached/solved this type of configuration.

Thanks!

--
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

Loren Gordon

unread,
Nov 12, 2014, 7:44:46 AM11/12/14
to salt-...@googlegroups.com
Hi Jeff,
I've worked a bit using salt to configure Windows systems. I'm using a masterless configuration at the moment, where the salt install and configuration is deployed to every Windows system via a bootstrap script and executed locally.
  • Update files from a remote SMB share
-Loren

Shem Nguyen

unread,
Feb 12, 2015, 9:33:38 PM2/12/15
to salt-...@googlegroups.com
I'm going to have to second your "Map Network drives" one.
I've used:

'net use P: \\a\network\location':
  cmd.run:
    - creates: 'P:'

It seems to mount a drive, but the drive appears with a "disconnected" icon when I look at it in My Computer. It's still accessible though. I'm probably going to log this as an issue on the repository. If anyone's found a way around this, I'd love to know.

Jonathan Roy

unread,
Feb 13, 2015, 8:14:37 AM2/13/15
to salt-...@googlegroups.com
The drive appears disconnected possibly because it has been created with a different account.
The salt-minion run with the system user and you are most certainly veryfing the state of the drive with another account.

Shem Nguyen

unread,
Mar 31, 2015, 8:27:43 PM3/31/15
to salt-...@googlegroups.com
Yep, is there any chance you found a way around this?

Oliver Bestwalter

unread,
May 15, 2015, 8:02:55 AM5/15/15
to salt-...@googlegroups.com
Hi,


On Friday, 13 February 2015 14:14:37 UTC+1, Jonathan Roy wrote:
The drive appears disconnected possibly because it has been created with a different account.
The salt-minion run with the system user and you are most certainly veryfing the state of the drive with another account.

 correct. I am looking into this as well and just found an issue about this: https://github.com/saltstack/salt/issues/20672

Cheers
Oliver
Reply all
Reply to author
Forward
0 new messages