control-repo/site/profile/manifests/windows_baseline.pp
2018-09-13 12:28:37 -07:00

49 lines
1.1 KiB
Puppet

# @summary This profile installs unzip and git as part of the Windows baseline
class profile::windows_baseline {
include chocolatey
# PACKAGES
Package {
ensure => installed,
provider => chocolatey,
}
package { 'unzip': }
package { 'Firefox': }
package { 'git': }
# FIREWALL
windows_firewall::exception { 'TSErule':
ensure => present,
direction => 'in',
action => 'Allow',
enabled => 'yes',
protocol => 'TCP',
local_port => '8080',
display_name => 'TSE PUPPET DEMO',
description => 'Inbound rule example for demo purposes',
}
# USERS
user { 'Puppet Demo User':
ensure => present,
groups => ['Administrators'],
password => '$1$HTQUGYUGYUGwsxQxCp3F/nGc4DCYM/',
}
# REG KEYS
registry_key { 'HKEY_LOCAL_MACHINE\Software\Demonstration':
ensure => present,
purge_values => true,
}
registry_value { 'HKEY_LOCAL_MACHINE\Software\Demonstration\value1':
type => string,
data => 'this is a value new from puppet intro',
}
registry_value { 'HKEY_LOCAL_MACHINE\Software\Demonstration\value2':
type => dword,
data => '0xFFFFFFFF',
}
}