Skip to content

Commit

Permalink
Merge pull request #38 from lorengordon/fix/forescout-service-race-co…
Browse files Browse the repository at this point in the history
…ndition
  • Loading branch information
lorengordon authored Sep 13, 2024
2 parents d10650c + 3c71728 commit 5ae4de0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions forescout-secure-connector/package/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,33 @@ ForeScout SecureConnector Daemon Installed:
- cmd: ForeScout SecureConnector Installed
{%- endif %}
ForeScout SecureConnector Systemd Service File:
file.managed:
- name: /etc/systemd/system/SecureConnector.service
- content: |
[Unit]
Description=ForeScout SecureConnector
[Service]
ExecStart={{ forescout.package.install_dir }}/ForeScoutSecureConnector
[Install]
WantedBy=multi-user.target
- user: root
- group: root
- mode: 0644
- selinux:
serange: 's0'
serole: 'object_r'
setype: 'etc_t'
seuser: 'system_u'
ForeScout SecureConnector Installed:
cmd.run:
- name: {{ forescout.package.archive.extract_directory }}/{{ forescout.package.install_cmd }}
- unless: {{ forescout.package.installed_test }}
- require:
- archive: ForeScout SecureConnector Archive Extracted
- file: ForeScout SecureConnector Systemd Service File
- pkg: ForeScout SecureConnector Dependencies Installed
Restore pkgverify options:
Expand Down

0 comments on commit 5ae4de0

Please sign in to comment.