pulumi-pve 0.0.3.dev1__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.
Files changed (29) hide show
  1. pulumi_pve-0.0.3.dev1/PKG-INFO +65 -0
  2. pulumi_pve-0.0.3.dev1/README.md +53 -0
  3. pulumi_pve-0.0.3.dev1/pulumi_pve/__init__.py +76 -0
  4. pulumi_pve-0.0.3.dev1/pulumi_pve/_utilities.py +331 -0
  5. pulumi_pve-0.0.3.dev1/pulumi_pve/config/__init__.py +8 -0
  6. pulumi_pve-0.0.3.dev1/pulumi_pve/config/__init__.pyi +26 -0
  7. pulumi_pve-0.0.3.dev1/pulumi_pve/config/vars.py +42 -0
  8. pulumi_pve-0.0.3.dev1/pulumi_pve/ha/__init__.py +8 -0
  9. pulumi_pve-0.0.3.dev1/pulumi_pve/ha/ha.py +187 -0
  10. pulumi_pve-0.0.3.dev1/pulumi_pve/pool/__init__.py +8 -0
  11. pulumi_pve-0.0.3.dev1/pulumi_pve/pool/pool.py +158 -0
  12. pulumi_pve-0.0.3.dev1/pulumi_pve/provider.py +182 -0
  13. pulumi_pve-0.0.3.dev1/pulumi_pve/pulumi-plugin.json +5 -0
  14. pulumi_pve-0.0.3.dev1/pulumi_pve/py.typed +0 -0
  15. pulumi_pve-0.0.3.dev1/pulumi_pve/storage/__init__.py +10 -0
  16. pulumi_pve-0.0.3.dev1/pulumi_pve/storage/_inputs.py +73 -0
  17. pulumi_pve-0.0.3.dev1/pulumi_pve/storage/file.py +185 -0
  18. pulumi_pve-0.0.3.dev1/pulumi_pve/storage/outputs.py +68 -0
  19. pulumi_pve-0.0.3.dev1/pulumi_pve/vm/__init__.py +10 -0
  20. pulumi_pve-0.0.3.dev1/pulumi_pve/vm/_inputs.py +158 -0
  21. pulumi_pve-0.0.3.dev1/pulumi_pve/vm/outputs.py +120 -0
  22. pulumi_pve-0.0.3.dev1/pulumi_pve/vm/vm.py +1277 -0
  23. pulumi_pve-0.0.3.dev1/pulumi_pve.egg-info/PKG-INFO +65 -0
  24. pulumi_pve-0.0.3.dev1/pulumi_pve.egg-info/SOURCES.txt +27 -0
  25. pulumi_pve-0.0.3.dev1/pulumi_pve.egg-info/dependency_links.txt +1 -0
  26. pulumi_pve-0.0.3.dev1/pulumi_pve.egg-info/requires.txt +6 -0
  27. pulumi_pve-0.0.3.dev1/pulumi_pve.egg-info/top_level.txt +1 -0
  28. pulumi_pve-0.0.3.dev1/pyproject.toml +18 -0
  29. pulumi_pve-0.0.3.dev1/setup.cfg +4 -0
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: pulumi_pve
3
+ Version: 0.0.3.dev1
4
+ Summary: PVE Provider
5
+ Project-URL: Repository, https://github.com/hctamu/pulumi-pve
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: parver>=0.2.1
9
+ Requires-Dist: pulumi<4.0.0,>=3.142.0
10
+ Requires-Dist: semver>=2.8.1
11
+ Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
12
+
13
+ # Pulumi Proxmox VE Provider
14
+
15
+ This repository contains a Pulumi Provider for managing Proxmox VE resources. It allows you to define and manage Proxmox VE resources using Pulumi's infrastructure-as-code approach.
16
+
17
+ ## Getting Started
18
+
19
+ ### Prerequisites
20
+
21
+ To work with this repository, you need to use the provided development container (`devcontainer`). The devcontainer includes all the necessary tools and dependencies pre-installed.
22
+
23
+ ### Setting Up the Devcontainer
24
+
25
+ 1. Open this repository in Visual Studio Code.
26
+ 2. Install the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
27
+ 3. Reopen the repository in the devcontainer by selecting **Reopen in Container** from the Command Palette (`Ctrl+Shift+P`).
28
+
29
+ Once the devcontainer is up and running, you can start developing and testing the provider.
30
+
31
+ #### A brief repository overview
32
+
33
+ You now have:
34
+
35
+ 1. A `provider/` folder containing the building and implementation logic
36
+ - `cmd/pulumi-resource-pve/main.go` - holds the provider's sample implementation logic.
37
+ 2. `sdk` - holds the generated code libraries created by `pulumi-gen-pve/main.go`
38
+ 3. `examples` a folder of Pulumi programs to try locally and/or use in CI.
39
+ 4. A `Makefile` and this README.
40
+
41
+ ##### Additional Details
42
+
43
+ This repository depends on the pulumi-go-provider library. For more details on building providers, please check the [Pulumi Go Provider](https://github.com/pulumi/pulumi-go-provider) docs.
44
+
45
+ NPM repository: <https://www.npmjs.com/settings/hctamu/packages>
46
+
47
+ ### Release new version
48
+
49
+ To release new version create a new release on Github, with the following tag syntax: v*.\*.\*
50
+
51
+ A pipeline will automatically release the provider with the given version.
52
+
53
+
54
+ ### Build the provider and install the plugin
55
+
56
+ ```bash
57
+ make build install
58
+ ```
59
+
60
+ This will:
61
+
62
+ 1. Create the SDK codegen binary and place it in a ./bin folder (gitignored)
63
+ 2. Create the provider binary and place it in the ./bin folder (gitignored)
64
+ 3. Generate the ~~dotnet~~, Go, ~~Node, and Python~~ SDKs and place them in the ./sdk folder
65
+ 4. Install the provider on your machine.
@@ -0,0 +1,53 @@
1
+ # Pulumi Proxmox VE Provider
2
+
3
+ This repository contains a Pulumi Provider for managing Proxmox VE resources. It allows you to define and manage Proxmox VE resources using Pulumi's infrastructure-as-code approach.
4
+
5
+ ## Getting Started
6
+
7
+ ### Prerequisites
8
+
9
+ To work with this repository, you need to use the provided development container (`devcontainer`). The devcontainer includes all the necessary tools and dependencies pre-installed.
10
+
11
+ ### Setting Up the Devcontainer
12
+
13
+ 1. Open this repository in Visual Studio Code.
14
+ 2. Install the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
15
+ 3. Reopen the repository in the devcontainer by selecting **Reopen in Container** from the Command Palette (`Ctrl+Shift+P`).
16
+
17
+ Once the devcontainer is up and running, you can start developing and testing the provider.
18
+
19
+ #### A brief repository overview
20
+
21
+ You now have:
22
+
23
+ 1. A `provider/` folder containing the building and implementation logic
24
+ - `cmd/pulumi-resource-pve/main.go` - holds the provider's sample implementation logic.
25
+ 2. `sdk` - holds the generated code libraries created by `pulumi-gen-pve/main.go`
26
+ 3. `examples` a folder of Pulumi programs to try locally and/or use in CI.
27
+ 4. A `Makefile` and this README.
28
+
29
+ ##### Additional Details
30
+
31
+ This repository depends on the pulumi-go-provider library. For more details on building providers, please check the [Pulumi Go Provider](https://github.com/pulumi/pulumi-go-provider) docs.
32
+
33
+ NPM repository: <https://www.npmjs.com/settings/hctamu/packages>
34
+
35
+ ### Release new version
36
+
37
+ To release new version create a new release on Github, with the following tag syntax: v*.\*.\*
38
+
39
+ A pipeline will automatically release the provider with the given version.
40
+
41
+
42
+ ### Build the provider and install the plugin
43
+
44
+ ```bash
45
+ make build install
46
+ ```
47
+
48
+ This will:
49
+
50
+ 1. Create the SDK codegen binary and place it in a ./bin folder (gitignored)
51
+ 2. Create the provider binary and place it in the ./bin folder (gitignored)
52
+ 3. Generate the ~~dotnet~~, Go, ~~Node, and Python~~ SDKs and place them in the ./sdk folder
53
+ 4. Install the provider on your machine.
@@ -0,0 +1,76 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ from . import _utilities
6
+ import typing
7
+ # Export this package's modules as members:
8
+ from .provider import *
9
+
10
+ # Make subpackages available:
11
+ if typing.TYPE_CHECKING:
12
+ import pulumi_pve.config as __config
13
+ config = __config
14
+ import pulumi_pve.ha as __ha
15
+ ha = __ha
16
+ import pulumi_pve.pool as __pool
17
+ pool = __pool
18
+ import pulumi_pve.storage as __storage
19
+ storage = __storage
20
+ import pulumi_pve.vm as __vm
21
+ vm = __vm
22
+ else:
23
+ config = _utilities.lazy_import('pulumi_pve.config')
24
+ ha = _utilities.lazy_import('pulumi_pve.ha')
25
+ pool = _utilities.lazy_import('pulumi_pve.pool')
26
+ storage = _utilities.lazy_import('pulumi_pve.storage')
27
+ vm = _utilities.lazy_import('pulumi_pve.vm')
28
+
29
+ _utilities.register(
30
+ resource_modules="""
31
+ [
32
+ {
33
+ "pkg": "pve",
34
+ "mod": "ha",
35
+ "fqn": "pulumi_pve.ha",
36
+ "classes": {
37
+ "pve:ha:Ha": "Ha"
38
+ }
39
+ },
40
+ {
41
+ "pkg": "pve",
42
+ "mod": "pool",
43
+ "fqn": "pulumi_pve.pool",
44
+ "classes": {
45
+ "pve:pool:Pool": "Pool"
46
+ }
47
+ },
48
+ {
49
+ "pkg": "pve",
50
+ "mod": "storage",
51
+ "fqn": "pulumi_pve.storage",
52
+ "classes": {
53
+ "pve:storage:File": "File"
54
+ }
55
+ },
56
+ {
57
+ "pkg": "pve",
58
+ "mod": "vm",
59
+ "fqn": "pulumi_pve.vm",
60
+ "classes": {
61
+ "pve:vm:Vm": "Vm"
62
+ }
63
+ }
64
+ ]
65
+ """,
66
+ resource_packages="""
67
+ [
68
+ {
69
+ "pkg": "pve",
70
+ "token": "pulumi:providers:pve",
71
+ "fqn": "pulumi_pve",
72
+ "class": "Provider"
73
+ }
74
+ ]
75
+ """
76
+ )
@@ -0,0 +1,331 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+
6
+ import asyncio
7
+ import functools
8
+ import importlib.metadata
9
+ import importlib.util
10
+ import inspect
11
+ import json
12
+ import os
13
+ import sys
14
+ import typing
15
+ import warnings
16
+ import base64
17
+
18
+ import pulumi
19
+ import pulumi.runtime
20
+ from pulumi.runtime.sync_await import _sync_await
21
+ from pulumi.runtime.proto import resource_pb2
22
+
23
+ from semver import VersionInfo as SemverVersion
24
+ from parver import Version as PEP440Version
25
+
26
+ C = typing.TypeVar("C", bound=typing.Callable)
27
+
28
+
29
+ def get_env(*args):
30
+ for v in args:
31
+ value = os.getenv(v)
32
+ if value is not None:
33
+ return value
34
+ return None
35
+
36
+
37
+ def get_env_bool(*args):
38
+ str = get_env(*args)
39
+ if str is not None:
40
+ # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
41
+ # Terraform uses internally when parsing boolean values.
42
+ if str in ["1", "t", "T", "true", "TRUE", "True"]:
43
+ return True
44
+ if str in ["0", "f", "F", "false", "FALSE", "False"]:
45
+ return False
46
+ return None
47
+
48
+
49
+ def get_env_int(*args):
50
+ str = get_env(*args)
51
+ if str is not None:
52
+ try:
53
+ return int(str)
54
+ except:
55
+ return None
56
+ return None
57
+
58
+
59
+ def get_env_float(*args):
60
+ str = get_env(*args)
61
+ if str is not None:
62
+ try:
63
+ return float(str)
64
+ except:
65
+ return None
66
+ return None
67
+
68
+
69
+ def _get_semver_version():
70
+ # __name__ is set to the fully-qualified name of the current module, In our case, it will be
71
+ # <some module>._utilities. <some module> is the module we want to query the version for.
72
+ root_package, *rest = __name__.split('.')
73
+
74
+ # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask
75
+ # for the currently installed version of the root package (i.e. us) and get its version.
76
+
77
+ # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects
78
+ # to receive a valid semver string when receiving requests from the language host, so it's our
79
+ # responsibility as the library to convert our own PEP440 version into a valid semver string.
80
+
81
+ pep440_version_string = importlib.metadata.version(root_package)
82
+ pep440_version = PEP440Version.parse(pep440_version_string)
83
+ (major, minor, patch) = pep440_version.release
84
+ prerelease = None
85
+ if pep440_version.pre_tag == 'a':
86
+ prerelease = f"alpha.{pep440_version.pre}"
87
+ elif pep440_version.pre_tag == 'b':
88
+ prerelease = f"beta.{pep440_version.pre}"
89
+ elif pep440_version.pre_tag == 'rc':
90
+ prerelease = f"rc.{pep440_version.pre}"
91
+ elif pep440_version.dev is not None:
92
+ # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
93
+ # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
94
+ # packages do when constructing their own semver string.
95
+ prerelease = f"dev.{pep440_version.dev}"
96
+ elif pep440_version.local is not None:
97
+ # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
98
+ # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
99
+ # do the reverse conversion here and set the local version as the prerelease tag.
100
+ prerelease = pep440_version.local
101
+
102
+ return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
103
+
104
+
105
+ # Determine the version once and cache the value, which measurably improves program performance.
106
+ _version = _get_semver_version()
107
+ _version_str = str(_version)
108
+
109
+ def get_resource_opts_defaults() -> pulumi.ResourceOptions:
110
+ return pulumi.ResourceOptions(
111
+ version=get_version(),
112
+ plugin_download_url=get_plugin_download_url(),
113
+ )
114
+
115
+ def get_invoke_opts_defaults() -> pulumi.InvokeOptions:
116
+ return pulumi.InvokeOptions(
117
+ version=get_version(),
118
+ plugin_download_url=get_plugin_download_url(),
119
+ )
120
+
121
+ def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs):
122
+ """
123
+ Return the resource args and options given the *args and **kwargs of a resource's
124
+ __init__ method.
125
+ """
126
+
127
+ resource_args, opts = None, None
128
+
129
+ # If the first item is the resource args type, save it and remove it from the args list.
130
+ if args and isinstance(args[0], resource_args_type):
131
+ resource_args, args = args[0], args[1:]
132
+
133
+ # Now look at the first item in the args list again.
134
+ # If the first item is the resource options class, save it.
135
+ if args and isinstance(args[0], resource_options_type):
136
+ opts = args[0]
137
+
138
+ # If resource_args is None, see if "args" is in kwargs, and, if so, if it's typed as the
139
+ # the resource args type.
140
+ if resource_args is None:
141
+ a = kwargs.get("args")
142
+ if isinstance(a, resource_args_type):
143
+ resource_args = a
144
+
145
+ # If opts is None, look it up in kwargs.
146
+ if opts is None:
147
+ opts = kwargs.get("opts")
148
+
149
+ return resource_args, opts
150
+
151
+
152
+ # Temporary: just use pulumi._utils.lazy_import once everyone upgrades.
153
+ def lazy_import(fullname):
154
+
155
+ import pulumi._utils as u
156
+ f = getattr(u, 'lazy_import', None)
157
+ if f is None:
158
+ f = _lazy_import_temp
159
+
160
+ return f(fullname)
161
+
162
+
163
+ # Copied from pulumi._utils.lazy_import, see comments there.
164
+ def _lazy_import_temp(fullname):
165
+ m = sys.modules.get(fullname, None)
166
+ if m is not None:
167
+ return m
168
+
169
+ spec = importlib.util.find_spec(fullname)
170
+
171
+ m = sys.modules.get(fullname, None)
172
+ if m is not None:
173
+ return m
174
+
175
+ loader = importlib.util.LazyLoader(spec.loader)
176
+ spec.loader = loader
177
+ module = importlib.util.module_from_spec(spec)
178
+
179
+ m = sys.modules.get(fullname, None)
180
+ if m is not None:
181
+ return m
182
+
183
+ sys.modules[fullname] = module
184
+ loader.exec_module(module)
185
+ return module
186
+
187
+
188
+ class Package(pulumi.runtime.ResourcePackage):
189
+ def __init__(self, pkg_info):
190
+ super().__init__()
191
+ self.pkg_info = pkg_info
192
+
193
+ def version(self):
194
+ return _version
195
+
196
+ def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
197
+ if typ != self.pkg_info['token']:
198
+ raise Exception(f"unknown provider type {typ}")
199
+ Provider = getattr(lazy_import(self.pkg_info['fqn']), self.pkg_info['class'])
200
+ return Provider(name, pulumi.ResourceOptions(urn=urn))
201
+
202
+
203
+ class Module(pulumi.runtime.ResourceModule):
204
+ def __init__(self, mod_info):
205
+ super().__init__()
206
+ self.mod_info = mod_info
207
+
208
+ def version(self):
209
+ return _version
210
+
211
+ def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
212
+ class_name = self.mod_info['classes'].get(typ, None)
213
+
214
+ if class_name is None:
215
+ raise Exception(f"unknown resource type {typ}")
216
+
217
+ TheClass = getattr(lazy_import(self.mod_info['fqn']), class_name)
218
+ return TheClass(name, pulumi.ResourceOptions(urn=urn))
219
+
220
+
221
+ def register(resource_modules, resource_packages):
222
+ resource_modules = json.loads(resource_modules)
223
+ resource_packages = json.loads(resource_packages)
224
+
225
+ for pkg_info in resource_packages:
226
+ pulumi.runtime.register_resource_package(pkg_info['pkg'], Package(pkg_info))
227
+
228
+ for mod_info in resource_modules:
229
+ pulumi.runtime.register_resource_module(
230
+ mod_info['pkg'],
231
+ mod_info['mod'],
232
+ Module(mod_info))
233
+
234
+
235
+ _F = typing.TypeVar('_F', bound=typing.Callable[..., typing.Any])
236
+
237
+
238
+ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
239
+ """Decorator internally used on {fn}_output lifted function versions
240
+ to implement them automatically from the un-lifted function."""
241
+
242
+ func_sig = inspect.signature(func)
243
+
244
+ def lifted_func(*args, opts=None, **kwargs):
245
+ bound_args = func_sig.bind(*args, **kwargs)
246
+ # Convert tuple to list, see pulumi/pulumi#8172
247
+ args_list = list(bound_args.args)
248
+ return pulumi.Output.from_input({
249
+ 'args': args_list,
250
+ 'kwargs': bound_args.kwargs
251
+ }).apply(lambda resolved_args: func(*resolved_args['args'],
252
+ opts=opts,
253
+ **resolved_args['kwargs']))
254
+
255
+ return (lambda _: lifted_func)
256
+
257
+
258
+ def call_plain(
259
+ tok: str,
260
+ props: pulumi.Inputs,
261
+ res: typing.Optional[pulumi.Resource] = None,
262
+ typ: typing.Optional[type] = None,
263
+ ) -> typing.Any:
264
+ """
265
+ Wraps pulumi.runtime.plain to force the output and return it plainly.
266
+ """
267
+
268
+ output = pulumi.runtime.call(tok, props, res, typ)
269
+
270
+ # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
271
+ result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
272
+
273
+ problem = None
274
+ if not known:
275
+ problem = ' an unknown value'
276
+ elif secret:
277
+ problem = ' a secret value'
278
+
279
+ if problem:
280
+ raise AssertionError(
281
+ f"Plain resource method '{tok}' incorrectly returned {problem}. "
282
+ + "This is an error in the provider, please report this to the provider developer."
283
+ )
284
+
285
+ return result
286
+
287
+
288
+ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
289
+ return (
290
+ await o._future,
291
+ await o._is_known,
292
+ await o._is_secret,
293
+ await o._resources,
294
+ )
295
+
296
+
297
+ # This is included to provide an upgrade path for users who are using a version
298
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
299
+ def deprecated(message: str) -> typing.Callable[[C], C]:
300
+ """
301
+ Decorator to indicate a function is deprecated.
302
+
303
+ As well as inserting appropriate statements to indicate that the function is
304
+ deprecated, this decorator also tags the function with a special attribute
305
+ so that Pulumi code can detect that it is deprecated and react appropriately
306
+ in certain situations.
307
+
308
+ message is the deprecation message that should be printed if the function is called.
309
+ """
310
+
311
+ def decorator(fn: C) -> C:
312
+ if not callable(fn):
313
+ raise TypeError("Expected fn to be callable")
314
+
315
+ @functools.wraps(fn)
316
+ def deprecated_fn(*args, **kwargs):
317
+ warnings.warn(message)
318
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
319
+
320
+ return fn(*args, **kwargs)
321
+
322
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
323
+ return typing.cast(C, deprecated_fn)
324
+
325
+ return decorator
326
+
327
+ def get_plugin_download_url():
328
+ return None
329
+
330
+ def get_version():
331
+ return _version_str
@@ -0,0 +1,8 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import sys
6
+ from .vars import _ExportableConfig
7
+
8
+ sys.modules[__name__].__class__ = _ExportableConfig
@@ -0,0 +1,26 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+
17
+ pveToken: Optional[str]
18
+
19
+ pveUrl: Optional[str]
20
+
21
+ pveUser: Optional[str]
22
+
23
+ sshPass: Optional[str]
24
+
25
+ sshUser: Optional[str]
26
+
@@ -0,0 +1,42 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+
17
+ import types
18
+
19
+ __config__ = pulumi.Config('pve')
20
+
21
+
22
+ class _ExportableConfig(types.ModuleType):
23
+ @property
24
+ def pve_token(self) -> Optional[str]:
25
+ return __config__.get('pveToken')
26
+
27
+ @property
28
+ def pve_url(self) -> Optional[str]:
29
+ return __config__.get('pveUrl')
30
+
31
+ @property
32
+ def pve_user(self) -> Optional[str]:
33
+ return __config__.get('pveUser')
34
+
35
+ @property
36
+ def ssh_pass(self) -> Optional[str]:
37
+ return __config__.get('sshPass')
38
+
39
+ @property
40
+ def ssh_user(self) -> Optional[str]:
41
+ return __config__.get('sshUser')
42
+
@@ -0,0 +1,8 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ from .. import _utilities
6
+ import typing
7
+ # Export this package's modules as members:
8
+ from .ha import *