isort the repo
This commit is contained in:
parent
429bc2a7c6
commit
4122a7ccf8
33 changed files with 36 additions and 32 deletions
|
@ -1,6 +1,7 @@
|
|||
repo.libs.tools.require_bundle(node, 'zfs')
|
||||
|
||||
from os.path import join
|
||||
|
||||
from bundlewrap.metadata import metadata_to_json
|
||||
|
||||
dataset = node.metadata.get('backup-server/zfs-base')
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from ipaddress import ip_network
|
||||
|
||||
from bundlewrap.exceptions import NoSuchNode
|
||||
from bundlewrap.metadata import atomic
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from requests import get
|
||||
from sys import argv, exit
|
||||
|
||||
from requests import get
|
||||
|
||||
meshviewer_url = argv[1]
|
||||
node_id = argv[2]
|
||||
node = None
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from requests import get
|
||||
from sys import exit
|
||||
|
||||
from requests import get
|
||||
|
||||
SIPGATE_USER = '${node.metadata['icinga2']['sipgate_user']}'
|
||||
SIPGATE_PASS = '${node.metadata['icinga2']['sipgate_pass']}'
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
from ipaddress import ip_address, IPv6Address
|
||||
from ipaddress import IPv6Address, ip_address
|
||||
from subprocess import check_output
|
||||
from sys import argv, exit
|
||||
|
||||
|
||||
|
||||
BLOCKLISTS = [
|
||||
'0spam.fusionzero.com',
|
||||
'bl.mailspike.org',
|
||||
|
|
|
@ -4,10 +4,11 @@ import email.mime.text
|
|||
import smtplib
|
||||
from argparse import ArgumentParser
|
||||
from json import dumps
|
||||
from requests import post
|
||||
from subprocess import run
|
||||
from sys import argv
|
||||
|
||||
from requests import post
|
||||
|
||||
SIPGATE_USER='${node.metadata['icinga2']['sipgate_user']}'
|
||||
SIPGATE_PASS='${node.metadata['icinga2']['sipgate_pass']}'
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from os import environ
|
||||
from requests import get, post
|
||||
from sys import argv, exit
|
||||
|
||||
from requests import get, post
|
||||
|
||||
SYNAPSE_MAX_ROOMS_TO_GET = 20000
|
||||
SYNAPSE_HOST = 'http://[::1]:20080/'
|
||||
|
|
|
@ -7,7 +7,6 @@ from time import sleep
|
|||
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
|
||||
BROKER_HOST = argv[1]
|
||||
BROKER_TOPIC = argv[2]
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from bundlewrap.metadata import atomic
|
||||
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from requests import get
|
||||
from sys import exit
|
||||
|
||||
from requests import get
|
||||
|
||||
api_key = '${api_key}'
|
||||
|
||||
try:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
from json import loads
|
||||
from subprocess import check_output
|
||||
|
||||
|
||||
queue_counts = {}
|
||||
|
||||
queue_json = check_output(['sudo', '/usr/sbin/postqueue', '-j'])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from ipaddress import ip_address, IPv4Address, IPv6Address
|
||||
from ipaddress import IPv4Address, IPv6Address, ip_address
|
||||
|
||||
from bundlewrap.metadata import atomic
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
from sys import argv
|
||||
|
||||
import requests
|
||||
|
||||
INTERFACE = argv[1]
|
||||
LOCAL_IP = argv[4]
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import psycopg2
|
||||
from configparser import ConfigParser
|
||||
from sys import argv, exit
|
||||
|
||||
import psycopg2
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from requests import get
|
||||
from sys import argv, stderr
|
||||
|
||||
from requests import get
|
||||
|
||||
try:
|
||||
r = get('http://127.0.0.1:11334/stat')
|
||||
r.raise_for_status()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from subprocess import check_output
|
||||
from json import loads
|
||||
from subprocess import check_output
|
||||
from sys import stderr
|
||||
|
||||
devices = check_output(['smartctl', '--scan']).decode().splitlines()
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#this is actually a python https requests query, its called check_http_wget cause it got replaced
|
||||
|
||||
from sys import exit
|
||||
from argparse import ArgumentParser
|
||||
from sys import exit
|
||||
|
||||
import requests
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ from argparse import ArgumentParser
|
|||
from subprocess import check_output
|
||||
from tempfile import TemporaryFile
|
||||
|
||||
|
||||
check_filesystem_types = {
|
||||
'ext2',
|
||||
'ext3',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from os.path import join, exists
|
||||
from os.path import exists, join
|
||||
|
||||
files = {
|
||||
'/etc/bash.bashrc': {
|
||||
|
|
|
@ -3,7 +3,6 @@ from ipaddress import ip_network
|
|||
from bundlewrap.exceptions import NoSuchNode
|
||||
from bundlewrap.metadata import atomic
|
||||
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
import re
|
||||
from subprocess import check_output
|
||||
from sys import argv, exit
|
||||
import re
|
||||
|
||||
|
||||
def to_bytes(size):
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
|
||||
import re
|
||||
|
||||
from datetime import datetime
|
||||
from json import loads
|
||||
from subprocess import check_call, check_output
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from json import dumps
|
||||
#from os.path import join
|
||||
|
||||
from bundlewrap.metadata import MetadataJSONEncoder
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue