Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
freckles / example.py
Size: Mime:
# -*- coding: utf-8 -*-
import json  # noqa: E401
import subprocess

hosts = ["dev.cutecode.co"]
tasks = []

for host in hosts:
    task = {
        "frecklecute": {
            "target": "root@{}".format(host),
            "frecklet": "basic-hardening",
            "vars": {"fail2ban": True, "ufw": True, "ufw_open_tcp": [80, 443]},
        }
    }
    tasks.append(task)

subprocess.run(["freckles", json.dumps(tasks)])