Skip to content

Commit 50b3337

Browse files
cloud-init spacing bug (#7)
1 parent c96017e commit 50b3337

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

cloud-config/init.tpl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#cloud-config
22

33
write_files:
4-
- content: |
4+
- owner: root:root
5+
path: /etc/corelight/corelightctl.yaml
6+
permissions: '0644'
7+
content: |
58
sensor:
69
api:
710
password: ${community_string}
@@ -26,21 +29,17 @@ write_files:
2629
net: ${probe}
2730
%{ endfor ~}
2831

29-
owner: root:root
30-
path: /etc/corelight/corelightctl.yaml
31-
permissions: '0644'
32-
3332
runcmd:
3433
- corelightctl sensor deploy -v
3534
%{ if enrichment_enabled && cloud_provider == "aws" ~}
3635
- |
3736
echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "aws","cloud_enrichment.bucket_name": "${bucket_name}", "cloud_enrichment.bucket_location": "${bucket_region}"}' | corelightctl sensor cfg put
3837
%{ endif ~}
3938
%{ if enrichment_enabled && cloud_provider == "azure" ~}
40-
- |
39+
- |
4140
echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "azure","cloud_enrichment.bucket_name": "${bucket_name}", "cloud_enrichment.azure_storage_account": "${azure_storage_account_name}"}' | corelightctl sensor cfg put
4241
%{ endif ~}
4342
%{ if enrichment_enabled && cloud_provider == "gcp" ~}
44-
- |
45-
echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "gcp","cloud_enrichment.bucket_name": "${bucket_name}"}' | corelightctl sensor cfg put
43+
- |
44+
echo '{"cloud_enrichment.enable": "true", "cloud_enrichment.cloud_provider": "gcp","cloud_enrichment.bucket_name": "${bucket_name}"}' | corelightctl sensor cfg put
4645
%{ endif ~}

0 commit comments

Comments
 (0)