Skip to main content

Simple utility to generate a configuration manifest from a live CloudFoundry installation

Project description

# cf-configuration-exporter

`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 in combination with 2 other projects:

- https://github.com/SpringerPE/python-cfconfigurator
- https://github.com/SpringerPE/ansible-cloudfoundry-role

and helps you get started with an initial manifest 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf-configuration-exporter-0.0.12.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file cf-configuration-exporter-0.0.12.tar.gz.

File metadata

File hashes

Hashes for cf-configuration-exporter-0.0.12.tar.gz
Algorithm Hash digest
SHA256 34b954730e9f1ec75ef0eaa8f352d7d93b8fd18843c4d5a5838109e6b8c4e3df
MD5 58159793ec5971f3bd69377d5cd0b370
BLAKE2b-256 a58ca39994e58da29ad65c6a64b09291ce252a1e2407e564749e769be0d1c7e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page