forked from chocolatey/cChoco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExampleConfig.ps1
35 lines (32 loc) · 989 Bytes
/
ExampleConfig.ps1
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
Configuration myChocoConfig
{
Import-DscResource -Module cChoco
Import-DscResource -Module cGit
Node "localhost"
{
LocalConfigurationManager
{
ConfigurationMode = "ApplyAndAutoCorrect"
ConfigurationModeFrequencyMins = 30 #must be a multiple of the RefreshFrequency and how often configuration is checked
}
cChocoInstaller installChoco
{
InstallDir = "c:\choco"
}
cChocoPackageInstaller installGit
{
Name = "git.install"
DependsOn = "[cChocoInstaller]installChoco"
}
cGitPull pullRepo
{
Name = 'test'
RepositoryLocal = "c:\temp\gitdsc\"
RepositoryRemote = 'https://github.com/lawrencegripper/FluentMongoIntegrationTesting'
LocationOfGitExe = "C:\Program Files (x86)\Git\bin\git.exe"
DependsOn = "[cChocoPackageInstaller]installGit"
}
}
}
myChocoConfig
Start-DscConfiguration .\myChocoConfig -wait -Verbose