Skip to content

Chef Resources

The falcon_install: resource is a wrapper resource around the native Chef service resource and allows you to maintain the state of the Falcon service.

The Default action is :install

NameDescription
:installInstalls the Falcon sensor.
:removeRemoves the Falcon sensor.
NameTypeDefaultDescription
versionStringThe version of the Falcon sensor to install
version_manage[true, false]falseWhether or not Chef should enforce a specific version and do upgrades/downgrades
client_idStringThe client id used to authenticate with the Falcon API
client_secretStringThe client secret used to authenticate with the Falcon API
update_policyStringThe update policy to use to determine the package version to download and install
version_decrementInteger0The number of versions to decrement the desired version by
falcon_cloudStringapi.crowdstrike.comThe Falcon API cloud to use
cleanup_installer[true, false]trueWhether or not to cleanup the installer after installation
install_method[‘api’, ‘local’]apiThe method to use to install the Falcon sensor
package_sourceStringThe path to the package in the local file system
sensor_tmp_dirString/tmpThe directory to stage the Falcon package in
falcon_install 'falcon' do
client_id 'LKJSDLFKJSLKDJFKLJ'
client_secret 'SDLKFJLKSJDFLKJSDFLK'
action :install
end
falcon_install 'falcon' do
client_id 'LKJSDLFKJSLKDJFKLJ'
client_secret 'SDLKFJLKSJDFLKJSDFLK'
falcon_cloud 'api.us-2.crowdstrike.com'
update_policy 'ACME Policy'
action :install
end
falcon_install 'falcon' do
install_method 'local'
package_source '/tmp/falcon-sensor.rpm'
action :install
end

The falcon_config: resource configures the Falcon sensor.

The Default action is :set

NameDescription
:setSet options for the Falcon sensor
:deleteDelete options for the Falcon sensor
NameTypeDefaultDescription
cidStringThe Customer CID to register the agent with
proxy_hostStringThe proxy host to use for the agent
proxy_portIntegerThe proxy port to use for the agent
proxy_enabled[true, false]Whether or not to enable the proxy for the agent
tagsArray[]The tags to set on the agent
provisioning_tokenStringThe provisioning token to use to register the agent
tag_membership[“minimum”, “inclusive”]minimumWhether specified tags should be treated as a complete list inclusive or as a list of tags to add to the existing list minimum
falcon_config 'falcon' do
cid 'JKLJSDLKFJLKSJDFLKJSDLKFJ-28'
notifies :restart, 'falcon_service[falcon]', :delayed
action :set
end
falcon_config 'falcon' do
cid 'JKLJSDLKFJLKSJDFLKJSDLKFJ-28'
tags %w(tag1 tag2 tag3)
proxy_host 'http://example.com'
proxy_port 8080
proxy_enabled true
notifies :restart, 'falcon_service[falcon]', :delayed
action :set
end

The falcon_service: resource is a wrapper resource around the native Chef service resource and allows you to maintain the state of the Falcon service.

The Default action is :start

NameDescription
:disableDisable the service from starting at boot.
:enableEnable the service at boot.
:reloadReload the configuration for this service.
:restartRestart the service.
:startStart the service, and keep it running until stopped or disabled.
:stopStop the service.
NameTypeDefaultDescription
service_nameStringfalcon-sensorThe name of the falcon service
falcon_service 'falcon' do
action [:start, :enable]
end