`cf-configuration-exporter` is a simple utility whose aim is to generate a
configuration manifest from a live installation of CloudFoundry.
The utility is meant to be used either in combination with the CF configurator project:
- https://github.com/SpringerPE/python-cfconfigurator
- https://github.com/SpringerPE/ansible-cloudfoundry-role
or with the following terraform provider:
- https://github.com/mevansam/terraform-provider-cf
and helps you get started with an initial manifest or terraform resources without having to extract manually
all the information needed.
The code is compatible with Python 3
Documentation of the APIs used:
* https://apidocs.cloudfoundry.org
* https://docs.cloudfoundry.org/api/uaa
#INSTALLATION
## Example
Install via pip: `pip install cf-configuration-exporter`
## Upload to PyPI
1. Create a `.pypirc` configuration file. This file holds your information for authenticating with PyPI.
```
[distutils]
index-servers = pypi
[pypi]
repository=https://pypi.python.org/pypi
username=your_username
password=your_password
```
2. Login and upload it to PyPI
```
python setup.py register -r pypi
python setup.py sdist upload -r pypi
```
#USAGE
```
Define the following env variables:
`EXPORTER_API_URL` = the endpoint of the Cloudfoundry API
`EXPORTER_ADMIN_USER` = username used for logging in to CloudFoundry
`EXPORTER_ADMIN_PASSWORD` = password used for logging in to Cloudfoundry
`EXPORTER_EXCLUDE_ENV_VARS` = list of `,` separated strings. The env variables whose name starts by
one of the prefixes listed will not be exported.
```
You can run the utility by executing the run script:
```
./run
```
or after installing the pip package
```
python setup.py install
```
by running
```
cf_export_configuration
```
## Author
Springer Nature Platform Engineering, Claudio Benfatto (claudio.benfatto@springer.com)
Copyright 2017 Springer Nature
Metadata
Release files for cf-configuration-exporter 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cf-configuration-exporter-0.0.13.tar.gz | 16.1 kB | Without provenance | Details for cf-configuration-exporter-0.0.13.tar.gz |
Release files / cf-configuration-exporter-0.0.13.tar.gz
| Download URL | cf-configuration-exporter-0.0.13.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c3d8dadaf1fde255374eaad2954ad626a21faa63a942988002ac9f8a74972e3
|
|
BLAKE2b-256 checksum How to use checksums |
98dbaee87fcec09ef9dcec309c9b0735178a33cc691f4c021777687480f94831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cf-configuration-exporter 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.