A python package to install and enroll an Elastic Agent on multiple host operating systems.
In order to use this package you must configure general settings for your environment. Here is an example of the configuration options:
from elastic_agent_setup import ElasticAgent
agent = ElasticAgent()
agent.configure(
username='admin',
password='some_password'
elasticsearch='https://elasticsearch:9200',
kibana='https://kibana:5601',
certificate_authority=None,
verify_ssl=True
)
Once you have configured the elastic-agent-setup
package you can either install
or enroll
your elastic-agent.
Please see Elatics documentation on the differences between enrolling and installing an agent.
Here is an example of installing an Elastic Agent:
from elastic_agent_setup import ElasticAgent
agent = ElasticAgent()
agent.configure(
username='admin',
password='some_password'
elasticsearch='https://elasticsearch:9200',
kibana='https://kibana:5601',
certificate_authority=None,
verify_ssl=True
)
response = agent.install(
version='7.12.1,
preflight_check=True
)
print(response)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details