Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when trying to call latest falcon-linux-install.sh file through ansible code #353

Open
koushik527 opened this issue Aug 12, 2024 · 4 comments
Assignees
Labels
no-issue-activity question Further information is requested

Comments

@koushik527
Copy link

I am getting error when trying to call the falcon-linux-install.sh file through ansible code below

  • name Run Falcon installation
    environment:
    FALCON_CLIENT_ID: passing client ID
    FALCON_CLIENT_SECRET: passing secret
    shell: |
    export FALCON_CLIENT_ID=value
    export FALCON_CLIENT_SECRET= value
    opt/falcon-linux-install.sh

Getting error as below

Fatal error - Unable to obtain Crowdstrike Falcon OAuth Token .Double check your credentials and/or ensure you set the correct cloud region.

I am not sure what I am missing..could anyone guide me on this

@carlosmmatos carlosmmatos self-assigned this Aug 12, 2024
@carlosmmatos carlosmmatos added the question Further information is requested label Aug 12, 2024
@carlosmmatos
Copy link
Contributor

@koushik527 thanks for opening up an issue. Question for you, why aren't you just using our Ansible collection to do this instead of trying to wrap Ansible around this bash script?

Here's an example of how you can use our Ansible collection to install/configure the sensor for you using pure Ansible:

- hosts: all
  vars:
    falcon_client_id: <FALCON_CLIENT_ID>
    falcon_client_secret: <FALCON_CLIENT_SECRET>
  roles:
  - role: crowdstrike.falcon.falcon_install
  - role: crowdstrike.falcon.falcon_configure

Take a look at the README's for different options you can do within our roles.

@koushik527
Copy link
Author

Thanks @carlosmmatos for your response... As the code used is maintained am trying to use the same. This was working till last month .. Since I see falcon-linux-install file updated 3 weeks back . I was updating with the latest and am trying getting the error mentioned

@carlosmmatos
Copy link
Contributor

Since we don't support running the bash script in Ansible in this repository, the only thing you can do is tell us if you are experiencing an issue with running the script itself without Ansible.

Otherwise, as stated, if you would like an Ansible native way to deploy Falcon to your fleet, please consider using our Red Hat certified Ansible collection, which is fully supported and maintained.

Copy link

This issue has been automatically marked as stale because it has had no activity in the last 14 days.

What happens next:
• The issue will be closed in 7 days if no further activity occurs
• To keep this issue open, simply leave a comment
• Once closed, please feel free to re-open if the issue persists

Thank you for your contributions to this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants