Adapting previous ahaydon .ps1s
This commit is contained in:
367
bt-autoscaler/terraform/roots/central/graph.svg
Normal file
367
bt-autoscaler/terraform/roots/central/graph.svg
Normal file
@@ -0,0 +1,367 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.43.0 (0)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg width="2796pt" height="476pt"
|
||||
viewBox="0.00 0.00 2796.37 476.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 472)">
|
||||
<title>%3</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-472 2792.37,-472 2792.37,4 -4,4"/>
|
||||
<!-- [root] google_compute_disk.data (expand) -->
|
||||
<g id="node1" class="node">
|
||||
<title>[root] google_compute_disk.data (expand)</title>
|
||||
<polygon fill="none" stroke="black" points="2046,-180 1842,-180 1842,-144 2046,-144 2046,-180"/>
|
||||
<text text-anchor="middle" x="1944" y="-158.3" font-family="Times,serif" font-size="14.00">google_compute_disk.data</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"] -->
|
||||
<g id="node3" class="node">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"]</title>
|
||||
<polygon fill="none" stroke="black" points="1589,-108 1212.29,-90 1589,-72 1965.71,-90 1589,-108"/>
|
||||
<text text-anchor="middle" x="1589" y="-86.3" font-family="Times,serif" font-size="14.00">provider["registry.terraform.io/hashicorp/google-beta"]</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_disk.data (expand)->[root] provider["registry.terraform.io/hashicorp/google-beta"] -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>[root] google_compute_disk.data (expand)->[root] provider["registry.terraform.io/hashicorp/google-beta"]</title>
|
||||
<path fill="none" stroke="black" d="M1857.61,-143.97C1799.91,-132.59 1724.6,-117.74 1668.4,-106.66"/>
|
||||
<polygon fill="black" stroke="black" points="1668.98,-103.2 1658.5,-104.7 1667.63,-110.07 1668.98,-103.2"/>
|
||||
</g>
|
||||
<!-- [root] random_id.vm_suffix (expand) -->
|
||||
<g id="node5" class="node">
|
||||
<title>[root] random_id.vm_suffix (expand)</title>
|
||||
<polygon fill="none" stroke="black" points="2376,-108 2212,-108 2212,-72 2376,-72 2376,-108"/>
|
||||
<text text-anchor="middle" x="2294" y="-86.3" font-family="Times,serif" font-size="14.00">random_id.vm_suffix</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_disk.data (expand)->[root] random_id.vm_suffix (expand) -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>[root] google_compute_disk.data (expand)->[root] random_id.vm_suffix (expand)</title>
|
||||
<path fill="none" stroke="black" d="M2029.17,-143.97C2081.46,-133.51 2148.43,-120.11 2201.94,-109.41"/>
|
||||
<polygon fill="black" stroke="black" points="2202.65,-112.84 2211.77,-107.45 2201.28,-105.98 2202.65,-112.84"/>
|
||||
</g>
|
||||
<!-- [root] var.disk_type -->
|
||||
<g id="node10" class="node">
|
||||
<title>[root] var.disk_type</title>
|
||||
<polygon fill="none" stroke="black" points="2088,-108 1984,-108 1984,-72 2094,-72 2094,-102 2088,-108"/>
|
||||
<polyline fill="none" stroke="black" points="2088,-108 2088,-102 "/>
|
||||
<polyline fill="none" stroke="black" points="2094,-102 2088,-102 "/>
|
||||
<text text-anchor="middle" x="2039" y="-86.3" font-family="Times,serif" font-size="14.00">var.disk_type</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_disk.data (expand)->[root] var.disk_type -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>[root] google_compute_disk.data (expand)->[root] var.disk_type</title>
|
||||
<path fill="none" stroke="black" d="M1967.48,-143.7C1979.56,-134.8 1994.45,-123.82 2007.52,-114.2"/>
|
||||
<polygon fill="black" stroke="black" points="2009.81,-116.85 2015.79,-108.1 2005.66,-111.22 2009.81,-116.85"/>
|
||||
</g>
|
||||
<!-- [root] google_compute_instance.default (expand) -->
|
||||
<g id="node2" class="node">
|
||||
<title>[root] google_compute_instance.default (expand)</title>
|
||||
<polygon fill="none" stroke="black" points="2152,-252 1898,-252 1898,-216 2152,-216 2152,-252"/>
|
||||
<text text-anchor="middle" x="2025" y="-230.3" font-family="Times,serif" font-size="14.00">google_compute_instance.default</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_instance.default (expand)->[root] google_compute_disk.data (expand) -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>[root] google_compute_instance.default (expand)->[root] google_compute_disk.data (expand)</title>
|
||||
<path fill="none" stroke="black" d="M2004.98,-215.7C1994.87,-206.97 1982.46,-196.24 1971.48,-186.75"/>
|
||||
<polygon fill="black" stroke="black" points="1973.65,-183.99 1963.79,-180.1 1969.07,-189.29 1973.65,-183.99"/>
|
||||
</g>
|
||||
<!-- [root] var.image -->
|
||||
<g id="node11" class="node">
|
||||
<title>[root] var.image</title>
|
||||
<polygon fill="none" stroke="black" points="2144,-180 2064,-180 2064,-144 2150,-144 2150,-174 2144,-180"/>
|
||||
<polyline fill="none" stroke="black" points="2144,-180 2144,-174 "/>
|
||||
<polyline fill="none" stroke="black" points="2150,-174 2144,-174 "/>
|
||||
<text text-anchor="middle" x="2107" y="-158.3" font-family="Times,serif" font-size="14.00">var.image</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_instance.default (expand)->[root] var.image -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>[root] google_compute_instance.default (expand)->[root] var.image</title>
|
||||
<path fill="none" stroke="black" d="M2045.27,-215.7C2055.5,-206.97 2068.06,-196.24 2079.18,-186.75"/>
|
||||
<polygon fill="black" stroke="black" points="2081.63,-189.26 2086.96,-180.1 2077.09,-183.94 2081.63,-189.26"/>
|
||||
</g>
|
||||
<!-- [root] var.vm_type -->
|
||||
<g id="node19" class="node">
|
||||
<title>[root] var.vm_type</title>
|
||||
<polygon fill="none" stroke="black" points="2265.5,-180 2168.5,-180 2168.5,-144 2271.5,-144 2271.5,-174 2265.5,-180"/>
|
||||
<polyline fill="none" stroke="black" points="2265.5,-180 2265.5,-174 "/>
|
||||
<polyline fill="none" stroke="black" points="2271.5,-174 2265.5,-174 "/>
|
||||
<text text-anchor="middle" x="2220" y="-158.3" font-family="Times,serif" font-size="14.00">var.vm_type</text>
|
||||
</g>
|
||||
<!-- [root] google_compute_instance.default (expand)->[root] var.vm_type -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>[root] google_compute_instance.default (expand)->[root] var.vm_type</title>
|
||||
<path fill="none" stroke="black" d="M2072.7,-215.88C2099.95,-206.09 2134.3,-193.77 2162.97,-183.47"/>
|
||||
<polygon fill="black" stroke="black" points="2164.22,-186.74 2172.45,-180.07 2161.86,-180.15 2164.22,-186.74"/>
|
||||
</g>
|
||||
<!-- [root] var.project_id -->
|
||||
<g id="node14" class="node">
|
||||
<title>[root] var.project_id</title>
|
||||
<polygon fill="none" stroke="black" points="1520.5,-36 1413.5,-36 1413.5,0 1526.5,0 1526.5,-30 1520.5,-36"/>
|
||||
<polyline fill="none" stroke="black" points="1520.5,-36 1520.5,-30 "/>
|
||||
<polyline fill="none" stroke="black" points="1526.5,-30 1520.5,-30 "/>
|
||||
<text text-anchor="middle" x="1470" y="-14.3" font-family="Times,serif" font-size="14.00">var.project_id</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.project_id -->
|
||||
<g id="edge21" class="edge">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.project_id</title>
|
||||
<path fill="none" stroke="black" d="M1562,-73.12C1546,-63.7 1525.47,-51.63 1507.87,-41.28"/>
|
||||
<polygon fill="black" stroke="black" points="1509.37,-38.1 1498.98,-36.04 1505.82,-44.13 1509.37,-38.1"/>
|
||||
</g>
|
||||
<!-- [root] var.region -->
|
||||
<g id="node15" class="node">
|
||||
<title>[root] var.region</title>
|
||||
<polygon fill="none" stroke="black" points="1627.5,-36 1544.5,-36 1544.5,0 1633.5,0 1633.5,-30 1627.5,-36"/>
|
||||
<polyline fill="none" stroke="black" points="1627.5,-36 1627.5,-30 "/>
|
||||
<polyline fill="none" stroke="black" points="1633.5,-30 1627.5,-30 "/>
|
||||
<text text-anchor="middle" x="1589" y="-14.3" font-family="Times,serif" font-size="14.00">var.region</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.region -->
|
||||
<g id="edge22" class="edge">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.region</title>
|
||||
<path fill="none" stroke="black" d="M1589,-71.7C1589,-63.98 1589,-54.71 1589,-46.11"/>
|
||||
<polygon fill="black" stroke="black" points="1592.5,-46.1 1589,-36.1 1585.5,-46.1 1592.5,-46.1"/>
|
||||
</g>
|
||||
<!-- [root] var.zone -->
|
||||
<g id="node20" class="node">
|
||||
<title>[root] var.zone</title>
|
||||
<polygon fill="none" stroke="black" points="1722,-36 1652,-36 1652,0 1728,0 1728,-30 1722,-36"/>
|
||||
<polyline fill="none" stroke="black" points="1722,-36 1722,-30 "/>
|
||||
<polyline fill="none" stroke="black" points="1728,-30 1722,-30 "/>
|
||||
<text text-anchor="middle" x="1690" y="-14.3" font-family="Times,serif" font-size="14.00">var.zone</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.zone -->
|
||||
<g id="edge23" class="edge">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"]->[root] var.zone</title>
|
||||
<path fill="none" stroke="black" d="M1612.17,-72.94C1625.41,-63.76 1642.24,-52.1 1656.86,-41.97"/>
|
||||
<polygon fill="black" stroke="black" points="1658.95,-44.78 1665.17,-36.21 1654.96,-39.03 1658.95,-44.78"/>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/random"] -->
|
||||
<g id="node4" class="node">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/random"]</title>
|
||||
<polygon fill="none" stroke="black" points="2294,-36 1943.6,-18 2294,0 2644.4,-18 2294,-36"/>
|
||||
<text text-anchor="middle" x="2294" y="-14.3" font-family="Times,serif" font-size="14.00">provider["registry.terraform.io/hashicorp/random"]</text>
|
||||
</g>
|
||||
<!-- [root] random_id.vm_suffix (expand)->[root] provider["registry.terraform.io/hashicorp/random"] -->
|
||||
<g id="edge25" class="edge">
|
||||
<title>[root] random_id.vm_suffix (expand)->[root] provider["registry.terraform.io/hashicorp/random"]</title>
|
||||
<path fill="none" stroke="black" d="M2294,-71.7C2294,-63.98 2294,-54.71 2294,-46.11"/>
|
||||
<polygon fill="black" stroke="black" points="2297.5,-46.1 2294,-36.1 2290.5,-46.1 2297.5,-46.1"/>
|
||||
</g>
|
||||
<!-- [root] var.additional_users -->
|
||||
<g id="node6" class="node">
|
||||
<title>[root] var.additional_users</title>
|
||||
<polygon fill="none" stroke="black" points="154,-324 0,-324 0,-288 160,-288 160,-318 154,-324"/>
|
||||
<polyline fill="none" stroke="black" points="154,-324 154,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="160,-318 154,-318 "/>
|
||||
<text text-anchor="middle" x="80" y="-302.3" font-family="Times,serif" font-size="14.00">var.additional_users</text>
|
||||
</g>
|
||||
<!-- [root] var.availability_type -->
|
||||
<g id="node7" class="node">
|
||||
<title>[root] var.availability_type</title>
|
||||
<polygon fill="none" stroke="black" points="332,-324 178,-324 178,-288 338,-288 338,-318 332,-324"/>
|
||||
<polyline fill="none" stroke="black" points="332,-324 332,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="338,-318 332,-318 "/>
|
||||
<text text-anchor="middle" x="258" y="-302.3" font-family="Times,serif" font-size="14.00">var.availability_type</text>
|
||||
</g>
|
||||
<!-- [root] var.backup_configuration -->
|
||||
<g id="node8" class="node">
|
||||
<title>[root] var.backup_configuration</title>
|
||||
<polygon fill="none" stroke="black" points="545.5,-324 356.5,-324 356.5,-288 551.5,-288 551.5,-318 545.5,-324"/>
|
||||
<polyline fill="none" stroke="black" points="545.5,-324 545.5,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="551.5,-318 545.5,-318 "/>
|
||||
<text text-anchor="middle" x="454" y="-302.3" font-family="Times,serif" font-size="14.00">var.backup_configuration</text>
|
||||
</g>
|
||||
<!-- [root] var.database_version -->
|
||||
<g id="node9" class="node">
|
||||
<title>[root] var.database_version</title>
|
||||
<polygon fill="none" stroke="black" points="730.5,-324 569.5,-324 569.5,-288 736.5,-288 736.5,-318 730.5,-324"/>
|
||||
<polyline fill="none" stroke="black" points="730.5,-324 730.5,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="736.5,-318 730.5,-318 "/>
|
||||
<text text-anchor="middle" x="653" y="-302.3" font-family="Times,serif" font-size="14.00">var.database_version</text>
|
||||
</g>
|
||||
<!-- [root] var.min_cpu -->
|
||||
<g id="node12" class="node">
|
||||
<title>[root] var.min_cpu</title>
|
||||
<polygon fill="none" stroke="black" points="850,-324 754,-324 754,-288 856,-288 856,-318 850,-324"/>
|
||||
<polyline fill="none" stroke="black" points="850,-324 850,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="856,-318 850,-318 "/>
|
||||
<text text-anchor="middle" x="805" y="-302.3" font-family="Times,serif" font-size="14.00">var.min_cpu</text>
|
||||
</g>
|
||||
<!-- [root] var.private_network -->
|
||||
<g id="node13" class="node">
|
||||
<title>[root] var.private_network</title>
|
||||
<polygon fill="none" stroke="black" points="1027.5,-324 874.5,-324 874.5,-288 1033.5,-288 1033.5,-318 1027.5,-324"/>
|
||||
<polyline fill="none" stroke="black" points="1027.5,-324 1027.5,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="1033.5,-318 1027.5,-318 "/>
|
||||
<text text-anchor="middle" x="954" y="-302.3" font-family="Times,serif" font-size="14.00">var.private_network</text>
|
||||
</g>
|
||||
<!-- [root] var.tier -->
|
||||
<g id="node16" class="node">
|
||||
<title>[root] var.tier</title>
|
||||
<polygon fill="none" stroke="black" points="1114,-324 1052,-324 1052,-288 1120,-288 1120,-318 1114,-324"/>
|
||||
<polyline fill="none" stroke="black" points="1114,-324 1114,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="1120,-318 1114,-318 "/>
|
||||
<text text-anchor="middle" x="1086" y="-302.3" font-family="Times,serif" font-size="14.00">var.tier</text>
|
||||
</g>
|
||||
<!-- [root] var.user_name -->
|
||||
<g id="node17" class="node">
|
||||
<title>[root] var.user_name</title>
|
||||
<polygon fill="none" stroke="black" points="1252,-324 1138,-324 1138,-288 1258,-288 1258,-318 1252,-324"/>
|
||||
<polyline fill="none" stroke="black" points="1252,-324 1252,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="1258,-318 1252,-318 "/>
|
||||
<text text-anchor="middle" x="1198" y="-302.3" font-family="Times,serif" font-size="14.00">var.user_name</text>
|
||||
</g>
|
||||
<!-- [root] var.user_password -->
|
||||
<g id="node18" class="node">
|
||||
<title>[root] var.user_password</title>
|
||||
<polygon fill="none" stroke="black" points="1419.5,-324 1276.5,-324 1276.5,-288 1425.5,-288 1425.5,-318 1419.5,-324"/>
|
||||
<polyline fill="none" stroke="black" points="1419.5,-324 1419.5,-318 "/>
|
||||
<polyline fill="none" stroke="black" points="1425.5,-318 1419.5,-318 "/>
|
||||
<text text-anchor="middle" x="1351" y="-302.3" font-family="Times,serif" font-size="14.00">var.user_password</text>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup) -->
|
||||
<g id="node21" class="node">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)</title>
|
||||
<ellipse fill="none" stroke="black" cx="1020" cy="-378" rx="222.86" ry="18"/>
|
||||
<text text-anchor="middle" x="1020" y="-374.3" font-family="Times,serif" font-size="14.00">[root] meta.count-boundary (EachMode fixup)</text>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.additional_users -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.additional_users</title>
|
||||
<path fill="none" stroke="black" d="M812.53,-371.41C642.32,-365.1 395.02,-351.97 170.46,-324.09"/>
|
||||
<polygon fill="black" stroke="black" points="170.82,-320.61 160.46,-322.84 169.94,-327.56 170.82,-320.61"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.availability_type -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.availability_type</title>
|
||||
<path fill="none" stroke="black" d="M834.82,-367.92C701.95,-360.09 518.54,-346.62 348.6,-324.14"/>
|
||||
<polygon fill="black" stroke="black" points="348.84,-320.64 338.47,-322.78 347.91,-327.57 348.84,-320.64"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.backup_configuration -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.backup_configuration</title>
|
||||
<path fill="none" stroke="black" d="M888.44,-363.41C798.95,-353.79 677.6,-340.02 561.71,-324.21"/>
|
||||
<polygon fill="black" stroke="black" points="561.97,-320.71 551.59,-322.82 561.02,-327.64 561.97,-320.71"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.database_version -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.database_version</title>
|
||||
<path fill="none" stroke="black" d="M937.18,-361.2C880.62,-350.42 805.58,-336.1 746.82,-324.89"/>
|
||||
<polygon fill="black" stroke="black" points="747.27,-321.42 736.79,-322.98 745.96,-328.29 747.27,-321.42"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.min_cpu -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.min_cpu</title>
|
||||
<path fill="none" stroke="black" d="M969.05,-360.41C938.21,-350.37 898.7,-337.51 866.18,-326.92"/>
|
||||
<polygon fill="black" stroke="black" points="866.92,-323.48 856.33,-323.71 864.76,-330.14 866.92,-323.48"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.private_network -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.private_network</title>
|
||||
<path fill="none" stroke="black" d="M1003.69,-359.7C995.69,-351.22 985.93,-340.86 977.18,-331.58"/>
|
||||
<polygon fill="black" stroke="black" points="979.53,-328.98 970.13,-324.1 974.44,-333.78 979.53,-328.98"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.tier -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.tier</title>
|
||||
<path fill="none" stroke="black" d="M1036.31,-359.7C1044.31,-351.22 1054.07,-340.86 1062.82,-331.58"/>
|
||||
<polygon fill="black" stroke="black" points="1065.56,-333.78 1069.87,-324.1 1060.47,-328.98 1065.56,-333.78"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.user_name -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.user_name</title>
|
||||
<path fill="none" stroke="black" d="M1062.64,-360.23C1087.37,-350.51 1118.73,-338.17 1145.03,-327.83"/>
|
||||
<polygon fill="black" stroke="black" points="1146.45,-331.03 1154.48,-324.12 1143.89,-324.52 1146.45,-331.03"/>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] var.user_password -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] var.user_password</title>
|
||||
<path fill="none" stroke="black" d="M1095.52,-361.03C1146.43,-350.26 1213.66,-336.05 1266.37,-324.9"/>
|
||||
<polygon fill="black" stroke="black" points="1267.31,-328.28 1276.37,-322.78 1265.86,-321.43 1267.31,-328.28"/>
|
||||
</g>
|
||||
<!-- [root] output.gce_external_ip (expand) -->
|
||||
<g id="node22" class="node">
|
||||
<title>[root] output.gce_external_ip (expand)</title>
|
||||
<ellipse fill="none" stroke="black" cx="1632" cy="-306" rx="188.47" ry="18"/>
|
||||
<text text-anchor="middle" x="1632" y="-302.3" font-family="Times,serif" font-size="14.00">[root] output.gce_external_ip (expand)</text>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] output.gce_external_ip (expand) -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] output.gce_external_ip (expand)</title>
|
||||
<path fill="none" stroke="black" d="M1142.74,-362.96C1248.21,-350.9 1399.66,-333.58 1506.04,-321.41"/>
|
||||
<polygon fill="black" stroke="black" points="1506.66,-324.86 1516.2,-320.25 1505.86,-317.9 1506.66,-324.86"/>
|
||||
</g>
|
||||
<!-- [root] output.gce_internal_ip (expand) -->
|
||||
<g id="node23" class="node">
|
||||
<title>[root] output.gce_internal_ip (expand)</title>
|
||||
<ellipse fill="none" stroke="black" cx="2025" cy="-306" rx="186.57" ry="18"/>
|
||||
<text text-anchor="middle" x="2025" y="-302.3" font-family="Times,serif" font-size="14.00">[root] output.gce_internal_ip (expand)</text>
|
||||
</g>
|
||||
<!-- [root] meta.count-boundary (EachMode fixup)->[root] output.gce_internal_ip (expand) -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>[root] meta.count-boundary (EachMode fixup)->[root] output.gce_internal_ip (expand)</title>
|
||||
<path fill="none" stroke="black" d="M1193.67,-366.69C1357.54,-356.7 1610.06,-340.66 1829,-324 1846.6,-322.66 1865.08,-321.17 1883.37,-319.64"/>
|
||||
<polygon fill="black" stroke="black" points="1883.84,-323.11 1893.51,-318.79 1883.25,-316.14 1883.84,-323.11"/>
|
||||
</g>
|
||||
<!-- [root] output.gce_external_ip (expand)->[root] google_compute_instance.default (expand) -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>[root] output.gce_external_ip (expand)->[root] google_compute_instance.default (expand)</title>
|
||||
<path fill="none" stroke="black" d="M1716.79,-289.9C1776.12,-279.33 1855.8,-265.14 1919.27,-253.83"/>
|
||||
<polygon fill="black" stroke="black" points="1920.09,-257.24 1929.32,-252.04 1918.86,-250.35 1920.09,-257.24"/>
|
||||
</g>
|
||||
<!-- [root] output.gce_internal_ip (expand)->[root] google_compute_instance.default (expand) -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>[root] output.gce_internal_ip (expand)->[root] google_compute_instance.default (expand)</title>
|
||||
<path fill="none" stroke="black" d="M2025,-287.7C2025,-279.98 2025,-270.71 2025,-262.11"/>
|
||||
<polygon fill="black" stroke="black" points="2028.5,-262.1 2025,-252.1 2021.5,-262.1 2028.5,-262.1"/>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"] (close) -->
|
||||
<g id="node24" class="node">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"] (close)</title>
|
||||
<ellipse fill="none" stroke="black" cx="2123" cy="-378" rx="328.44" ry="18"/>
|
||||
<text text-anchor="middle" x="2123" y="-374.3" font-family="Times,serif" font-size="14.00">[root] provider["registry.terraform.io/hashicorp/google-beta"] (close)</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/google-beta"] (close)->[root] google_compute_instance.default (expand) -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/google-beta"] (close)->[root] google_compute_instance.default (expand)</title>
|
||||
<path fill="none" stroke="black" d="M2177.3,-360.21C2194.32,-352.1 2211.2,-340.45 2221,-324 2229.19,-310.26 2230.73,-300.7 2221,-288 2210.23,-273.93 2177.68,-262.73 2142.13,-254.33"/>
|
||||
<polygon fill="black" stroke="black" points="2142.56,-250.84 2132.04,-252.03 2141.01,-257.66 2142.56,-250.84"/>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/random"] (close) -->
|
||||
<g id="node25" class="node">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/random"] (close)</title>
|
||||
<ellipse fill="none" stroke="black" cx="2479" cy="-234" rx="309.25" ry="18"/>
|
||||
<text text-anchor="middle" x="2479" y="-230.3" font-family="Times,serif" font-size="14.00">[root] provider["registry.terraform.io/hashicorp/random"] (close)</text>
|
||||
</g>
|
||||
<!-- [root] provider["registry.terraform.io/hashicorp/random"] (close)->[root] random_id.vm_suffix (expand) -->
|
||||
<g id="edge24" class="edge">
|
||||
<title>[root] provider["registry.terraform.io/hashicorp/random"] (close)->[root] random_id.vm_suffix (expand)</title>
|
||||
<path fill="none" stroke="black" d="M2456.68,-215.87C2423.63,-190.5 2361.56,-142.85 2324.38,-114.32"/>
|
||||
<polygon fill="black" stroke="black" points="2326.46,-111.5 2316.39,-108.19 2322.2,-117.05 2326.46,-111.5"/>
|
||||
</g>
|
||||
<!-- [root] root -->
|
||||
<g id="node26" class="node">
|
||||
<title>[root] root</title>
|
||||
<ellipse fill="none" stroke="black" cx="2123" cy="-450" rx="58.49" ry="18"/>
|
||||
<text text-anchor="middle" x="2123" y="-446.3" font-family="Times,serif" font-size="14.00">[root] root</text>
|
||||
</g>
|
||||
<!-- [root] root->[root] meta.count-boundary (EachMode fixup) -->
|
||||
<g id="edge26" class="edge">
|
||||
<title>[root] root->[root] meta.count-boundary (EachMode fixup)</title>
|
||||
<path fill="none" stroke="black" d="M2066.4,-445.41C1907.84,-435.35 1454.23,-406.56 1199.37,-390.38"/>
|
||||
<polygon fill="black" stroke="black" points="1199.46,-386.88 1189.26,-389.74 1199.02,-393.87 1199.46,-386.88"/>
|
||||
</g>
|
||||
<!-- [root] root->[root] provider["registry.terraform.io/hashicorp/google-beta"] (close) -->
|
||||
<g id="edge27" class="edge">
|
||||
<title>[root] root->[root] provider["registry.terraform.io/hashicorp/google-beta"] (close)</title>
|
||||
<path fill="none" stroke="black" d="M2123,-431.7C2123,-423.98 2123,-414.71 2123,-406.11"/>
|
||||
<polygon fill="black" stroke="black" points="2126.5,-406.1 2123,-396.1 2119.5,-406.1 2126.5,-406.1"/>
|
||||
</g>
|
||||
<!-- [root] root->[root] provider["registry.terraform.io/hashicorp/random"] (close) -->
|
||||
<g id="edge28" class="edge">
|
||||
<title>[root] root->[root] provider["registry.terraform.io/hashicorp/random"] (close)</title>
|
||||
<path fill="none" stroke="black" d="M2181.47,-448.02C2267.64,-445.27 2422.58,-434.89 2460,-396 2494.22,-360.43 2490.47,-298.05 2484.72,-262.27"/>
|
||||
<polygon fill="black" stroke="black" points="2488.1,-261.32 2482.91,-252.09 2481.21,-262.54 2488.1,-261.32"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 24 KiB |
@@ -15,22 +15,23 @@ resource "random_id" "vm_suffix" {
|
||||
}
|
||||
|
||||
resource "google_compute_disk" "data" {
|
||||
provider = google-beta
|
||||
name = "central-datadisk-${random_id.vm_suffix.hex}"
|
||||
type = var.disk_type
|
||||
zone = var.zone
|
||||
provider = google-beta
|
||||
name = "central-datadisk-${random_id.vm_suffix.hex}"
|
||||
type = var.disk_type
|
||||
zone = var.zone
|
||||
# labels = {
|
||||
# environment = "dev"
|
||||
# }
|
||||
size = 50
|
||||
}
|
||||
|
||||
resource "google_compute_instance" "default" {
|
||||
resource "google_compute_instance" "central" {
|
||||
provider = google-beta
|
||||
name = "central-${random_id.vm_suffix.hex}"
|
||||
machine_type = var.vm_type
|
||||
# min_cpu_platform commented out during testing - e2 instances do not support
|
||||
# min_cpu_platform = var.min_cpu
|
||||
zone = var.zone
|
||||
zone = var.zone
|
||||
|
||||
# hostname = "central-${random_id.vm_suffix.hex}"
|
||||
|
||||
@@ -62,10 +63,8 @@ resource "google_compute_instance" "default" {
|
||||
windows-startup-script-url = "gs://qliksense/scripts/bootstrap.ps1"
|
||||
}
|
||||
|
||||
# metadata_startup_script = "echo hi > /test.txt"
|
||||
|
||||
service_account {
|
||||
email = "terraform@esoteric-parsec-243510.iam.gserviceaccount.com"
|
||||
email = "terraform@esoteric-parsec-243510.iam.gserviceaccount.com"
|
||||
scopes = ["userinfo-email", "compute-rw", "storage-ro"]
|
||||
}
|
||||
|
||||
|
||||
@@ -3,10 +3,15 @@
|
||||
# output "psql_ip_address" {
|
||||
# value = google_sql_database_instance.qseow-psql.private_ip_address
|
||||
# }
|
||||
|
||||
output "gce_name" {
|
||||
value = google_compute_instance.central.name
|
||||
}
|
||||
|
||||
output "gce_external_ip" {
|
||||
value = google_compute_instance.default.network_interface[0].access_config[0].nat_ip
|
||||
value = google_compute_instance.central.network_interface[0].access_config[0].nat_ip
|
||||
}
|
||||
|
||||
output "gce_internal_ip" {
|
||||
value = google_compute_instance.default.network_interface[0].network_ip
|
||||
value = google_compute_instance.central.network_interface[0].network_ip
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env pwsh
|
||||
#
|
||||
## Intended to be executed in a GitOps pipeline on the new GCE resource by remmote-exec in TF
|
||||
## Intended to be executed in a GitOps pipeline on the new GCE resource by remote-exec in TF
|
||||
##
|
||||
Enable-PSRemoting
|
||||
winrm set 'winrm/config/client' '@{TrustedHosts="*"}'
|
||||
@@ -52,9 +52,9 @@ if (-Not (Test-Path $deploy_path)) {
|
||||
# OBJCLI_COPY
|
||||
|
||||
# gcloud components update -Force
|
||||
gsutil cp gs://qliksense/Qlik_Sense* $deploy_path\binaries\
|
||||
gsutil cp gs://qliksense/scripts/ $deploy_path\
|
||||
gsutil cp gs://qliksense/modules/ps/* $Env:ProgramFiles\WindowsPowerShell\Modules\
|
||||
gsutil -m cp gs://qliksense/Qlik_Sense* $deploy_path\binaries\
|
||||
gsutil -m cp -r gs://qliksense/scripts $deploy_path\
|
||||
gsutil -m cp -r gs://qliksense/modules 'C:\Program Files\WindowsPowerShell\Modules'
|
||||
|
||||
# Push-Location $deploy_path\modules\ps
|
||||
Get-PackageProvider -Name NuGet -ForceBootstrap
|
||||
@@ -63,9 +63,11 @@ Get-PackageProvider -Name NuGet -ForceBootstrap
|
||||
# Save-Module -Path $deploy_path/modules/ps/ -Name GoogleCloud
|
||||
# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
|
||||
# New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce' -Name 'Run' -Value '<insert_script_command_here>'
|
||||
# $CurrentModPath = [Environment]::GetEnvironmentVariable("PSModulePath", "Machine")
|
||||
# [Environment]::SetEnvironmentVariable("PSModulePath", $CurrentModPath + [System.IO.Path]::PathSeparator + "E:\deploy", "Machine")
|
||||
E:\deploy\scripts\win-nfs_client-install.ps1
|
||||
|
||||
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; E:\deploy\scripts\win-nfs_client-install.ps1
|
||||
# gcloud compute instances add-tags central-12d5 --tags=bootstrapped --zone europe-west1-d
|
||||
|
||||
|
||||
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
# choco install git --no-progress
|
||||
|
||||
89
bt-autoscaler/terraform/roots/scripts/centralNode.ps1
Normal file
89
bt-autoscaler/terraform/roots/scripts/centralNode.ps1
Normal file
@@ -0,0 +1,89 @@
|
||||
$configData = @{
|
||||
AllNodes = @(@{
|
||||
NodeName = 'localhost'
|
||||
PSDscAllowPlainTextPassword = $true
|
||||
})
|
||||
}
|
||||
|
||||
$password = ConvertTo-SecureString -String 'Qlik1234!' -AsPlainText -Force
|
||||
$SenseService = New-Object System.Management.Automation.PSCredential("$env:computername\qservice", $password)
|
||||
$QlikAdmin = New-Object System.Management.Automation.PSCredential("$env:computername\qlik", $password)
|
||||
|
||||
Configuration QlikConfig
|
||||
{
|
||||
Import-DscResource -ModuleName PSDesiredStateConfiguration, QlikResources
|
||||
|
||||
Node localhost
|
||||
{
|
||||
User QlikAdmin
|
||||
{
|
||||
UserName = $QlikAdmin.GetNetworkCredential().UserName
|
||||
Password = $QlikAdmin
|
||||
FullName = 'Qlik User'
|
||||
PasswordChangeRequired = $false
|
||||
PasswordNeverExpires = $true
|
||||
Ensure = 'Present'
|
||||
DependsOn = "[Windows]local"
|
||||
}
|
||||
|
||||
User SenseService
|
||||
{
|
||||
UserName = $SenseService.GetNetworkCredential().UserName
|
||||
Password = $SenseService
|
||||
FullName = 'Qlik Sense Service Account'
|
||||
PasswordChangeNotAllowed = $true
|
||||
PasswordChangeRequired = $false
|
||||
PasswordNeverExpires = $true
|
||||
Ensure = 'Present'
|
||||
DependsOn = "[Windows]local"
|
||||
}
|
||||
|
||||
Group Administrators
|
||||
{
|
||||
GroupName = 'Administrators'
|
||||
MembersToInclude = $QlikAdmin.GetNetworkCredential().UserName, $SenseService.GetNetworkCredential().UserName
|
||||
DependsOn = "[User]QlikAdmin", "[User]SenseService"
|
||||
}
|
||||
|
||||
QlikCentral CentralNode
|
||||
{
|
||||
SenseService = $SenseService
|
||||
QlikAdmin = $QlikAdmin
|
||||
ProductName = 'Qlik Sense June 2018'
|
||||
SetupPath = 'C:\Install\Qlik_Sense_setup.exe'
|
||||
License = @{
|
||||
Serial = '1234567890'
|
||||
Control = '12345'
|
||||
Name = 'User'
|
||||
Organization = 'Organization'
|
||||
}
|
||||
PSDscRunasCredential = $QlikAdmin
|
||||
DependsOn = "[Group]Administrators"
|
||||
}
|
||||
|
||||
QlikVirtualProxy SAML
|
||||
{
|
||||
Prefix = "saml"
|
||||
Description = "SAML"
|
||||
SessionCookieHeaderName = "X-Qlik-Session-SAML"
|
||||
LoadBalancingServerNodes = "name eq 'Central'"
|
||||
AuthenticationMethod = "saml"
|
||||
SamlMetadataIdp = (Get-Content -raw c:\install\idp-metadata.xml)
|
||||
SamlHostUri = "https://$($env:computername)"
|
||||
SamlEntityId = "https://$($env:computername)/saml"
|
||||
SamlAttributeUserId = "uid"
|
||||
SamlAttributeUserDirectory = "[SAML]"
|
||||
SamlAttributeMapMandatory = @{
|
||||
mail = 'email'
|
||||
}
|
||||
samlSlo = $true
|
||||
SamlMetadataExportPath = "c:\install\saml_metadata_sp.xml"
|
||||
Proxy = $env:computername
|
||||
PSDscRunasCredential = $QlikAdmin
|
||||
Ensure = "Present"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QlikConfig -ConfigurationData $configData
|
||||
Start-DscConfiguration -Path .\QlikConfig -Wait -Verbose -Force
|
||||
@@ -1,6 +1,6 @@
|
||||
Configuration SenseSetup {
|
||||
# Load required modules
|
||||
Import-DscResource -ModuleName PSDesiredStateConfiguration, QlikResources, xSmbShare, CitiClarity
|
||||
Import-DscResource -ModuleName PSDesiredStateConfiguration, QlikResources #, xSmbShare, CitiClarity
|
||||
|
||||
# Configuration for all nodes
|
||||
Node $AllNodes.NodeName {
|
||||
@@ -60,97 +60,97 @@ Configuration SenseSetup {
|
||||
}
|
||||
}
|
||||
|
||||
Node $AllNodes.Where{$_.Role -eq 'Scheduler'}.Nodename {
|
||||
$CentralNode = $AllNodes.Where{$_.Role -eq 'Central'}.NodeName
|
||||
# Node $AllNodes.Where{$_.Role -eq 'Scheduler'}.Nodename {
|
||||
# $CentralNode = $AllNodes.Where{$_.Role -eq 'Central'}.NodeName
|
||||
|
||||
# Skip kerberos if the installer doesn't exist
|
||||
if (Test-Path "\\$CentralNode\Clarity\Install\kfw-4.1-amd64.msi") {
|
||||
Package Kerberos {
|
||||
Name = 'MIT Kerberos for Windows (64-bit) 4.1.0'
|
||||
Path = "\\$CentralNode\Clarity\Install\kfw-4.1-amd64.msi"
|
||||
ProductId = '{AF6E168F-F6FE-4728-8F6E-E3E68F5C1FD3}'
|
||||
Credential = $Node.ServiceAccount
|
||||
Ensure = 'Present'
|
||||
}
|
||||
# # Skip kerberos if the installer doesn't exist
|
||||
# if (Test-Path "\\$CentralNode\Clarity\Install\kfw-4.1-amd64.msi") {
|
||||
# Package Kerberos {
|
||||
# Name = 'MIT Kerberos for Windows (64-bit) 4.1.0'
|
||||
# Path = "\\$CentralNode\Clarity\Install\kfw-4.1-amd64.msi"
|
||||
# ProductId = '{AF6E168F-F6FE-4728-8F6E-E3E68F5C1FD3}'
|
||||
# Credential = $Node.ServiceAccount
|
||||
# Ensure = 'Present'
|
||||
# }
|
||||
|
||||
File krb5.ini {
|
||||
SourcePath = "\\$CentralNode\Clarity\Install\krb5.ini"
|
||||
DestinationPath = "$env:PROGRAMDATA\MIT\Kerberos5\krb5.ini"
|
||||
Type = 'File'
|
||||
Checksum = 'SHA-1'
|
||||
Ensure = 'Present'
|
||||
Credential = $Node.ServiceAccount
|
||||
DependsOn = '[Package]Kerberos'
|
||||
}
|
||||
# File krb5.ini {
|
||||
# SourcePath = "\\$CentralNode\Clarity\Install\krb5.ini"
|
||||
# DestinationPath = "$env:PROGRAMDATA\MIT\Kerberos5\krb5.ini"
|
||||
# Type = 'File'
|
||||
# Checksum = 'SHA-1'
|
||||
# Ensure = 'Present'
|
||||
# Credential = $Node.ServiceAccount
|
||||
# DependsOn = '[Package]Kerberos'
|
||||
# }
|
||||
|
||||
File keytab {
|
||||
SourcePath = "\\$CentralNode\Clarity\Install\all_keytabs_prod"
|
||||
DestinationPath = "D:\all_keytabs_prod"
|
||||
Type = 'Directory'
|
||||
Checksum = 'SHA-1'
|
||||
MatchSource = $true
|
||||
Ensure = 'Present'
|
||||
Credential = $Node.ServiceAccount
|
||||
DependsOn = '[Package]Kerberos'
|
||||
}
|
||||
}
|
||||
# File keytab {
|
||||
# SourcePath = "\\$CentralNode\Clarity\Install\all_keytabs_prod"
|
||||
# DestinationPath = "D:\all_keytabs_prod"
|
||||
# Type = 'Directory'
|
||||
# Checksum = 'SHA-1'
|
||||
# MatchSource = $true
|
||||
# Ensure = 'Present'
|
||||
# Credential = $Node.ServiceAccount
|
||||
# DependsOn = '[Package]Kerberos'
|
||||
# }
|
||||
# }
|
||||
|
||||
# Skip Cloudera if installer doesn't exist
|
||||
if (Test-Path "\\$CentralNode\Clarity\Install\ClouderaImpalaODBC64.msi") {
|
||||
Package Cloudera {
|
||||
Name = 'Cloudera ODBC Driver for Impala'
|
||||
Path = "\\$CentralNode\Clarity\Install\ClouderaImpalaODBC64.msi"
|
||||
ProductId = '{111ADFD9-99CC-4695-8F48-44A5B397249D}'
|
||||
Credential = $Node.ServiceAccount
|
||||
Ensure = 'Present'
|
||||
}
|
||||
# # Skip Cloudera if installer doesn't exist
|
||||
# if (Test-Path "\\$CentralNode\Clarity\Install\ClouderaImpalaODBC64.msi") {
|
||||
# Package Cloudera {
|
||||
# Name = 'Cloudera ODBC Driver for Impala'
|
||||
# Path = "\\$CentralNode\Clarity\Install\ClouderaImpalaODBC64.msi"
|
||||
# ProductId = '{111ADFD9-99CC-4695-8F48-44A5B397249D}'
|
||||
# Credential = $Node.ServiceAccount
|
||||
# Ensure = 'Present'
|
||||
# }
|
||||
|
||||
# Create ODBC DSN for Cloudera
|
||||
OdbcDsn Cloudera {
|
||||
DsnName = 'Impala PROD'
|
||||
DsnType = 'System'
|
||||
DriverName = 'Cloudera ODBC Driver for Impala'
|
||||
Platform = '64-Bit'
|
||||
Attribute = @{
|
||||
AllowHostNameCNMismatch = "0"
|
||||
AllowSelfSignedServerCert = "0"
|
||||
AsyncExecPollInterval = "10"
|
||||
AuthMech = "1"
|
||||
AutoReconnect = "1"
|
||||
CurrentSchemaRestrictedMetadata = "0"
|
||||
DefaultKeytabFile = "D:\all_keytabs_prod\pbgxsprd_dsccr001d01i1p.eur.nsroot.net.keytab"
|
||||
DelegateKrbCreds = "0"
|
||||
DelegationUID = ""
|
||||
DESCRIPTION = ""
|
||||
EnableSimulatedTransactions = "0"
|
||||
Host = "dsccr001d01i1p.eur.nsroot.net"
|
||||
KrbFQDN = "dsccr001d01i1p.eur.nsroot.net"
|
||||
KrbRealm = "EURUXPROD.DYN.NSROOT.NET"
|
||||
KrbServiceName = "impala"
|
||||
Port = "21050"
|
||||
RowsFetchedPerBlock = "10000"
|
||||
Schema = ""
|
||||
ServicePrincipalCanonicalization = "0"
|
||||
SocketTimeout = "30"
|
||||
SSL = "0"
|
||||
StringColumnLength = "32767"
|
||||
TrustedCerts = "C:\Program Files\Cloudera ODBC Driver for Impala\lib\cacerts.pem"
|
||||
TSaslTransportBufSize = "1000000"
|
||||
UID = "pbgxsprd/dsccr001d01i1p.eur.nsroot.net"
|
||||
UPNKeytabMappingFile = ""
|
||||
UseKeytab = "1"
|
||||
UseNativeQuery = "0"
|
||||
UseOnlySSPI = "0"
|
||||
UseSASL = "1"
|
||||
UseSQLUnicodeTypes = "0"
|
||||
UseSystemTrustStore = "0"
|
||||
LCaseSspKeyName = ""
|
||||
CheckCertRevocation = "1"
|
||||
}
|
||||
DependsOn = '[Package]Cloudera'
|
||||
}
|
||||
}
|
||||
}
|
||||
# # Create ODBC DSN for Cloudera
|
||||
# OdbcDsn Cloudera {
|
||||
# DsnName = 'Impala PROD'
|
||||
# DsnType = 'System'
|
||||
# DriverName = 'Cloudera ODBC Driver for Impala'
|
||||
# Platform = '64-Bit'
|
||||
# Attribute = @{
|
||||
# AllowHostNameCNMismatch = "0"
|
||||
# AllowSelfSignedServerCert = "0"
|
||||
# AsyncExecPollInterval = "10"
|
||||
# AuthMech = "1"
|
||||
# AutoReconnect = "1"
|
||||
# CurrentSchemaRestrictedMetadata = "0"
|
||||
# DefaultKeytabFile = "D:\all_keytabs_prod\pbgxsprd_dsccr001d01i1p.eur.nsroot.net.keytab"
|
||||
# DelegateKrbCreds = "0"
|
||||
# DelegationUID = ""
|
||||
# DESCRIPTION = ""
|
||||
# EnableSimulatedTransactions = "0"
|
||||
# Host = "dsccr001d01i1p.eur.nsroot.net"
|
||||
# KrbFQDN = "dsccr001d01i1p.eur.nsroot.net"
|
||||
# KrbRealm = "EURUXPROD.DYN.NSROOT.NET"
|
||||
# KrbServiceName = "impala"
|
||||
# Port = "21050"
|
||||
# RowsFetchedPerBlock = "10000"
|
||||
# Schema = ""
|
||||
# ServicePrincipalCanonicalization = "0"
|
||||
# SocketTimeout = "30"
|
||||
# SSL = "0"
|
||||
# StringColumnLength = "32767"
|
||||
# TrustedCerts = "C:\Program Files\Cloudera ODBC Driver for Impala\lib\cacerts.pem"
|
||||
# TSaslTransportBufSize = "1000000"
|
||||
# UID = "pbgxsprd/dsccr001d01i1p.eur.nsroot.net"
|
||||
# UPNKeytabMappingFile = ""
|
||||
# UseKeytab = "1"
|
||||
# UseNativeQuery = "0"
|
||||
# UseOnlySSPI = "0"
|
||||
# UseSASL = "1"
|
||||
# UseSQLUnicodeTypes = "0"
|
||||
# UseSystemTrustStore = "0"
|
||||
# LCaseSspKeyName = ""
|
||||
# CheckCertRevocation = "1"
|
||||
# }
|
||||
# DependsOn = '[Package]Cloudera'
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# Configuration for Central node only
|
||||
Node $AllNodes.Where{$_.Role -eq 'Central'}.NodeName {
|
||||
@@ -181,15 +181,15 @@ Configuration SenseSetup {
|
||||
}
|
||||
}
|
||||
|
||||
xSmbShare QlikClusterShare
|
||||
{
|
||||
Path = $ClusterLocalPath
|
||||
Name = 'Clarity'
|
||||
FullAccess = @($ConfigurationData.NonNodeData.Shares.Cluster.Full |?{$_}) +
|
||||
$Node.ServiceAccount.GetNetworkCredential().UserName
|
||||
Ensure = 'Present'
|
||||
DependsOn = '[File]QlikClusterRoot'
|
||||
}
|
||||
# xSmbShare QlikClusterShare
|
||||
# {
|
||||
# Path = $ClusterLocalPath
|
||||
# Name = 'Clarity'
|
||||
# FullAccess = @($ConfigurationData.NonNodeData.Shares.Cluster.Full |?{$_}) +
|
||||
# $Node.ServiceAccount.GetNetworkCredential().UserName
|
||||
# Ensure = 'Present'
|
||||
# DependsOn = '[File]QlikClusterRoot'
|
||||
# }
|
||||
|
||||
# Install Sense as a Central node
|
||||
QlikPackage Central
|
||||
@@ -493,26 +493,26 @@ X-Content-Type-Options: nosniff
|
||||
|
||||
# Ensure QRS connection string is configured for SSL
|
||||
# and is set to use TLS 1.2 only
|
||||
SenseRepository Postgres {
|
||||
SSLMode = 'Require'
|
||||
TLSProtocol = '1.2'
|
||||
PostgresCommandTimeout = 0
|
||||
DependsOn = '[WaitForSense]Repository'
|
||||
}
|
||||
# SenseRepository Postgres {
|
||||
# SSLMode = 'Require'
|
||||
# TLSProtocol = '1.3'
|
||||
# PostgresCommandTimeout = 0
|
||||
# DependsOn = '[WaitForSense]Repository'
|
||||
# }
|
||||
|
||||
$CentralNode = $AllNodes.Where{$_.Role -eq 'Central'}.NodeName
|
||||
$NodeSetup = @(Get-ChildItem "$ClusterLocalPath\Install\node-*.msi")[0].Name
|
||||
# Upgrade the version of node js used by the Sense service dispatcher
|
||||
if ($NodeSetup) {
|
||||
Package NodeJS {
|
||||
Name = 'Node.js'
|
||||
Path = "\\$CentralNode\Clarity\Install\$NodeSetup"
|
||||
ProductId = '{A6606125-61E2-43C3-BFCF-0E571EC56656}'
|
||||
Arguments = 'INSTALLDIR="C:\Program Files\Qlik\Sense\ServiceDispatcher\Node" REBOOT=ReallySuppress /norestart'
|
||||
Credential = $Node.ServiceAccount
|
||||
Ensure = 'Present'
|
||||
DependsOn = '[QlikProxy]Local', '[QlikVirtualProxy]Default'
|
||||
}
|
||||
}
|
||||
# $CentralNode = $AllNodes.Where{$_.Role -eq 'Central'}.NodeName
|
||||
# $NodeSetup = @(Get-ChildItem "$ClusterLocalPath\Install\node-*.msi")[0].Name
|
||||
# # Upgrade the version of node js used by the Sense service dispatcher
|
||||
# if ($NodeSetup) {
|
||||
# Package NodeJS {
|
||||
# Name = 'Node.js'
|
||||
# Path = "\\$CentralNode\Clarity\Install\$NodeSetup"
|
||||
# ProductId = '{A6606125-61E2-43C3-BFCF-0E571EC56656}'
|
||||
# Arguments = 'INSTALLDIR="C:\Program Files\Qlik\Sense\ServiceDispatcher\Node" REBOOT=ReallySuppress /norestart'
|
||||
# Credential = $Node.ServiceAccount
|
||||
# Ensure = 'Present'
|
||||
# DependsOn = '[QlikProxy]Local', '[QlikVirtualProxy]Default'
|
||||
# }
|
||||
# }
|
||||
}
|
||||
}
|
||||
94
bt-autoscaler/terraform/roots/scripts/environment.psd1
Normal file
94
bt-autoscaler/terraform/roots/scripts/environment.psd1
Normal file
@@ -0,0 +1,94 @@
|
||||
@{
|
||||
AllNodes = @(
|
||||
@{
|
||||
NodeName = 'sense0'
|
||||
Hostname = 'sense0'
|
||||
Name = 'Central'
|
||||
Role = "Central"
|
||||
ConcurrentTasks = 10
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense1'
|
||||
Hostname = 'sense1'
|
||||
Name = 'Scheduler 1'
|
||||
Role = "Scheduler"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense2'
|
||||
Hostname = 'sense2'
|
||||
Name = 'Scheduler 2'
|
||||
Role = "Scheduler"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense3'
|
||||
Hostname = 'sense3'
|
||||
Name = 'Engine 1'
|
||||
Role = "Engine"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense4'
|
||||
Hostname = 'sense4'
|
||||
Name = 'Engine 2'
|
||||
Role = "Engine"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense5'
|
||||
Hostname = 'sense5'
|
||||
Name = 'Engine 3'
|
||||
Role = "Engine"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense6'
|
||||
Hostname = 'sense6'
|
||||
Name = 'Proxy 1'
|
||||
Role = "Proxy"
|
||||
},
|
||||
@{
|
||||
NodeName = 'sense7'
|
||||
Hostname = 'sense7'
|
||||
Name = 'Proxy 2'
|
||||
Role = "Proxy"
|
||||
}
|
||||
)
|
||||
NonNodeData = @{
|
||||
Thumprint = ''
|
||||
Sense = @{
|
||||
ReleaseName = 'Qlik Sense November 2017'
|
||||
License = @{
|
||||
Serial = '9999000000001292'
|
||||
Control = '16902'
|
||||
Name = 'Qlik'
|
||||
Organization = 'Qlik'
|
||||
Lef = @"
|
||||
9999000000001292
|
||||
PURPOSE;2019 Internal Sense Token Key;;
|
||||
PRODUCTLEVEL;50;;2020-01-31
|
||||
TOKENS;100;;
|
||||
OVERAGE;NO;;
|
||||
TIMELIMIT;;;2020-01-31
|
||||
Z8D9-SZYD-J5RR-D86G-2M4L
|
||||
"@
|
||||
}
|
||||
RootAdmin = @(
|
||||
|
||||
)
|
||||
HostWhiteList = 'sense0'
|
||||
}
|
||||
Shares = @{
|
||||
Cluster = @{
|
||||
Full = @(
|
||||
'qlik'
|
||||
)
|
||||
Read = @()
|
||||
}
|
||||
Sense = @{
|
||||
Full = @(
|
||||
'qlik'
|
||||
)
|
||||
Read = @(
|
||||
'guest'
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
Configuration Main {
|
||||
Param (
|
||||
Param (
|
||||
[string]$SenseSetupUri = "https://da3hntz84uekx.cloudfront.net/QlikSense/11.24/0/_MSI/Qlik_Sense_setup.exe",
|
||||
[string]$SenseUpdateUri = "https://da3hntz84uekx.cloudfront.net/QlikSense/11.24/1/_MSI/Qlik_Sense_update.exe",
|
||||
[string]$DownloadPath = $env:temp,
|
||||
|
||||
Reference in New Issue
Block a user