Skip to content

Commit

Permalink
Merge pull request #1136 from grogsaxle/develop
Browse files Browse the repository at this point in the history
SSL_CERT_DIR setting for service
  • Loading branch information
daveed12 authored May 4, 2022
2 parents f3ba938 + f8bdf8b commit c7182dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hubblestack/grains/osqueryinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def osquery_host_state():
deets["auditd_present"] = True
deets[grain_key] = "inactive"
except subprocess.CalledProcessError:
log.info("%s doesn't seem to be running according to systemd")
log.info("%s doesn't seem to be running according to systemd", systemd_name)
except Exception as e:
log.info("Unknown exception checking systemctl for %s status: %s", systemd_name, e)

Expand Down
2 changes: 1 addition & 1 deletion pkg/flatcar.arm64/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mkdir -p /etc/systemd/system
mkdir -p /etc/profile.d
mkdir -p /etc/hubble/hubble.d

cp -v /hubble_build/pkg/hubble.service /etc/hubble/hubble-example.service
cp -v /hubble_build/pkg/hubble_flatcar.service /etc/hubble/hubble-example.service
cp -v /hubble_build/conf/hubble-profile.sh /etc/profile.d/
cp -v /hubble_build/conf/hubble-d-conf /etc/hubble/hubble.d

Expand Down
16 changes: 16 additions & 0 deletions pkg/hubble_flatcar.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Hubblestack
Requires=network-online.target
After=network-online.target

[Service]
Type=forking
PIDFile=/var/run/hubble.pid
ExecStart=/opt/hubble/hubble -d
Restart=always
RestartSec=300
MemoryAccounting=true
Environment=SSL_CERT_DIR=/usr/share/ca-certificates/

[Install]
WantedBy=multi-user.target

0 comments on commit c7182dd

Please sign in to comment.