Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
runners /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
26
B
-rw-r--r--
2022-05-16 09:16
asam.py
11.2
KB
-rw-r--r--
2022-05-16 09:16
auth.py
1.69
KB
-rw-r--r--
2022-05-16 09:16
bgp.py
17.5
KB
-rw-r--r--
2022-05-16 09:16
cache.py
12.72
KB
-rw-r--r--
2022-05-16 09:16
cloud.py
4.18
KB
-rw-r--r--
2022-05-16 09:16
config.py
913
B
-rw-r--r--
2022-05-16 09:16
ddns.py
8.89
KB
-rw-r--r--
2022-05-16 09:16
digicertapi.py
21.63
KB
-rw-r--r--
2022-05-16 09:16
doc.py
1.39
KB
-rw-r--r--
2022-05-16 09:16
drac.py
5.29
KB
-rw-r--r--
2022-05-16 09:16
error.py
545
B
-rw-r--r--
2022-05-16 09:16
event.py
2.1
KB
-rw-r--r--
2022-05-16 09:16
f5.py
9.58
KB
-rw-r--r--
2022-05-16 09:16
fileserver.py
17.37
KB
-rw-r--r--
2022-05-16 09:16
git_pillar.py
3.98
KB
-rw-r--r--
2022-05-16 09:16
http.py
2.35
KB
-rw-r--r--
2022-05-16 09:16
jobs.py
17.45
KB
-rw-r--r--
2022-05-16 09:16
launchd.py
1.35
KB
-rw-r--r--
2022-05-16 09:16
lxc.py
18.14
KB
-rw-r--r--
2022-05-16 09:16
manage.py
25.84
KB
-rw-r--r--
2022-05-16 09:16
mattermost.py
4.68
KB
-rw-r--r--
2022-05-16 09:16
mine.py
1.68
KB
-rw-r--r--
2022-05-16 09:16
nacl.py
8.15
KB
-rw-r--r--
2022-05-16 09:16
net.py
38.97
KB
-rw-r--r--
2022-05-16 09:16
network.py
2.42
KB
-rw-r--r--
2022-05-16 09:16
pagerduty.py
4.5
KB
-rw-r--r--
2022-05-16 09:16
pillar.py
5.14
KB
-rw-r--r--
2022-05-16 09:16
pkg.py
1.35
KB
-rw-r--r--
2022-05-16 09:16
queue.py
8.88
KB
-rw-r--r--
2022-05-16 09:16
reactor.py
4.97
KB
-rw-r--r--
2022-05-16 09:16
salt.py
4.69
KB
-rw-r--r--
2022-05-16 09:16
saltutil.py
21.5
KB
-rw-r--r--
2022-05-16 09:16
sdb.py
2.14
KB
-rw-r--r--
2022-05-16 09:16
smartos_vmadm.py
11.73
KB
-rw-r--r--
2022-05-16 09:16
spacewalk.py
9.8
KB
-rw-r--r--
2022-05-16 09:16
ssh.py
771
B
-rw-r--r--
2022-05-16 09:16
state.py
8.88
KB
-rw-r--r--
2022-05-16 09:16
survey.py
5.84
KB
-rw-r--r--
2022-05-16 09:16
test.py
1.75
KB
-rw-r--r--
2022-05-16 09:16
thin.py
1.74
KB
-rw-r--r--
2022-05-16 09:16
vault.py
10.09
KB
-rw-r--r--
2022-05-16 09:16
venafiapi.py
6.68
KB
-rw-r--r--
2022-05-16 09:16
virt.py
17.59
KB
-rw-r--r--
2022-05-16 09:16
vistara.py
5.6
KB
-rw-r--r--
2022-05-16 09:16
winrepo.py
8.57
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" The Salt Cloud Runner ===================== This runner wraps the functionality of salt cloud making salt cloud routines available to all internal apis via the runner system """ import logging import os import salt.cloud import salt.utils.args from salt.exceptions import SaltCloudConfigError # Get logging started log = logging.getLogger(__name__) def _get_client(): """ Return cloud client """ client = salt.cloud.CloudClient( os.path.join(os.path.dirname(__opts__["conf_file"]), "cloud") ) return client def list_sizes(provider="all"): """ List cloud provider sizes for the given providers """ client = _get_client() sizes = client.list_sizes(provider) return sizes def list_images(provider="all"): """ List cloud provider images for the given providers """ client = _get_client() images = client.list_images(provider) return images def list_locations(provider="all"): """ List cloud provider sizes for the given providers """ client = _get_client() locations = client.list_locations(provider) return locations def query(query_type="list_nodes"): """ List cloud provider data for all providers """ client = _get_client() info = client.query(query_type) return info def full_query(query_type="list_nodes_full"): """ List all available cloud provider data """ client = _get_client() info = client.full_query(query_type) return info def select_query(query_type="list_nodes_select"): """ List selected nodes """ client = _get_client() info = client.select_query(query_type) return info def profile(prof=None, instances=None, opts=None, **kwargs): """ Create a cloud vm with the given profile and instances, instances can be a list or comma-delimited string CLI Example: .. code-block:: bash salt-run cloud.profile prof=my-ec2 instances=node1,node2,node3 """ if prof is None and "profile" in kwargs: prof = kwargs["profile"] if prof is None: return {"Error": "A profile (or prof) must be defined"} if instances is None and "names" in kwargs: instances = kwargs["names"] if instances is None: return {"Error": "One or more instances (comma-delimited) must be set"} client = _get_client() if isinstance(opts, dict): client.opts.update(opts) info = client.profile(prof, instances, **salt.utils.args.clean_kwargs(**kwargs)) return info def map_run(path=None, opts=None, **kwargs): """ Execute a salt cloud map file """ client = _get_client() if isinstance(opts, dict): client.opts.update(opts) info = client.map_run(path, **salt.utils.args.clean_kwargs(**kwargs)) return info def destroy(instances, opts=None): """ Destroy the named vm(s) """ client = _get_client() if isinstance(opts, dict): client.opts.update(opts) info = client.destroy(instances) return info def action( func=None, cloudmap=None, instances=None, provider=None, instance=None, opts=None, **kwargs ): """ Execute a single action on the given map/provider/instance CLI Example: .. code-block:: bash salt-run cloud.action start my-salt-vm """ info = {} client = _get_client() if isinstance(opts, dict): client.opts.update(opts) try: info = client.action( func, cloudmap, instances, provider, instance, salt.utils.args.clean_kwargs(**kwargs), ) except SaltCloudConfigError as err: log.error(err) return info def create(provider, instances, opts=None, **kwargs): """ Create an instance using Salt Cloud CLI Example: .. code-block:: bash salt-run cloud.create my-ec2-config myinstance \\ image=ami-1624987f size='t1.micro' ssh_username=ec2-user \\ securitygroup=default delvol_on_destroy=True """ client = _get_client() if isinstance(opts, dict): client.opts.update(opts) info = client.create(provider, instances, **salt.utils.args.clean_kwargs(**kwargs)) return info