Comments (4)
@TinLe - Appreciate the comment. Yes, we try to give an example of what this looks like here: https://github.com/CrowdStrike/ansible_collection_falcon?tab=readme-ov-file#example-using-the-built-in-roles-to-install-falcon
But I agree, we can update the falcon_install documentation to be more specific of how this works for Linux/Mac and Windows.
from ansible_collection_falcon.
@TinLe - Appreciate the comment. Yes, we try to give an example of what this looks like here: https://github.com/CrowdStrike/ansible_collection_falcon?tab=readme-ov-file#example-using-the-built-in-roles-to-install-falcon
But I agree, we can update the falcon_install documentation to be more specific of how this works for Linux/Mac and Windows.
My expectation of the falcon_install role is that:
- If it's going to automatically start the service after installation, then it should at least minimally configured it so that the service run correctly.
- If I wanted more tweaking, then I can optionally run falcon_configure to do so.
Otherwise, do not start the service automatically after install if it's going to be broken anyway and will not run.
Looking into the falcon_install tasks, I see that it does get the CID from api server already, and that falcon_configure will actually call falcon_install if the CID was not given as a var. Then falcon_install might as well set the CID after installing, before starting the service.
I think adding a boolean falcon_start_service var to falcon_install to determine whether the service should be started or not would be useful. Set it by default to false and let the user of the role decide.
from ansible_collection_falcon.
@TinLe The role itself does not automatically start the service after installing the sensor. The sensor package itself is doing that (not ansible). The CID in the install role is really for Windows systems only, this is just an artifact of what the old collection used to be.
So basically, for linux, this is how it works:
- Download and Install the sensor
- The sensor is automatically started and of course will fail to start because no CID has been provided. This does not fail your ansible stuff at all.
- Configure the sensor by at minimum providing the CID (this can be manually or via the API)
- Restart the sensor
Hope this explains better what is happening. Also, feel free to create your own roles or playbooks as well since as of V4, we really started focusing more on building out modules, dynamic inventories, and EDA plugins. The roles are just their as a nice to have right now, not sure if we will keep them or drop them in the future in lieu of playbook examples using the modules. Or we might decide to re-do the roles... stay tuned ;)
from ansible_collection_falcon.
@carlosmmatos Thank you for the background history. Yes, maintaining legacy code can be... challenging.
I agree that it's the sensor package that set itself up to autostart. However, my expectation is that the role should override that by default. Hence the suggestion of falcon_service_start
flag, with the default of false. The service requires a valid CID and will not start without one, so IMHO, it's broken and should not even get started at all.
The example show that you must run falcon_configure after installing. Since it is a required step, then falcon_install should disable/stop the service from starting. I do not look forward to having many instances with broken service installed.
A use case is where I might stage the install on many instances, but don't want it running yet till some time later when I can configure them.
I don't want to have a customized version of the role, that becomes a maintenance nightmare.
from ansible_collection_falcon.
Related Issues (20)
- Auth tasks fails due to sudo on localhost HOT 3
- falcon_install tries to connect to localhost via aws_ssm HOT 4
- ERROR: /opt/CrowdStrike/falconctl: unrecognized option '--message-log=True' HOT 6
- release 4.3.0
- new module - get host details using falcon hosts sc
- [falcon_install] Add ability to change permissions of the downloaded Falcon Sensor Installer HOT 3
- [falcon_configure] Add ability to prevent service falcon-sensor to start HOT 5
- [falcon_configure] Add ability to specify Customer ID and remove Agent ID HOT 4
- new module - query hidden hosts
- update sensor_download module to use new v2 endpoint
- update falcon_install role to take advantage of v2 sensor_download module
- new lookup plugin - get maintenance token
- new module - manage sensor update policies
- new module - manage prevention policies
- new module - manage filevantage policies
- new module - manage host groups
- new module - find|search for hosts to get list of AIDs HOT 1
- new plugin - lookup plugin for fetching host ids
- Consider adding /docs to the collection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible_collection_falcon.