pulumi-nomad 2.5.0a1744783739__py3-none-any.whl → 2.6.0a1745042960__py3-none-any.whl
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.
- pulumi_nomad/__init__.py +19 -0
- pulumi_nomad/_inputs.py +678 -1
- pulumi_nomad/acl_policy.py +14 -7
- pulumi_nomad/config/__init__.pyi +0 -10
- pulumi_nomad/config/vars.py +0 -14
- pulumi_nomad/csi_volume.py +28 -0
- pulumi_nomad/dynamic_host_volume.py +1005 -0
- pulumi_nomad/dynamic_host_volume_registration.py +740 -0
- pulumi_nomad/get_dynamic_host_volume.py +353 -0
- pulumi_nomad/get_volumes.py +2 -2
- pulumi_nomad/job.py +3 -113
- pulumi_nomad/outputs.py +579 -1
- pulumi_nomad/provider.py +1 -59
- pulumi_nomad/pulumi-plugin.json +1 -1
- {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.6.0a1745042960.dist-info}/METADATA +1 -1
- {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.6.0a1745042960.dist-info}/RECORD +18 -15
- {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.6.0a1745042960.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.6.0a1745042960.dist-info}/top_level.txt +0 -0
pulumi_nomad/acl_policy.py
CHANGED
@@ -31,7 +31,8 @@ class AclPolicyArgs:
|
|
31
31
|
:param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
|
32
32
|
as HCL or JSON.
|
33
33
|
:param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
|
34
|
-
:param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
34
|
+
:param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
35
|
+
ACL rules to a job, group, or task.
|
35
36
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
|
36
37
|
"""
|
37
38
|
pulumi.set(__self__, "rules_hcl", rules_hcl)
|
@@ -71,7 +72,8 @@ class AclPolicyArgs:
|
|
71
72
|
@pulumi.getter(name="jobAcl")
|
72
73
|
def job_acl(self) -> Optional[pulumi.Input['AclPolicyJobAclArgs']]:
|
73
74
|
"""
|
74
|
-
`(``JobACL``: <optional>)` - Options for assigning the
|
75
|
+
`(``JobACL``: <optional>)` - Options for assigning the
|
76
|
+
ACL rules to a job, group, or task.
|
75
77
|
"""
|
76
78
|
return pulumi.get(self, "job_acl")
|
77
79
|
|
@@ -102,7 +104,8 @@ class _AclPolicyState:
|
|
102
104
|
"""
|
103
105
|
Input properties used for looking up and filtering AclPolicy resources.
|
104
106
|
:param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
|
105
|
-
:param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
107
|
+
:param pulumi.Input['AclPolicyJobAclArgs'] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
108
|
+
ACL rules to a job, group, or task.
|
106
109
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
|
107
110
|
:param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
|
108
111
|
as HCL or JSON.
|
@@ -132,7 +135,8 @@ class _AclPolicyState:
|
|
132
135
|
@pulumi.getter(name="jobAcl")
|
133
136
|
def job_acl(self) -> Optional[pulumi.Input['AclPolicyJobAclArgs']]:
|
134
137
|
"""
|
135
|
-
`(``JobACL``: <optional>)` - Options for assigning the
|
138
|
+
`(``JobACL``: <optional>)` - Options for assigning the
|
139
|
+
ACL rules to a job, group, or task.
|
136
140
|
"""
|
137
141
|
return pulumi.get(self, "job_acl")
|
138
142
|
|
@@ -182,7 +186,8 @@ class AclPolicy(pulumi.CustomResource):
|
|
182
186
|
:param str resource_name: The name of the resource.
|
183
187
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
184
188
|
:param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
|
185
|
-
:param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
189
|
+
:param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
190
|
+
ACL rules to a job, group, or task.
|
186
191
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
|
187
192
|
:param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
|
188
193
|
as HCL or JSON.
|
@@ -252,7 +257,8 @@ class AclPolicy(pulumi.CustomResource):
|
|
252
257
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
253
258
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
254
259
|
:param pulumi.Input[builtins.str] description: `(string: "")` - A description of the policy.
|
255
|
-
:param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
260
|
+
:param pulumi.Input[Union['AclPolicyJobAclArgs', 'AclPolicyJobAclArgsDict']] job_acl: `(``JobACL``: <optional>)` - Options for assigning the
|
261
|
+
ACL rules to a job, group, or task.
|
256
262
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - A unique name for the policy.
|
257
263
|
:param pulumi.Input[builtins.str] rules_hcl: `(string: <required>)` - The contents of the policy to register,
|
258
264
|
as HCL or JSON.
|
@@ -279,7 +285,8 @@ class AclPolicy(pulumi.CustomResource):
|
|
279
285
|
@pulumi.getter(name="jobAcl")
|
280
286
|
def job_acl(self) -> pulumi.Output[Optional['outputs.AclPolicyJobAcl']]:
|
281
287
|
"""
|
282
|
-
`(``JobACL``: <optional>)` - Options for assigning the
|
288
|
+
`(``JobACL``: <optional>)` - Options for assigning the
|
289
|
+
ACL rules to a job, group, or task.
|
283
290
|
"""
|
284
291
|
return pulumi.get(self, "job_acl")
|
285
292
|
|
pulumi_nomad/config/__init__.pyi
CHANGED
@@ -41,11 +41,6 @@ certPem: Optional[str]
|
|
41
41
|
PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
|
42
42
|
"""
|
43
43
|
|
44
|
-
consulToken: Optional[str]
|
45
|
-
"""
|
46
|
-
Consul token to validate Consul Connect Service Identity policies specified in the job file.
|
47
|
-
"""
|
48
|
-
|
49
44
|
headers: Optional[str]
|
50
45
|
"""
|
51
46
|
The headers to send with each Nomad request.
|
@@ -86,8 +81,3 @@ skipVerify: Optional[bool]
|
|
86
81
|
Skip TLS verification on client side.
|
87
82
|
"""
|
88
83
|
|
89
|
-
vaultToken: Optional[str]
|
90
|
-
"""
|
91
|
-
Vault token if policies are specified in the job file.
|
92
|
-
"""
|
93
|
-
|
pulumi_nomad/config/vars.py
CHANGED
@@ -57,13 +57,6 @@ class _ExportableConfig(types.ModuleType):
|
|
57
57
|
"""
|
58
58
|
return __config__.get('certPem')
|
59
59
|
|
60
|
-
@property
|
61
|
-
def consul_token(self) -> Optional[str]:
|
62
|
-
"""
|
63
|
-
Consul token to validate Consul Connect Service Identity policies specified in the job file.
|
64
|
-
"""
|
65
|
-
return __config__.get('consulToken')
|
66
|
-
|
67
60
|
@property
|
68
61
|
def headers(self) -> Optional[str]:
|
69
62
|
"""
|
@@ -120,10 +113,3 @@ class _ExportableConfig(types.ModuleType):
|
|
120
113
|
"""
|
121
114
|
return __config__.get_bool('skipVerify')
|
122
115
|
|
123
|
-
@property
|
124
|
-
def vault_token(self) -> Optional[str]:
|
125
|
-
"""
|
126
|
-
Vault token if policies are specified in the job file.
|
127
|
-
"""
|
128
|
-
return __config__.get('vaultToken')
|
129
|
-
|
pulumi_nomad/csi_volume.py
CHANGED
@@ -242,6 +242,7 @@ class _CsiVolumeState:
|
|
242
242
|
capacity_min: Optional[pulumi.Input[builtins.str]] = None,
|
243
243
|
capacity_min_bytes: Optional[pulumi.Input[builtins.int]] = None,
|
244
244
|
clone_id: Optional[pulumi.Input[builtins.str]] = None,
|
245
|
+
context: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
245
246
|
controller_required: Optional[pulumi.Input[builtins.bool]] = None,
|
246
247
|
controllers_expected: Optional[pulumi.Input[builtins.int]] = None,
|
247
248
|
controllers_healthy: Optional[pulumi.Input[builtins.int]] = None,
|
@@ -267,6 +268,7 @@ class _CsiVolumeState:
|
|
267
268
|
:param pulumi.Input[builtins.str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
268
269
|
:param pulumi.Input[builtins.str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
269
270
|
:param pulumi.Input[builtins.str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
|
271
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] context: The volume context provided by the storage provider
|
270
272
|
:param pulumi.Input[builtins.str] external_id: The ID of the physical volume from the storage provider.
|
271
273
|
:param pulumi.Input['CsiVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
272
274
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - The display name for the volume.
|
@@ -292,6 +294,8 @@ class _CsiVolumeState:
|
|
292
294
|
pulumi.set(__self__, "capacity_min_bytes", capacity_min_bytes)
|
293
295
|
if clone_id is not None:
|
294
296
|
pulumi.set(__self__, "clone_id", clone_id)
|
297
|
+
if context is not None:
|
298
|
+
pulumi.set(__self__, "context", context)
|
295
299
|
if controller_required is not None:
|
296
300
|
pulumi.set(__self__, "controller_required", controller_required)
|
297
301
|
if controllers_expected is not None:
|
@@ -406,6 +410,18 @@ class _CsiVolumeState:
|
|
406
410
|
def clone_id(self, value: Optional[pulumi.Input[builtins.str]]):
|
407
411
|
pulumi.set(self, "clone_id", value)
|
408
412
|
|
413
|
+
@property
|
414
|
+
@pulumi.getter
|
415
|
+
def context(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
416
|
+
"""
|
417
|
+
The volume context provided by the storage provider
|
418
|
+
"""
|
419
|
+
return pulumi.get(self, "context")
|
420
|
+
|
421
|
+
@context.setter
|
422
|
+
def context(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
423
|
+
pulumi.set(self, "context", value)
|
424
|
+
|
409
425
|
@property
|
410
426
|
@pulumi.getter(name="controllerRequired")
|
411
427
|
def controller_required(self) -> Optional[pulumi.Input[builtins.bool]]:
|
@@ -712,6 +728,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
712
728
|
__props__.__dict__["capacity"] = None
|
713
729
|
__props__.__dict__["capacity_max_bytes"] = None
|
714
730
|
__props__.__dict__["capacity_min_bytes"] = None
|
731
|
+
__props__.__dict__["context"] = None
|
715
732
|
__props__.__dict__["controller_required"] = None
|
716
733
|
__props__.__dict__["controllers_expected"] = None
|
717
734
|
__props__.__dict__["controllers_healthy"] = None
|
@@ -741,6 +758,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
741
758
|
capacity_min: Optional[pulumi.Input[builtins.str]] = None,
|
742
759
|
capacity_min_bytes: Optional[pulumi.Input[builtins.int]] = None,
|
743
760
|
clone_id: Optional[pulumi.Input[builtins.str]] = None,
|
761
|
+
context: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
744
762
|
controller_required: Optional[pulumi.Input[builtins.bool]] = None,
|
745
763
|
controllers_expected: Optional[pulumi.Input[builtins.int]] = None,
|
746
764
|
controllers_healthy: Optional[pulumi.Input[builtins.int]] = None,
|
@@ -771,6 +789,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
771
789
|
:param pulumi.Input[builtins.str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
772
790
|
:param pulumi.Input[builtins.str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
773
791
|
:param pulumi.Input[builtins.str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
|
792
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] context: The volume context provided by the storage provider
|
774
793
|
:param pulumi.Input[builtins.str] external_id: The ID of the physical volume from the storage provider.
|
775
794
|
:param pulumi.Input[Union['CsiVolumeMountOptionsArgs', 'CsiVolumeMountOptionsArgsDict']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
776
795
|
:param pulumi.Input[builtins.str] name: `(string: <required>)` - The display name for the volume.
|
@@ -793,6 +812,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
793
812
|
__props__.__dict__["capacity_min"] = capacity_min
|
794
813
|
__props__.__dict__["capacity_min_bytes"] = capacity_min_bytes
|
795
814
|
__props__.__dict__["clone_id"] = clone_id
|
815
|
+
__props__.__dict__["context"] = context
|
796
816
|
__props__.__dict__["controller_required"] = controller_required
|
797
817
|
__props__.__dict__["controllers_expected"] = controllers_expected
|
798
818
|
__props__.__dict__["controllers_healthy"] = controllers_healthy
|
@@ -861,6 +881,14 @@ class CsiVolume(pulumi.CustomResource):
|
|
861
881
|
"""
|
862
882
|
return pulumi.get(self, "clone_id")
|
863
883
|
|
884
|
+
@property
|
885
|
+
@pulumi.getter
|
886
|
+
def context(self) -> pulumi.Output[Mapping[str, builtins.str]]:
|
887
|
+
"""
|
888
|
+
The volume context provided by the storage provider
|
889
|
+
"""
|
890
|
+
return pulumi.get(self, "context")
|
891
|
+
|
864
892
|
@property
|
865
893
|
@pulumi.getter(name="controllerRequired")
|
866
894
|
def controller_required(self) -> pulumi.Output[builtins.bool]:
|