fastcloudinit 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastcloudinit-0.0.4/fastcloudinit.egg-info → fastcloudinit-0.0.5}/PKG-INFO +1 -1
- fastcloudinit-0.0.5/fastcloudinit/__init__.py +2 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit/_modidx.py +1 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit/core.py +7 -2
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5/fastcloudinit.egg-info}/PKG-INFO +1 -1
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/settings.ini +1 -1
- fastcloudinit-0.0.4/fastcloudinit/__init__.py +0 -2
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/LICENSE +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/MANIFEST.in +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/README.md +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/SOURCES.txt +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/dependency_links.txt +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/entry_points.txt +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/not-zip-safe +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/requires.txt +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/fastcloudinit.egg-info/top_level.txt +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/pyproject.toml +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/setup.cfg +0 -0
- {fastcloudinit-0.0.4 → fastcloudinit-0.0.5}/setup.py +0 -0
@@ -6,6 +6,7 @@ d = { 'settings': { 'branch': 'main',
|
|
6
6
|
'git_url': 'https://github.com/AnswerDotAI/fastcloudinit',
|
7
7
|
'lib_path': 'fastcloudinit'},
|
8
8
|
'syms': { 'fastcloudinit.core': { 'fastcloudinit.core.apt': ('core.html#apt', 'fastcloudinit/core.py'),
|
9
|
+
'fastcloudinit.core.cc_validate': ('core.html#cc_validate', 'fastcloudinit/core.py'),
|
9
10
|
'fastcloudinit.core.cloud_init_base': ('core.html#cloud_init_base', 'fastcloudinit/core.py'),
|
10
11
|
'fastcloudinit.core.cloud_init_config': ('core.html#cloud_init_config', 'fastcloudinit/core.py'),
|
11
12
|
'fastcloudinit.core.log_rotate': ('core.html#log_rotate', 'fastcloudinit/core.py'),
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
|
2
2
|
|
3
3
|
# %% auto 0
|
4
|
-
__all__ = ['ufw', 'user', 'source', 'apt', 'systemd', 'log_rotate', 'phone_home', 'reboot', 'mounts', 'runcmd', '
|
5
|
-
'cloud_init_config']
|
4
|
+
__all__ = ['ufw', 'user', 'source', 'apt', 'systemd', 'log_rotate', 'phone_home', 'reboot', 'mounts', 'runcmd', 'cc_validate',
|
5
|
+
'cloud_init_base', 'cloud_init_config']
|
6
6
|
|
7
7
|
# %% ../nbs/00_core.ipynb
|
8
8
|
from fastcore.utils import *
|
@@ -90,6 +90,11 @@ def runcmd(cmds):
|
|
90
90
|
if not cmds: return {}
|
91
91
|
return dict(runcmd=cmds)
|
92
92
|
|
93
|
+
# %% ../nbs/00_core.ipynb
|
94
|
+
def cc_validate(d):
|
95
|
+
vsc = xget('https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/schemas/versions.schema.cloud-config.json').text
|
96
|
+
validate(d, schema=json.loads(vsc))
|
97
|
+
|
93
98
|
# %% ../nbs/00_core.ipynb
|
94
99
|
def cloud_init_base(hostname, packages=None, check=True, **kw):
|
95
100
|
cfg = dict(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|