-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsite.pp
64 lines (54 loc) · 1.2 KB
/
site.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
include stdlib
include chocolatey
$homepath="$env_home"
$appdatapath="$env_appdata"
$allusersprofile="$env_allusersprofile"
$dbpath="$homepath/Dropbox"
$wapath="$dbpath/Windows_Automation"
$secretspath="$dbpath/Windows_Automation_Secrets"
$cmd='C:\Windows\System32\cmd.exe'
Exec {
logoutput => true,
}
File {
source_permissions => ignore,
}
case $operatingsystem {
'windows': {
Package {
provider => chocolatey,
package_settings => { 'verbose' => true, 'log_output' => true, },
}
}
}
# Seems to have been fixed
#
# # Without this, gem install doesn't work
# file { "$rubysitedir/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem":
# source => "$wapath/extras/AddTrustExternalCARoot-2048.pem",
# }
class everything( $laptop, $desktop ) {
class { 'misc':
laptop => $laptop,
desktop => $desktop,
}
include 'windows_extras'
include 'conemu'
include 'layout'
include 'pdfxchange'
include 'pictures'
}
# Laptops
node 'rlp-laptop', 'rlp-lenovo-p71' {
class { 'everything':
laptop => true,
desktop => false,
}
}
# Desktops
node 'rlp-desktop', 'rlp-desktop.digitalkingdom.org' {
class { 'everything':
laptop => false,
desktop => true,
}
}