Nate Mellendorf
https://www.linkedin.com/in/nathan-mellendorf/
ConfigPy - Standalone is just the rendering portion of the ConfigPy application. It does not require the configpy-node or a Juniper device to function.
In short, you can leverage standalone to quickly render your Jinja2 templates on the fly.
GitHub Oauth Application for ConfigPy.
A working Oauth configuration example:
Homepage URL:
http://127.0.0.1/render
Authorization callback URL:
http://127.0.0.1/github-callback
After being supplied with your GitHub OAuth App settings, ConfigPy will search your repositories for readme files that contain the word "configpy". These repositories are expected to have .j2 and .yml template files within their root directory.
Your YAML answer files should be named to match their respective Jinja2 templates.
Example:
Template files can leverage multiple include statements. This is helpful in creating smaller, reusable Jinja templates.
{% include "default_firewall_rules.j2" %}
{% include "aaa_settings.j2" %}
{% include "logging_settings.j2" %}
Create a private or organization GitHub OAuth application
Clone the repository, change your working directory, and checkout this branch
git clone [email protected]:natemellendorf/configpy.git
cd configpy
git checkout configpy/standalone
Update the docker-compose file with your GitHub Oauth Client ID and Client Secret.
Launch docker-compose to start ConfigPy - Standalone
docker-compose up
Browse to http://127.0.0.1:8000/render
Content type
Image
Digest
Size
381.5 MB
Last updated
about 7 years ago
docker pull natemellendorf/configpy