pulumi-nomad 2.3.0__py3-none-any.whl → 2.3.0a1710918439__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 +0 -1
- pulumi_nomad/_inputs.py +189 -221
- pulumi_nomad/acl_auth_method.py +20 -18
- pulumi_nomad/acl_policy.py +64 -0
- pulumi_nomad/acl_token.py +26 -18
- pulumi_nomad/csi_volume.py +72 -0
- pulumi_nomad/csi_volume_registration.py +72 -0
- pulumi_nomad/external_volume.py +78 -6
- pulumi_nomad/get_acl_policies.py +4 -0
- pulumi_nomad/get_acl_policy.py +4 -0
- pulumi_nomad/get_acl_role.py +4 -0
- pulumi_nomad/get_acl_roles.py +4 -0
- pulumi_nomad/get_acl_token.py +4 -0
- pulumi_nomad/get_acl_tokens.py +4 -0
- pulumi_nomad/get_allocations.py +4 -0
- pulumi_nomad/get_datacenters.py +8 -4
- pulumi_nomad/get_deployments.py +4 -5
- pulumi_nomad/get_job.py +4 -0
- pulumi_nomad/get_job_parser.py +24 -0
- pulumi_nomad/get_namespace.py +4 -0
- pulumi_nomad/get_namespaces.py +4 -2
- pulumi_nomad/get_node_pool.py +4 -0
- pulumi_nomad/get_node_pools.py +4 -0
- pulumi_nomad/get_plugin.py +4 -0
- pulumi_nomad/get_plugins.py +4 -0
- pulumi_nomad/get_regions.py +0 -34
- pulumi_nomad/get_scaling_policies.py +4 -0
- pulumi_nomad/get_scaling_policy.py +4 -0
- pulumi_nomad/get_scheduler_policy.py +4 -0
- pulumi_nomad/get_variable.py +4 -0
- pulumi_nomad/get_volumes.py +4 -0
- pulumi_nomad/job.py +16 -16
- pulumi_nomad/namespace.py +16 -14
- pulumi_nomad/node_pool.py +4 -2
- pulumi_nomad/outputs.py +182 -274
- pulumi_nomad/pulumi-plugin.json +1 -2
- pulumi_nomad/quote_specification.py +6 -4
- pulumi_nomad/scheduler_config.py +10 -6
- pulumi_nomad/sentinel_policy.py +10 -6
- pulumi_nomad/variable.py +18 -14
- pulumi_nomad/volume.py +80 -8
- {pulumi_nomad-2.3.0.dist-info → pulumi_nomad-2.3.0a1710918439.dist-info}/METADATA +1 -1
- pulumi_nomad-2.3.0a1710918439.dist-info/RECORD +54 -0
- pulumi_nomad/get_jwks.py +0 -116
- pulumi_nomad-2.3.0.dist-info/RECORD +0 -55
- {pulumi_nomad-2.3.0.dist-info → pulumi_nomad-2.3.0a1710918439.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.3.0.dist-info → pulumi_nomad-2.3.0a1710918439.dist-info}/top_level.txt +0 -0
pulumi_nomad/pulumi-plugin.json
CHANGED
@@ -144,12 +144,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
144
144
|
|
145
145
|
Registering a quota specification:
|
146
146
|
|
147
|
+
<!--Start PulumiCodeChooser -->
|
147
148
|
```python
|
148
149
|
import pulumi
|
149
150
|
import pulumi_nomad as nomad
|
150
151
|
|
151
|
-
prod_api = nomad.QuoteSpecification("
|
152
|
-
name="prod-api",
|
152
|
+
prod_api = nomad.QuoteSpecification("prodApi",
|
153
153
|
description="Production instances of backend API servers",
|
154
154
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
155
155
|
region="global",
|
@@ -159,6 +159,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
159
159
|
),
|
160
160
|
)])
|
161
161
|
```
|
162
|
+
<!--End PulumiCodeChooser -->
|
162
163
|
|
163
164
|
:param str resource_name: The name of the resource.
|
164
165
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -180,12 +181,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
180
181
|
|
181
182
|
Registering a quota specification:
|
182
183
|
|
184
|
+
<!--Start PulumiCodeChooser -->
|
183
185
|
```python
|
184
186
|
import pulumi
|
185
187
|
import pulumi_nomad as nomad
|
186
188
|
|
187
|
-
prod_api = nomad.QuoteSpecification("
|
188
|
-
name="prod-api",
|
189
|
+
prod_api = nomad.QuoteSpecification("prodApi",
|
189
190
|
description="Production instances of backend API servers",
|
190
191
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
191
192
|
region="global",
|
@@ -195,6 +196,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
195
196
|
),
|
196
197
|
)])
|
197
198
|
```
|
199
|
+
<!--End PulumiCodeChooser -->
|
198
200
|
|
199
201
|
:param str resource_name: The name of the resource.
|
200
202
|
:param QuoteSpecificationArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/scheduler_config.py
CHANGED
@@ -144,20 +144,22 @@ class SchedulerConfig(pulumi.CustomResource):
|
|
144
144
|
|
145
145
|
Set cluster scheduler configuration:
|
146
146
|
|
147
|
+
<!--Start PulumiCodeChooser -->
|
147
148
|
```python
|
148
149
|
import pulumi
|
149
150
|
import pulumi_nomad as nomad
|
150
151
|
|
151
152
|
config = nomad.SchedulerConfig("config",
|
152
|
-
scheduler_algorithm="spread",
|
153
153
|
memory_oversubscription_enabled=True,
|
154
154
|
preemption_config={
|
155
|
-
"system_scheduler_enabled": True,
|
156
155
|
"batch_scheduler_enabled": True,
|
157
156
|
"service_scheduler_enabled": True,
|
158
157
|
"sysbatch_scheduler_enabled": True,
|
159
|
-
|
158
|
+
"system_scheduler_enabled": True,
|
159
|
+
},
|
160
|
+
scheduler_algorithm="spread")
|
160
161
|
```
|
162
|
+
<!--End PulumiCodeChooser -->
|
161
163
|
|
162
164
|
:param str resource_name: The name of the resource.
|
163
165
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -183,20 +185,22 @@ class SchedulerConfig(pulumi.CustomResource):
|
|
183
185
|
|
184
186
|
Set cluster scheduler configuration:
|
185
187
|
|
188
|
+
<!--Start PulumiCodeChooser -->
|
186
189
|
```python
|
187
190
|
import pulumi
|
188
191
|
import pulumi_nomad as nomad
|
189
192
|
|
190
193
|
config = nomad.SchedulerConfig("config",
|
191
|
-
scheduler_algorithm="spread",
|
192
194
|
memory_oversubscription_enabled=True,
|
193
195
|
preemption_config={
|
194
|
-
"system_scheduler_enabled": True,
|
195
196
|
"batch_scheduler_enabled": True,
|
196
197
|
"service_scheduler_enabled": True,
|
197
198
|
"sysbatch_scheduler_enabled": True,
|
198
|
-
|
199
|
+
"system_scheduler_enabled": True,
|
200
|
+
},
|
201
|
+
scheduler_algorithm="spread")
|
199
202
|
```
|
203
|
+
<!--End PulumiCodeChooser -->
|
200
204
|
|
201
205
|
:param str resource_name: The name of the resource.
|
202
206
|
:param SchedulerConfigArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/sentinel_policy.py
CHANGED
@@ -219,13 +219,14 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
219
219
|
|
220
220
|
## Example Usage
|
221
221
|
|
222
|
+
<!--Start PulumiCodeChooser -->
|
222
223
|
```python
|
223
224
|
import pulumi
|
224
225
|
import pulumi_nomad as nomad
|
225
226
|
|
226
227
|
exec_only = nomad.SentinelPolicy("exec-only",
|
227
|
-
name="exec-only",
|
228
228
|
description="Only allow jobs that are based on an exec driver.",
|
229
|
+
enforcement_level="soft-mandatory",
|
229
230
|
policy=\"\"\"main = rule { all_drivers_exec }
|
230
231
|
|
231
232
|
# all_drivers_exec checks that all the drivers in use are exec
|
@@ -236,10 +237,11 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
236
237
|
}
|
237
238
|
}
|
238
239
|
}
|
240
|
+
|
239
241
|
\"\"\",
|
240
|
-
scope="submit-job"
|
241
|
-
enforcement_level="soft-mandatory")
|
242
|
+
scope="submit-job")
|
242
243
|
```
|
244
|
+
<!--End PulumiCodeChooser -->
|
243
245
|
|
244
246
|
:param str resource_name: The name of the resource.
|
245
247
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -267,13 +269,14 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
267
269
|
|
268
270
|
## Example Usage
|
269
271
|
|
272
|
+
<!--Start PulumiCodeChooser -->
|
270
273
|
```python
|
271
274
|
import pulumi
|
272
275
|
import pulumi_nomad as nomad
|
273
276
|
|
274
277
|
exec_only = nomad.SentinelPolicy("exec-only",
|
275
|
-
name="exec-only",
|
276
278
|
description="Only allow jobs that are based on an exec driver.",
|
279
|
+
enforcement_level="soft-mandatory",
|
277
280
|
policy=\"\"\"main = rule { all_drivers_exec }
|
278
281
|
|
279
282
|
# all_drivers_exec checks that all the drivers in use are exec
|
@@ -284,10 +287,11 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
284
287
|
}
|
285
288
|
}
|
286
289
|
}
|
290
|
+
|
287
291
|
\"\"\",
|
288
|
-
scope="submit-job"
|
289
|
-
enforcement_level="soft-mandatory")
|
292
|
+
scope="submit-job")
|
290
293
|
```
|
294
|
+
<!--End PulumiCodeChooser -->
|
291
295
|
|
292
296
|
:param str resource_name: The name of the resource.
|
293
297
|
:param SentinelPolicyArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/variable.py
CHANGED
@@ -135,33 +135,35 @@ class Variable(pulumi.CustomResource):
|
|
135
135
|
|
136
136
|
Creating a variable in the default namespace:
|
137
137
|
|
138
|
+
<!--Start PulumiCodeChooser -->
|
138
139
|
```python
|
139
140
|
import pulumi
|
140
141
|
import pulumi_nomad as nomad
|
141
142
|
|
142
143
|
example = nomad.Variable("example",
|
143
|
-
path="some/path/of/your/choosing",
|
144
144
|
items={
|
145
145
|
"example_key": "example_value",
|
146
|
-
}
|
146
|
+
},
|
147
|
+
path="some/path/of/your/choosing")
|
147
148
|
```
|
149
|
+
<!--End PulumiCodeChooser -->
|
148
150
|
|
149
151
|
Creating a variable in a custom namespace:
|
150
152
|
|
153
|
+
<!--Start PulumiCodeChooser -->
|
151
154
|
```python
|
152
155
|
import pulumi
|
153
156
|
import pulumi_nomad as nomad
|
154
157
|
|
155
|
-
|
156
|
-
|
157
|
-
description="Example namespace.")
|
158
|
-
example_variable = nomad.Variable("example",
|
158
|
+
example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
|
159
|
+
example_variable = nomad.Variable("exampleVariable",
|
159
160
|
path="some/path/of/your/choosing",
|
160
|
-
namespace=
|
161
|
+
namespace=example_namespace.name,
|
161
162
|
items={
|
162
163
|
"example_key": "example_value",
|
163
164
|
})
|
164
165
|
```
|
166
|
+
<!--End PulumiCodeChooser -->
|
165
167
|
|
166
168
|
:param str resource_name: The name of the resource.
|
167
169
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -180,33 +182,35 @@ class Variable(pulumi.CustomResource):
|
|
180
182
|
|
181
183
|
Creating a variable in the default namespace:
|
182
184
|
|
185
|
+
<!--Start PulumiCodeChooser -->
|
183
186
|
```python
|
184
187
|
import pulumi
|
185
188
|
import pulumi_nomad as nomad
|
186
189
|
|
187
190
|
example = nomad.Variable("example",
|
188
|
-
path="some/path/of/your/choosing",
|
189
191
|
items={
|
190
192
|
"example_key": "example_value",
|
191
|
-
}
|
193
|
+
},
|
194
|
+
path="some/path/of/your/choosing")
|
192
195
|
```
|
196
|
+
<!--End PulumiCodeChooser -->
|
193
197
|
|
194
198
|
Creating a variable in a custom namespace:
|
195
199
|
|
200
|
+
<!--Start PulumiCodeChooser -->
|
196
201
|
```python
|
197
202
|
import pulumi
|
198
203
|
import pulumi_nomad as nomad
|
199
204
|
|
200
|
-
|
201
|
-
|
202
|
-
description="Example namespace.")
|
203
|
-
example_variable = nomad.Variable("example",
|
205
|
+
example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
|
206
|
+
example_variable = nomad.Variable("exampleVariable",
|
204
207
|
path="some/path/of/your/choosing",
|
205
|
-
namespace=
|
208
|
+
namespace=example_namespace.name,
|
206
209
|
items={
|
207
210
|
"example_key": "example_value",
|
208
211
|
})
|
209
212
|
```
|
213
|
+
<!--End PulumiCodeChooser -->
|
210
214
|
|
211
215
|
:param str resource_name: The name of the resource.
|
212
216
|
:param VariableArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/volume.py
CHANGED
@@ -318,14 +318,23 @@ class _VolumeState:
|
|
318
318
|
:param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
|
319
319
|
:param pulumi.Input[Sequence[pulumi.Input['VolumeCapabilityArgs']]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
|
320
320
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
|
321
|
+
:param pulumi.Input[bool] controller_required: `(boolean)`
|
322
|
+
:param pulumi.Input[int] controllers_expected: `(integer)`
|
323
|
+
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
321
324
|
:param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
|
322
325
|
:param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
|
323
326
|
:param pulumi.Input['VolumeMountOptionsArgs'] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
324
327
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
325
328
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
329
|
+
:param pulumi.Input[int] nodes_expected: `(integer)`
|
330
|
+
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
326
331
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
|
327
332
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
333
|
+
:param pulumi.Input[str] plugin_provider: `(string)`
|
334
|
+
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
335
|
+
:param pulumi.Input[bool] schedulable: `(boolean)`
|
328
336
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: <optional>)` - An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
|
337
|
+
:param pulumi.Input[Sequence[pulumi.Input['VolumeTopologyArgs']]] topologies: `(List of topologies)`
|
329
338
|
:param pulumi.Input['VolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
330
339
|
:param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
|
331
340
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
@@ -447,6 +456,9 @@ class _VolumeState:
|
|
447
456
|
@property
|
448
457
|
@pulumi.getter(name="controllerRequired")
|
449
458
|
def controller_required(self) -> Optional[pulumi.Input[bool]]:
|
459
|
+
"""
|
460
|
+
`(boolean)`
|
461
|
+
"""
|
450
462
|
return pulumi.get(self, "controller_required")
|
451
463
|
|
452
464
|
@controller_required.setter
|
@@ -456,6 +468,9 @@ class _VolumeState:
|
|
456
468
|
@property
|
457
469
|
@pulumi.getter(name="controllersExpected")
|
458
470
|
def controllers_expected(self) -> Optional[pulumi.Input[int]]:
|
471
|
+
"""
|
472
|
+
`(integer)`
|
473
|
+
"""
|
459
474
|
return pulumi.get(self, "controllers_expected")
|
460
475
|
|
461
476
|
@controllers_expected.setter
|
@@ -465,6 +480,9 @@ class _VolumeState:
|
|
465
480
|
@property
|
466
481
|
@pulumi.getter(name="controllersHealthy")
|
467
482
|
def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
|
483
|
+
"""
|
484
|
+
`(integer)`
|
485
|
+
"""
|
468
486
|
return pulumi.get(self, "controllers_healthy")
|
469
487
|
|
470
488
|
@controllers_healthy.setter
|
@@ -534,6 +552,9 @@ class _VolumeState:
|
|
534
552
|
@property
|
535
553
|
@pulumi.getter(name="nodesExpected")
|
536
554
|
def nodes_expected(self) -> Optional[pulumi.Input[int]]:
|
555
|
+
"""
|
556
|
+
`(integer)`
|
557
|
+
"""
|
537
558
|
return pulumi.get(self, "nodes_expected")
|
538
559
|
|
539
560
|
@nodes_expected.setter
|
@@ -543,6 +564,9 @@ class _VolumeState:
|
|
543
564
|
@property
|
544
565
|
@pulumi.getter(name="nodesHealthy")
|
545
566
|
def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
|
567
|
+
"""
|
568
|
+
`(integer)`
|
569
|
+
"""
|
546
570
|
return pulumi.get(self, "nodes_healthy")
|
547
571
|
|
548
572
|
@nodes_healthy.setter
|
@@ -576,6 +600,9 @@ class _VolumeState:
|
|
576
600
|
@property
|
577
601
|
@pulumi.getter(name="pluginProvider")
|
578
602
|
def plugin_provider(self) -> Optional[pulumi.Input[str]]:
|
603
|
+
"""
|
604
|
+
`(string)`
|
605
|
+
"""
|
579
606
|
return pulumi.get(self, "plugin_provider")
|
580
607
|
|
581
608
|
@plugin_provider.setter
|
@@ -585,6 +612,9 @@ class _VolumeState:
|
|
585
612
|
@property
|
586
613
|
@pulumi.getter(name="pluginProviderVersion")
|
587
614
|
def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
|
615
|
+
"""
|
616
|
+
`(string)`
|
617
|
+
"""
|
588
618
|
return pulumi.get(self, "plugin_provider_version")
|
589
619
|
|
590
620
|
@plugin_provider_version.setter
|
@@ -594,6 +624,9 @@ class _VolumeState:
|
|
594
624
|
@property
|
595
625
|
@pulumi.getter
|
596
626
|
def schedulable(self) -> Optional[pulumi.Input[bool]]:
|
627
|
+
"""
|
628
|
+
`(boolean)`
|
629
|
+
"""
|
597
630
|
return pulumi.get(self, "schedulable")
|
598
631
|
|
599
632
|
@schedulable.setter
|
@@ -615,6 +648,9 @@ class _VolumeState:
|
|
615
648
|
@property
|
616
649
|
@pulumi.getter
|
617
650
|
def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VolumeTopologyArgs']]]]:
|
651
|
+
"""
|
652
|
+
`(List of topologies)`
|
653
|
+
"""
|
618
654
|
return pulumi.get(self, "topologies")
|
619
655
|
|
620
656
|
@topologies.setter
|
@@ -684,19 +720,18 @@ class Volume(pulumi.CustomResource):
|
|
684
720
|
|
685
721
|
Registering a volume:
|
686
722
|
|
723
|
+
<!--Start PulumiCodeChooser -->
|
687
724
|
```python
|
688
725
|
import pulumi
|
689
726
|
import pulumi_nomad as nomad
|
690
727
|
|
691
|
-
# It can sometimes be helpful to wait for a particular plugin to be available
|
692
728
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
693
729
|
wait_for_healthy=True)
|
694
|
-
mysql_volume = nomad.Volume("
|
730
|
+
mysql_volume = nomad.Volume("mysqlVolume",
|
695
731
|
type="csi",
|
696
732
|
plugin_id="aws-ebs0",
|
697
733
|
volume_id="mysql_volume",
|
698
|
-
|
699
|
-
external_id=hashistack["ebsTestVolumeId"],
|
734
|
+
external_id=module["hashistack"]["ebs_test_volume_id"],
|
700
735
|
capabilities=[nomad.VolumeCapabilityArgs(
|
701
736
|
access_mode="single-node-writer",
|
702
737
|
attachment_mode="file-system",
|
@@ -723,6 +758,7 @@ class Volume(pulumi.CustomResource):
|
|
723
758
|
),
|
724
759
|
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
725
760
|
```
|
761
|
+
<!--End PulumiCodeChooser -->
|
726
762
|
|
727
763
|
:param str resource_name: The name of the resource.
|
728
764
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -758,19 +794,18 @@ class Volume(pulumi.CustomResource):
|
|
758
794
|
|
759
795
|
Registering a volume:
|
760
796
|
|
797
|
+
<!--Start PulumiCodeChooser -->
|
761
798
|
```python
|
762
799
|
import pulumi
|
763
800
|
import pulumi_nomad as nomad
|
764
801
|
|
765
|
-
# It can sometimes be helpful to wait for a particular plugin to be available
|
766
802
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
767
803
|
wait_for_healthy=True)
|
768
|
-
mysql_volume = nomad.Volume("
|
804
|
+
mysql_volume = nomad.Volume("mysqlVolume",
|
769
805
|
type="csi",
|
770
806
|
plugin_id="aws-ebs0",
|
771
807
|
volume_id="mysql_volume",
|
772
|
-
|
773
|
-
external_id=hashistack["ebsTestVolumeId"],
|
808
|
+
external_id=module["hashistack"]["ebs_test_volume_id"],
|
774
809
|
capabilities=[nomad.VolumeCapabilityArgs(
|
775
810
|
access_mode="single-node-writer",
|
776
811
|
attachment_mode="file-system",
|
@@ -797,6 +832,7 @@ class Volume(pulumi.CustomResource):
|
|
797
832
|
),
|
798
833
|
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
799
834
|
```
|
835
|
+
<!--End PulumiCodeChooser -->
|
800
836
|
|
801
837
|
:param str resource_name: The name of the resource.
|
802
838
|
:param VolumeArgs args: The arguments to use to populate this resource's properties.
|
@@ -919,14 +955,23 @@ class Volume(pulumi.CustomResource):
|
|
919
955
|
:param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
|
920
956
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeCapabilityArgs']]]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
|
921
957
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
|
958
|
+
:param pulumi.Input[bool] controller_required: `(boolean)`
|
959
|
+
:param pulumi.Input[int] controllers_expected: `(integer)`
|
960
|
+
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
922
961
|
:param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
|
923
962
|
:param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
|
924
963
|
:param pulumi.Input[pulumi.InputType['VolumeMountOptionsArgs']] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
925
964
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
926
965
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
966
|
+
:param pulumi.Input[int] nodes_expected: `(integer)`
|
967
|
+
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
927
968
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
|
928
969
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
970
|
+
:param pulumi.Input[str] plugin_provider: `(string)`
|
971
|
+
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
972
|
+
:param pulumi.Input[bool] schedulable: `(boolean)`
|
929
973
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: <optional>)` - An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
|
974
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeTopologyArgs']]]] topologies: `(List of topologies)`
|
930
975
|
:param pulumi.Input[pulumi.InputType['VolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
931
976
|
:param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
|
932
977
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
@@ -1007,16 +1052,25 @@ class Volume(pulumi.CustomResource):
|
|
1007
1052
|
@property
|
1008
1053
|
@pulumi.getter(name="controllerRequired")
|
1009
1054
|
def controller_required(self) -> pulumi.Output[bool]:
|
1055
|
+
"""
|
1056
|
+
`(boolean)`
|
1057
|
+
"""
|
1010
1058
|
return pulumi.get(self, "controller_required")
|
1011
1059
|
|
1012
1060
|
@property
|
1013
1061
|
@pulumi.getter(name="controllersExpected")
|
1014
1062
|
def controllers_expected(self) -> pulumi.Output[int]:
|
1063
|
+
"""
|
1064
|
+
`(integer)`
|
1065
|
+
"""
|
1015
1066
|
return pulumi.get(self, "controllers_expected")
|
1016
1067
|
|
1017
1068
|
@property
|
1018
1069
|
@pulumi.getter(name="controllersHealthy")
|
1019
1070
|
def controllers_healthy(self) -> pulumi.Output[int]:
|
1071
|
+
"""
|
1072
|
+
`(integer)`
|
1073
|
+
"""
|
1020
1074
|
return pulumi.get(self, "controllers_healthy")
|
1021
1075
|
|
1022
1076
|
@property
|
@@ -1062,11 +1116,17 @@ class Volume(pulumi.CustomResource):
|
|
1062
1116
|
@property
|
1063
1117
|
@pulumi.getter(name="nodesExpected")
|
1064
1118
|
def nodes_expected(self) -> pulumi.Output[int]:
|
1119
|
+
"""
|
1120
|
+
`(integer)`
|
1121
|
+
"""
|
1065
1122
|
return pulumi.get(self, "nodes_expected")
|
1066
1123
|
|
1067
1124
|
@property
|
1068
1125
|
@pulumi.getter(name="nodesHealthy")
|
1069
1126
|
def nodes_healthy(self) -> pulumi.Output[int]:
|
1127
|
+
"""
|
1128
|
+
`(integer)`
|
1129
|
+
"""
|
1070
1130
|
return pulumi.get(self, "nodes_healthy")
|
1071
1131
|
|
1072
1132
|
@property
|
@@ -1088,16 +1148,25 @@ class Volume(pulumi.CustomResource):
|
|
1088
1148
|
@property
|
1089
1149
|
@pulumi.getter(name="pluginProvider")
|
1090
1150
|
def plugin_provider(self) -> pulumi.Output[str]:
|
1151
|
+
"""
|
1152
|
+
`(string)`
|
1153
|
+
"""
|
1091
1154
|
return pulumi.get(self, "plugin_provider")
|
1092
1155
|
|
1093
1156
|
@property
|
1094
1157
|
@pulumi.getter(name="pluginProviderVersion")
|
1095
1158
|
def plugin_provider_version(self) -> pulumi.Output[str]:
|
1159
|
+
"""
|
1160
|
+
`(string)`
|
1161
|
+
"""
|
1096
1162
|
return pulumi.get(self, "plugin_provider_version")
|
1097
1163
|
|
1098
1164
|
@property
|
1099
1165
|
@pulumi.getter
|
1100
1166
|
def schedulable(self) -> pulumi.Output[bool]:
|
1167
|
+
"""
|
1168
|
+
`(boolean)`
|
1169
|
+
"""
|
1101
1170
|
return pulumi.get(self, "schedulable")
|
1102
1171
|
|
1103
1172
|
@property
|
@@ -1111,6 +1180,9 @@ class Volume(pulumi.CustomResource):
|
|
1111
1180
|
@property
|
1112
1181
|
@pulumi.getter
|
1113
1182
|
def topologies(self) -> pulumi.Output[Sequence['outputs.VolumeTopology']]:
|
1183
|
+
"""
|
1184
|
+
`(List of topologies)`
|
1185
|
+
"""
|
1114
1186
|
return pulumi.get(self, "topologies")
|
1115
1187
|
|
1116
1188
|
@property
|
@@ -0,0 +1,54 @@
|
|
1
|
+
pulumi_nomad/__init__.py,sha256=QUArXGICF8dmn0esax2QRn_bSJNVdbfnLlaahZRlmAU,4332
|
2
|
+
pulumi_nomad/_inputs.py,sha256=usdXoIDUl9uStnrOTaVJRgdjF79shLPGXxK6rUCamGU,73944
|
3
|
+
pulumi_nomad/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
4
|
+
pulumi_nomad/acl_auth_method.py,sha256=op2mW3Um1ztWiYMz-aryNbccv0gZr6ffXVuapCSd-UY,23832
|
5
|
+
pulumi_nomad/acl_binding_rule.py,sha256=7YZsOVUoabSUsThSiusJBju9S5kYcQGAclPqqRjj3PY,16396
|
6
|
+
pulumi_nomad/acl_policy.py,sha256=FZsHQ-Csd2I2OmHFm0znGJBwZ2TbX-XD3ZPikAD6r_I,13862
|
7
|
+
pulumi_nomad/acl_role.py,sha256=AzyAijJ-05LPP71sGis0paEqTI9wjVjj9EnTAN1Ln7A,10526
|
8
|
+
pulumi_nomad/acl_token.py,sha256=SdRo62U8dczC0ZonjO5mg_SDBpxJ64q7CNRRqQwo_x8,29169
|
9
|
+
pulumi_nomad/csi_volume.py,sha256=OvyQzy3HejF2Z_cOLVGDRpj9uUvh92QEL0LcW0QGUeQ,50670
|
10
|
+
pulumi_nomad/csi_volume_registration.py,sha256=lLoYUAdyjs0CbNZ2tviAWxiegb7DGGPcnTNomo68Z54,52609
|
11
|
+
pulumi_nomad/external_volume.py,sha256=C0uMzTZNqujNq5cAxQvHjQblAg_MRRIvbMgeexuhnS4,52423
|
12
|
+
pulumi_nomad/get_acl_policies.py,sha256=yOlZOApdRFEZtUd9mC-W_40IJPNQhRsBl4yrvrr-n6k,3690
|
13
|
+
pulumi_nomad/get_acl_policy.py,sha256=H1_cLpAJKo0_KiPAzC7xLbyV13DoXadg9KkeAjJQ8ko,3940
|
14
|
+
pulumi_nomad/get_acl_role.py,sha256=0E48rEByK4-ML_LBivWmf7mMGhGtho8kx8L9G7rCL5U,4013
|
15
|
+
pulumi_nomad/get_acl_roles.py,sha256=WkTV118LhSJBGIXAG7Sqdzl_AHA4Ak5lZPM_rbbBYDI,3586
|
16
|
+
pulumi_nomad/get_acl_token.py,sha256=7iO6G5_4xoIZQ-tvuDqtKmUhjGIeSZYv_YVDqQITLdQ,7770
|
17
|
+
pulumi_nomad/get_acl_tokens.py,sha256=9iim76Kv5TC2GRfvgP8_n61LKtyeXqX6t5ZYOL5qnpM,3559
|
18
|
+
pulumi_nomad/get_allocations.py,sha256=MArJUqco0qw3zWN2ynvy-7bRfGjgO1vgzUm7CRLn_Ec,5490
|
19
|
+
pulumi_nomad/get_datacenters.py,sha256=84hJ-FNMmkFI5I_WVSg7y2iojJEBsSCTJg3Sx1zMzmE,4787
|
20
|
+
pulumi_nomad/get_deployments.py,sha256=5Vb127w47avaRjYId1Nl_atp56oTyLmVVbyXe2stxOQ,2855
|
21
|
+
pulumi_nomad/get_job.py,sha256=Y_9h7REpEWBl14JhTPGotUUxbUT4gSgkL-kmMl_7Uqk,13544
|
22
|
+
pulumi_nomad/get_job_parser.py,sha256=ZwoO_SPRLkRlJJJKM7Wk9J-a0zkRiLkTpfwRhN_9tzM,4601
|
23
|
+
pulumi_nomad/get_namespace.py,sha256=-mbFZICuMhqRhGeqPl6tHnbq7eee1W6BsZdwgf9Ztds,5484
|
24
|
+
pulumi_nomad/get_namespaces.py,sha256=IsCb9UWnLu2KviL-tWSjKWWNGMXbgd_1W9On5lb30Gs,3581
|
25
|
+
pulumi_nomad/get_node_pool.py,sha256=Rzd3k3YFJ5iqGdaRLnOd5L2jWPdZ69BcNxgD1VT2aBw,4567
|
26
|
+
pulumi_nomad/get_node_pools.py,sha256=Z_2wMEN09OupmAnT3OSQrbbhl16C3ml-rHia7OHl97Y,4510
|
27
|
+
pulumi_nomad/get_plugin.py,sha256=TaRHZvSdIqMUOzt_FeWKqoR2yeXcv9Kf0dsdwRGjVe0,10872
|
28
|
+
pulumi_nomad/get_plugins.py,sha256=vAfKtqQOVmN9DJP7jkvSJbbnM9GL0M_CyxFPnjywdw0,3249
|
29
|
+
pulumi_nomad/get_regions.py,sha256=lo008485fC7yjnmpzL7R9_m01FeczuAfx8lRe252BC4,2336
|
30
|
+
pulumi_nomad/get_scaling_policies.py,sha256=gdF77qXTNwqjfXrYw0dQa1upnHzZNnANz6poPrX92h4,4798
|
31
|
+
pulumi_nomad/get_scaling_policy.py,sha256=kDGLWYiZ2N2Pif6YlOfWheVJD7GpADPdPStQSInjy1Q,5256
|
32
|
+
pulumi_nomad/get_scheduler_policy.py,sha256=jCMlDXQZvCnS76XMLWmeUZUW0Rm2psNVA7n2ZHRT50w,4686
|
33
|
+
pulumi_nomad/get_variable.py,sha256=dGzWoEhOnqQF2dL9ZGVG52DzLIIKKknC9TjzGtggVCg,4253
|
34
|
+
pulumi_nomad/get_volumes.py,sha256=ecBvniqg-ltQ_XvLsYTb4_g3Se3MneS0LQwDbbZl_5w,5560
|
35
|
+
pulumi_nomad/job.py,sha256=YMuoAetXRNpQCt4NF15_aIjKIIj9Do9AoSFphqddxzw,51983
|
36
|
+
pulumi_nomad/namespace.py,sha256=uLt6-h0CGTntslI-BVRxy4Gwfhz-I_1lE_hf2_vKID8,20661
|
37
|
+
pulumi_nomad/node_pool.py,sha256=gElsf_T0PTUZzUVp4C9m94h_LKkqTWW-zjaow5PUsNA,13234
|
38
|
+
pulumi_nomad/outputs.py,sha256=Ye8Vi1txnZ4bnTdX_wu0kVGChgM-wza7yBnTUxqY6nM,100555
|
39
|
+
pulumi_nomad/provider.py,sha256=kXiczhVPifjDrveY1h4jz1sqGvu8ahRNbh-f3QLDuew,21549
|
40
|
+
pulumi_nomad/pulumi-plugin.json,sha256=2s0bEeojFder0tplFBIeTqy2h7Y8kNsJQ696Q6gJHqU,42
|
41
|
+
pulumi_nomad/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
|
+
pulumi_nomad/quote_specification.py,sha256=kHZfd9wL-yXeRFsb0dmKKtrGiB3B4hkKxO8uxGkiBuI,12209
|
43
|
+
pulumi_nomad/scheduler_config.py,sha256=7Ap8fKun8dqdHE-sw9-yK60RdAfAgCzvu9IhcVD1rSI,14266
|
44
|
+
pulumi_nomad/sentinel_policy.py,sha256=Bc7s9bUhHrrtgEZQgGK9gYinWN5c9V1e37vXsM8GQlg,17156
|
45
|
+
pulumi_nomad/variable.py,sha256=uImwdvXU8YwupEqoZAQ8j03cjOk-MjfNVqVPM719u_4,11835
|
46
|
+
pulumi_nomad/volume.py,sha256=oUiBi2pCV5-3INaTz-dZZScR7U3fw1ECHqaq4-KLmbE,57464
|
47
|
+
pulumi_nomad/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
48
|
+
pulumi_nomad/config/__init__.pyi,sha256=xqQrj9Co22MZN1IMoQwefoce6b6zI5nQfuA4L_uqw3Q,1865
|
49
|
+
pulumi_nomad/config/outputs.py,sha256=EJXQtJx8CPqK4-XlVBLC4rbjzI1AVUBUrOjFgyxwtuk,1003
|
50
|
+
pulumi_nomad/config/vars.py,sha256=pNNlDdaVJeMKr6TPOOJ4wW-_KPneYFizgpPjUIxa9rU,3432
|
51
|
+
pulumi_nomad-2.3.0a1710918439.dist-info/METADATA,sha256=MNPIokIS91Gdor0AD82XjB3B0KPgT3ZtDna7ym--QWk,4730
|
52
|
+
pulumi_nomad-2.3.0a1710918439.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
53
|
+
pulumi_nomad-2.3.0a1710918439.dist-info/top_level.txt,sha256=1JxoZWssmXqN-8vVDXtedeoWtI703uNWUOzlm8Byv-o,13
|
54
|
+
pulumi_nomad-2.3.0a1710918439.dist-info/RECORD,,
|