At the start, I have:
- CentOS
centos-release-7-7.1908.0.el7.centos.x86_64
. - Slurm
- Installed to
/opt/slurm
. - Only
slurmctld
andslurmd
are running.
- Installed to
- Munge.
import pickle | |
import struct | |
import time | |
import socket | |
CARBON_HOST = '192.168.99.100' | |
CARBON_PLAIN_DATA_PORT = 2003 | |
CARBON_PICKLED_DATA_PORT = 2004 | |
import scrapy | |
class AppCredentialsItem(scrapy.Item): | |
domain = scrapy.Field() | |
public_key = scrapy.Field() | |
secret_key = scrapy.Field() |
var TRIPLET_NAMES = [ | |
null, | |
['тысяча', 'тысячи', 'тысяч'], | |
['миллион', 'миллиона', 'миллионов'], | |
['миллиард', 'миллиарда', 'миллиардов'], | |
['триллион', 'триллиона', 'триллионов'], | |
['квадриллион', 'квадриллиона', 'квадриллионов'], | |
], | |
ZERO_NAME = 'нуль', | |
ONE_THOUSANT_NAME = 'одна', |
for i in {01..20}; do echo "[my-cluster-$i]"; sshpass -p 'pass' ssh -o "StrictHostKeyChecking no" my-cluster-$i 'ps aux' | grep mpirun; done |
""" | |
Simple wrapper class over FreeIPA client implementation from | |
https://github.com/nordnet/python-freeipa-json | |
Usage | |
* Create user: | |
>>> manager = LDAPClient('ldap.example.com', 'admin', 'qw3rty12') | |
>>> user = manager.create_user('user1', 'systemadmins', 'asd1234567') |