Skip to content

Instantly share code, notes, and snippets.

@velocity303
Created June 16, 2015 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velocity303/2da921a55a2bb0fa513e to your computer and use it in GitHub Desktop.
Save velocity303/2da921a55a2bb0fa513e to your computer and use it in GitHub Desktop.
Win Setup Profile
class profile::windows::win_setup {
include registry::service_example
include registry::compliance_example
file {'C:\windirstat1_1_2_setup.exe':
ensure => present,
source => 'puppet:///modules/profile/windirstat1_1_2_setup.exe',
}
package { 'WinDirStat 1.1.2':
ensure => present,
source => 'C:\windirstat1_1_2_setup.exe',
install_options => '/S',
require => File['C:\windirstat1_1_2_setup.exe'],
}
windows_firewall::exception { 'WINRM':
ensure => present,
direction => 'in',
action => 'Allow',
enabled => 'yes',
protocol => 'TCP',
local_port => '5985',
display_name => 'Windows Remote Management HTTP-In',
description => 'Inbound rule for Windows Remote Management via WS-Management. [TCP 5985]',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment