-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration Kibana
58 lines (49 loc) · 1.49 KB
/
configuration Kibana
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
configuration Kibana
{
param (
$SourcePath,
$DestinationPath
)
Import-DSCResource -ModuleName xWebAdministration
node localhost {
File EnsureKibanaSource
{
Type = 'Directory'
SourcePath = "$SourcePath\kibana-3.1.0"
DestinationPath = $DestinationPath
Ensure = "Present"
Recurse = $true
}
File EnsureKibanaConfigFile
{
Type = 'File'
SourcePath = "$SourcePath\config.js"
DestinationPath = "$DestinationPath\config.js"
}
# Install the IIS role
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
}
# Stop the default website
xWebsite DefaultSite
{
Ensure = "Present"
Name = "Default Web Site"
State = "Stopped"
PhysicalPath = "C:\inetpub\wwwroot"
#DependsOn = "[WindowsFeature]IIS"
}
xWebsite EnsureKibanaSite
{
Ensure = "Present"
Name = "Kibana"
State = "Started"
PhysicalPath = $DestinationPath
#DependsOn = "[File]EnsureKibanaSource"
}
}
}
Kibana -SourcePath "c:\dev\TestLab\Roles\kibana" -DestinationPath "C:\Kibana"
Start-DscConfiguration -Path .\Kibana -Verbose -Wait