Skip to content

Commit

Permalink
Merge pull request #31 from carlosmmatos/update-ci-fix-local-install
Browse files Browse the repository at this point in the history
Update ci and fix local install
  • Loading branch information
redhatrises authored Dec 1, 2022
2 parents 5db4d0d + b25e2b7 commit baa6867
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- install-api-policy
- install-api-decrement
- install-cleanup-installer
- install-local
- config-set
- config-delete
fail-fast: false
Expand Down
2 changes: 2 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ rules:
max-spaces-inside: 1
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
ignore: |
.github/
12 changes: 11 additions & 1 deletion test/cookbooks/test/recipes/install_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
not_if { ::File.directory?('/opt/CrowdStrike') }
end

# if os family is RHEL, set rpm extension
# if os family is debian, set deb extension
case node['platform_family']
# When RHEL or Amazon linux
when 'rhel', 'amazon'
extension = 'rpm'
when 'debian'
extension = 'deb'
end

falcon_install 'falcon' do
install_method 'local'
# Use shell_out to get the path to the falcon package
package_source shell_out('find /tmp | grep falcon-sensor').stdout.strip
package_source '/tmp/falcon-sensor.' + extension
action :install
end

Expand Down

0 comments on commit baa6867

Please sign in to comment.