A Python package used to install and enroll the Elastic Agent on multiple operating systems. Created using carcass
Project description
elastic-agent-setup
A python package to install and enroll an Elastic Agent on multiple host operating systems.
Getting Started
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)
Built With
- carcass - Python packaging template
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning.
Authors
- Josh Rickard - Initial work - MSAdministrator
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file elastic-agent-setup-0.0.10.tar.gz
.
File metadata
- Download URL: elastic-agent-setup-0.0.10.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3491c78046ab6a8c5219b3a96a0a0de56a529f87cc9ce266a790a96c0f81200 |
|
MD5 | 35a04e8148cbb9aa0b8fe8b54fc03d8c |
|
BLAKE2b-256 | b03d5955ca5be479a1ebd0e9bc605b263883ff76112b546d6932fe7943df8018 |
File details
Details for the file elastic_agent_setup-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: elastic_agent_setup-0.0.10-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49d72ca9c74eee09477eb9adc660dc54391b294cd2d58719c75b406e8c6c7e1 |
|
MD5 | cbc2e6608d07c59c03ec004f80d84c6f |
|
BLAKE2b-256 | 0c9f9503b76d1fe151c41d9b6efb5cd229e1e5c0ef839b4bd1873806c9ea2741 |