Skip to content

Collection of pre-written Pyinfra modules for common use cases

License

Notifications You must be signed in to change notification settings

hoh/pyinfra-formulas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyinfra-formulas

This project has just started, and is work in progress.

Collection of pre-written Pyinfra modules for common use cases. They are open-ended and can be used for tasks such as installing and configuring a software.

The motivation behind this project is to fill the gap between modules and roles: roles would not have to detail how a functionality is implemented and could use a level of abstraction above the exact modules required.

Installation

pip install pyinfra-formulas

Usage

Here is simple deploy file to illustrate how you can use a formula (assuming you have a folder named example_org_files containing your website and the DNS configured).

from formulas.nginx import synced_website

synced_website(
    'www.example.org',
    'example_org_files',
)

Do deploy the website, just run:

pyinfra -i $MY_SERVER_IP deploy.py

About

Collection of pre-written Pyinfra modules for common use cases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages