Created
November 25, 2015 16:33
-
-
Save dgrstl/c82e71e465b662d15b14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class dellpoc::dell_sccm { | |
exec { 'intsall_sccm': | |
provider => 'windows', | |
command => '\\\\AUSPWCFGAM1.aus.amer.dell.com\\client\\am1install.bat', | |
unless => 'c:\windows\system32\sc.exe query ccmexec', | |
} | |
file {'c:\windows\cmtrace.exe': | |
ensure => 'file', | |
replace => true, | |
source => '\\\\auspwcfgam1\\cmtools\\Client\\cmtrace.exe', | |
require => Exec['intsall_sccm'] | |
before => [Service['wuaserv'], Service['ccmexec']] | |
} | |
service { 'wuauserv': | |
enable => 'manual', | |
} | |
service { 'ccmexec': | |
ensure => 'running', | |
enable => true, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment