Skip to content

SCRTY-B-V/iapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iapp — Infrastructure as PowerPoint

⚠️ This is a joke. Please do not put this in production. Ever.

It is a wonky weekend idea about turning PowerPoint decks into Ansible inventories by interpreting shapes as hosts/groups and arrows as membership edges. It "works" in the narrow sense that bytes go in and YAML comes out — that is not the same thing as being a good idea.

Why you should not use this

  • PowerPoint is not a source of truth. It is a presentation tool.
  • Arrows in a deck mean whatever the author felt like that morning.
  • A slide with a typo will happily generate an inventory with a typo.
  • "Did marketing just reshape our prod topology?" is not a question your on-call rotation should have to answer.
  • Version control on .pptx is a binary-diff nightmare.
  • There is no schema, no validation, no dry-run worth the name.
  • Real IaC tools (Ansible, Terraform, Pulumi, …) exist and are good. Use those.

What it actually does

  1. Reads a .pptx with python-pptx.
  2. Treats each text-bearing shape as a node (first line = name, extra key: value lines = vars).
  3. Treats each connector as an edge; nodes with outgoing edges become groups, leaves become hosts.
  4. Emits an Ansible inventory YAML, and optionally a playbook scaffold ordered leaves-first.

Usage

pip install python-pptx pyyaml
python make_example.py                # builds example.pptx
python iapp.py example.pptx -o inventory.yml --playbook site.yml

License / expectations

Do whatever you want with it. If it breaks your datacenter that is between you and the slide deck you chose to trust.

About

Infrastructure as Powerpoint... why?!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages