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

chore: fix typos #581

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- fix typos
2 changes: 1 addition & 1 deletion molecule/falcon_configure/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-configure}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
2 changes: 1 addition & 1 deletion molecule/falcon_configure_remove_aid/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-configure-remove-aid}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
2 changes: 1 addition & 1 deletion molecule/falcon_install/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
2 changes: 1 addition & 1 deletion molecule/falcon_install_allow_downgrade/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install-allow-downgrade}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
2 changes: 1 addition & 1 deletion molecule/falcon_install_policy/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install-policy}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
2 changes: 1 addition & 1 deletion molecule/falcon_uninstall/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependency:
name: galaxy
driver:
name: ec2
# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2
# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2
platforms:
- name: "${MOLECULE_INSTANCE_NAME:-default-falcon-uninstall}"
image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}"
Expand Down
4 changes: 2 additions & 2 deletions plugins/inventory/falcon_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
notes:
- By default, Ansible will deduplicate the C(inventory_hostname), so if multiple hosts have the same hostname, only
the last one will be used. In this case, consider using the C(device_id) as the first preference in the C(hostnames).
You can use C(compose) to specify how Ansible will connectz to the host with the C(ansible_host) variable.
You can use C(compose) to specify how Ansible will connect to the host with the C(ansible_host) variable.
- If no credentials are provided, FalconPy will attempt to use the API credentials via environment variables.
- The current behavior is to use the hostname if it exists, otherwise we will attemp to use either the external
- The current behavior is to use the hostname if it exists; otherwise, we will attempt to use either the external
IP address or the local IP address. If neither of those exist, the host will be skipped as Ansible would not
be able to connect to it.
author:
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/falconpy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@

def check_falconpy_version(module):
"""Ensure FalconPy version is compatible."""
minumum_version = "1.3.0"
minimum_version = "1.3.0"

if FALCONPY_IMPORT_ERROR:
module.fail_json(
msg=f"Unable to import FalconPy: {FALCONPY_IMPORT_ERROR}. See module documentation for help."
)

if _VERSION < minumum_version:
if _VERSION < minimum_version:
module.fail_json(
msg=f"Unsupported FalconPy version: {_VERSION}. Upgrade to {minumum_version} or higher."
msg=f"Unsupported FalconPy version: {_VERSION}. Upgrade to {minimum_version} or higher."
)


Expand Down
10 changes: 5 additions & 5 deletions plugins/modules/falconctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
description:
- Installation tokens prevent unauthorized hosts from being accidentally or maliciously added to your customer ID (CID).
- Optional security measure for your CID.
- This paramter requires supplying a C(cid).
- This parameter requires supplying a C(cid).
type: str
aid:
description:
Expand Down Expand Up @@ -188,7 +188,7 @@ def __init__(self, module):

@classmethod
def __list_to_string(cls, value):
"""Converts paramaters passed as lists to strings"""
"""Converts parameters passed as lists to strings"""
if isinstance(value, list):
# Make a copy and return it
new_value = value[:]
Expand Down Expand Up @@ -278,7 +278,7 @@ def check_mode(self, before):
return values

def execute(self):
"""Run the falconctl commmand"""
"""Run the falconctl command"""
cmd = self.add_args(self.params["state"])
if not self.module.check_mode:
self.__run_command(cmd)
Expand All @@ -296,7 +296,7 @@ def get_values(self):
return get_options(values)

def validate_params(self, params):
"""Ensure paramaters are valid"""
"""Ensure parameters are valid"""

if params["provisioning_token"]:
# Ensure cid is also passed
Expand Down Expand Up @@ -335,7 +335,7 @@ def validate_params(self, params):
self.check_param("backend", ["auto", "bpf", "kernel"], True)

def check_param(self, param, options, to_lower=False):
"""Validate single paramater"""
"""Validate single parameter"""
if self.params[param]:
parameter = self.params[param].lower() if to_lower else self.params[param]

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/host_contain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- Manages the network containment state of Falcon hosts.
- To restrict a host that may be compromised from making network connections, contain
it within the network. Lift containment to restore its regular communication capabilities.
- The module will return a list of successfull and failed hosts agent IDs (AIDs) for
- The module will return a list of successful and failed hosts agent IDs (AIDs) for
the action performed.

options:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/host_hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- To prevent unnecessary detections from an inactive or a duplicate host,
you can opt to hide the host from the console. This action does not uninstall or
deactivate the sensor. Detection reporting resumes after a host is unhidden.
- The module will return a list of successfull and failed hosts agent IDs (AIDs) for
- The module will return a list of successful and failed hosts agent IDs (AIDs) for
the action performed.

options:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sensor_update_policy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
crowdstike.falcon.sensor_update_policy_info:
filter: "platform_name:'Windows'+enabled:'true'"

- name: Get Sensor Policies and sort assending by platform_name
- name: Get Sensor Policies and sort ascending by platform_name
crowdstike.falcon.sensor_update_policy_info:
sort: "platform_name.asc"
"""
Expand Down
6 changes: 3 additions & 3 deletions roles/falcon_install/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ falcon_client_secret: ""
# The Falcon sensor version to install. This allows you to pin a specific sensor
# version.
#
# NOTE: This variable will be overriden by falcon_sensor_update_policy_name.
# NOTE: This variable will be overridden by falcon_sensor_update_policy_name.
#
falcon_sensor_version: ""

# The Falcon sensor version to install by N-X. By default, this is the latest sensor version.
# Setting the value to 1 would install the sensor at N-1.
# The value must be an integer between 0 and 5 inclusive.
#
# NOTE: This variable will be overriden by falcon_sensor_update_policy_name or falcon_sensor_version.
# NOTE: This variable will be overridden by falcon_sensor_update_policy_name or falcon_sensor_version.
#
falcon_sensor_version_decrement: 0

Expand Down Expand Up @@ -168,7 +168,7 @@ falcon_windows_tmp_dir: "%SYSTEMROOT%\\Temp\\falcon-sensor"
#
falcon_windows_install_args: "/norestart"

# Additional arugments to uninstall the sensor.
# Additional arguments to uninstall the sensor.
# You can add your maintenance token here by adding MAINTENANCE_TOKEN=<token>
#
falcon_windows_uninstall_args: "/norestart"
Expand Down
Loading