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.11.tar.gz
.
File metadata
- Download URL: elastic-agent-setup-0.0.11.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5795e570facf751aa4e4a31bbb53559de19ef62631ff2143057dd43abef35f33 |
|
MD5 | d613f58802954c0ae9b86dd9a0ab3c52 |
|
BLAKE2b-256 | 03372c389dda67708a8e676ab503c926135950c01aae11c8789306b93e00f80f |
File details
Details for the file elastic_agent_setup-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: elastic_agent_setup-0.0.11-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d332a14e9cef5cb03ef70ecd5177bde033f96e75d41fe8b69c481af42bf082 |
|
MD5 | bce0ec30b41e9efd38a97b6269c816b2 |
|
BLAKE2b-256 | 847addded3ca856f821a16f9f2c38238ef69506c69610b03273f60013bfd3c3d |