Update windows_baseline.pp

This commit is contained in:
Abir Majumdar 2018-09-10 11:39:46 -07:00 committed by GitHub
parent b16e437d80
commit f99ca0ab41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,15 +2,46 @@
class profile::windows_baseline { class profile::windows_baseline {
include chocolatey include chocolatey
# PACKAGES
package { 'unzip': Package {
ensure => installed, ensure => installed,
provider => chocolatey, provider => chocolatey,
} }
package { 'git': package { 'unzip': }
ensure => installed, package { 'Firefox': }
provider => chocolatey, 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':
ensure => present,
groups => ['Administrators'],
}
# 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',
} }
} }