Skip to content

ccarpita/pinstripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinstripe

A Python DSL for high-speed provisioning

Example

from pinstripe import Context, cli, playbook, add_default_hostgroup

from pathlib import Path

add_default_hostgroup(["localhost"])

def example_playbook(ctx: Context):

    (ctx.file(Path("~/.pinstripe-example-data.yml").expanduser())
        .exists()
        .contents_if_empty("---"))

    (ctx.directory(Path("~/.pinstripe-example-dir").expanduser())
        .exists())

    (ctx.directory(Path("~/.pinstripe-legacy").expanduser())
        .exists())

    ctx.run("sw_vers").ignore_failures()

    ctx.scoped(os="debian").run("lsb_release")


playbook("example", example_playbook)

About

WIP: A Python DSL for high-speed provisioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages