Mercurial > code > home > repos > infra
comparison pipe.py @ 103:8b8ef9d8f0fd
dead code and templates, reformat, maybe a little refactor
author | drewp@bigasterisk.com |
---|---|
date | Fri, 15 Jul 2022 15:24:44 -0700 |
parents | b70070570e10 |
children | 95fcc05c2747 |
comparison
equal
deleted
inserted
replaced
102:9ec487a381e2 | 103:8b8ef9d8f0fd |
---|---|
1 import os | 1 from pyinfra.operations import apt, files, git, server |
2 import tempfile | |
3 | |
4 from pyinfra import host | |
5 from pyinfra.facts.files import FindInFile | |
6 from pyinfra.facts.server import Arch, LinuxDistribution | |
7 from pyinfra.operations import apt, files, server, systemd, git | |
8 | 2 |
9 | 3 |
10 def ntop(): | 4 def ntop(): |
11 files.directory('/opt/ntop') | 5 files.directory('/opt/ntop') |
12 | 6 |
13 apt.packages(packages=[ | 7 apt.packages(packages=[ |
14 "build-essential", "git", "bison", "flex", "libxml2-dev", "libpcap-dev", "libtool", "libtool-bin", "rrdtool", | 8 "build-essential", "git", "bison", "flex", "libxml2-dev", "libpcap-dev", "libtool", "libtool-bin", "rrdtool", |
15 "librrd-dev", "autoconf", "pkg-config", "automake", "autogen", "redis-server", "wget", "libsqlite3-dev", "libhiredis-dev", | 9 "librrd-dev", "autoconf", "pkg-config", "automake", "autogen", "redis-server", "wget", "libsqlite3-dev", "libhiredis-dev", |
16 "libmaxminddb-dev", "libcurl4-openssl-dev", "libpango1.0-dev", "libcairo2-dev", "libnetfilter-queue-dev", "zlib1g-dev", | 10 "libmaxminddb-dev", "libcurl4-openssl-dev", "libpango1.0-dev", "libcairo2-dev", "libnetfilter-queue-dev", "zlib1g-dev", |
17 "libssl-dev", "libcap-dev", "libnetfilter-conntrack-dev", "libreadline-dev", "libjson-c-dev", "libldap2-dev", "rename", | 11 "libssl-dev", "libcap-dev", "libnetfilter-conntrack-dev", "libreadline-dev", "libjson-c-dev", "libldap2-dev", "rename", |