fastcloudinit 0.0.3__tar.gz → 0.0.4__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.3/fastcloudinit.egg-info → fastcloudinit-0.0.4}/PKG-INFO +3 -1
- fastcloudinit-0.0.4/fastcloudinit/__init__.py +2 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit/core.py +6 -2
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4/fastcloudinit.egg-info}/PKG-INFO +3 -1
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/requires.txt +2 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/settings.ini +2 -2
- fastcloudinit-0.0.3/fastcloudinit/__init__.py +0 -2
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/LICENSE +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/MANIFEST.in +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/README.md +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit/_modidx.py +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/SOURCES.txt +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/dependency_links.txt +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/entry_points.txt +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/not-zip-safe +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/fastcloudinit.egg-info/top_level.txt +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/pyproject.toml +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/setup.cfg +0 -0
- {fastcloudinit-0.0.3 → fastcloudinit-0.0.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fastcloudinit
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
4
4
|
Summary: Simplified opinionated cloud init for ubuntu
|
5
5
|
Home-page: https://github.com/AnswerDotAI/fastcloudinit
|
6
6
|
Author: Jeremy Howard
|
@@ -20,6 +20,8 @@ Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
21
21
|
Requires-Dist: fastcore
|
22
22
|
Requires-Dist: PyYAML
|
23
|
+
Requires-Dist: httpx
|
24
|
+
Requires-Dist: jsonschema
|
23
25
|
Provides-Extra: dev
|
24
26
|
Dynamic: author
|
25
27
|
Dynamic: author-email
|
@@ -6,8 +6,11 @@ __all__ = ['ufw', 'user', 'source', 'apt', 'systemd', 'log_rotate', 'phone_home'
|
|
6
6
|
|
7
7
|
# %% ../nbs/00_core.ipynb
|
8
8
|
from fastcore.utils import *
|
9
|
-
import fastcore.xtras, yaml
|
10
9
|
from textwrap import dedent
|
10
|
+
from jsonschema import validate
|
11
|
+
from httpx import get as xget
|
12
|
+
|
13
|
+
import fastcore.xtras, yaml, json
|
11
14
|
|
12
15
|
# %% ../nbs/00_core.ipynb
|
13
16
|
def ufw(logging="off", def_incoming="deny", def_outgoing="allow", internal=None, **allows):
|
@@ -88,12 +91,13 @@ def runcmd(cmds):
|
|
88
91
|
return dict(runcmd=cmds)
|
89
92
|
|
90
93
|
# %% ../nbs/00_core.ipynb
|
91
|
-
def cloud_init_base(hostname, packages=None, **kw):
|
94
|
+
def cloud_init_base(hostname, packages=None, check=True, **kw):
|
92
95
|
cfg = dict(
|
93
96
|
hostname=hostname, preserve_hostname=False,
|
94
97
|
packages=listify(packages), package_update=True, package_upgrade=True,
|
95
98
|
disable_root=True, ssh_pwauth=False, **kw
|
96
99
|
)
|
100
|
+
if check: cc_validate(cfg)
|
97
101
|
return "#cloud-config\n" + yaml.safe_dump(cfg, sort_keys=False, width=1_000_000)
|
98
102
|
|
99
103
|
# %% ../nbs/00_core.ipynb
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fastcloudinit
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
4
4
|
Summary: Simplified opinionated cloud init for ubuntu
|
5
5
|
Home-page: https://github.com/AnswerDotAI/fastcloudinit
|
6
6
|
Author: Jeremy Howard
|
@@ -20,6 +20,8 @@ Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
21
21
|
Requires-Dist: fastcore
|
22
22
|
Requires-Dist: PyYAML
|
23
|
+
Requires-Dist: httpx
|
24
|
+
Requires-Dist: jsonschema
|
23
25
|
Provides-Extra: dev
|
24
26
|
Dynamic: author
|
25
27
|
Dynamic: author-email
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[DEFAULT]
|
2
2
|
repo = fastcloudinit
|
3
3
|
lib_name = fastcloudinit
|
4
|
-
version = 0.0.
|
4
|
+
version = 0.0.4
|
5
5
|
min_python = 3.9
|
6
6
|
license = apache2
|
7
7
|
black_formatting = False
|
@@ -28,7 +28,7 @@ keywords = nbdev jupyter notebook python
|
|
28
28
|
language = English
|
29
29
|
status = 3
|
30
30
|
user = AnswerDotAI
|
31
|
-
requirements = fastcore PyYAML
|
31
|
+
requirements = fastcore PyYAML httpx jsonschema
|
32
32
|
readme_nb = index.ipynb
|
33
33
|
allowed_metadata_keys =
|
34
34
|
allowed_cell_metadata_keys =
|
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
|