No project description provided
Project description
Elastic Stacker
Purpose
This tool is used to export configuration objects (dashboards, pipelines, alerts, etc) out of one Elastic Stack and then allow importing in to another Stack.
A main use case is for moving from development done in a PRE environment, and in to a PROD environment. Another use case is for keeping configurations in sync between multiple production stacks, but that might live on separate networks.
Installation
pip install elastic-stacker
Contributing
- Clone the repository
- Set up Python environment:
pipenv install --dev
- Activate the environment:
pipenv shell
- Concrete-ize the configuration file, specifically replacing any occurences of
<REDACTED>
with real values:cp stacker.example.yaml stacker.yaml # Update any configuration options needed: nano stacker.yaml
- Run the tool (more detailed usage below):
stacker -p <pre|prod> system_dump
Usage
Running the tools
# Export all the user configurations from LC Elastic Pre
# Export should go in to the `files/` directory at the top of this repo
# this is so that the resulting exported objects can be tracked in git.
# You can also set the data directory in the config file (see the example).
stacker system_dump -p pre --data-directory $(git rev-parse --show-toplevel)/files/
# Check the changes that resulted from the export, make sure things look expected
git diff
# Add and commit any changes
git add $(git rev-parse --show-toplevel)/files/
git commit -m"Updated elastic repo with exported content"
License
Stacker is released under the Apache 2.0 license with LLVM exception. For more details see the LICENSE file.
LLNL-CODE-850537
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for elastic_stacker-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d054c1ed6fa038b52d91531328b1df2892e658eec3698abd5b34702fda793c3d |
|
MD5 | 4471ecdd3fb2f74a68549f475fd732f3 |
|
BLAKE2b-256 | 4b0cf3bc863024d78791b364feb697de6f1efcb51fc48cae39f326aeaa9d0c72 |