Skip to content

Instantly share code, notes, and snippets.

@tomrgio
Last active July 24, 2019 10:10
Show Gist options
  • Save tomrgio/4ef1961652330fc336591643dd79a822 to your computer and use it in GitHub Desktop.
Save tomrgio/4ef1961652330fc336591643dd79a822 to your computer and use it in GitHub Desktop.
EMEA DCA workshop

EMEA DCA workshop implementation

Loading Effortless Audit

Linux

hab svc load chef-demo/linux_baseline

Windows

hab svc load chef-demo/windows_baseline

config.toml

interval = 120
report_to_stdout = true

[automate]
url = "https://<YOUR AUTOMATE FQDN>/data-collector/v0/"
token = "<YOUR AUTOMATE ADMIN TOKEN>"
user = '[email protected]'

Reporting to Automate

Linux

Applying Automate configuration

hab config apply linux_baseline.default $(date +%s) ./config.toml

Viewing logs

journalctl -fu hab-sup.service

Windows

Applying Automate configuration

hab config apply windows_baseline.default (Get-Date).Ticks .\config.toml

Viewing logs

Get-Content C:\hab\svc\windows-service\LOGS\Habitat.log -Wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment