pulumi-nomad 2.2.0a1710332982__py3-none-any.whl → 2.2.1__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/_inputs.py +32 -126
- pulumi_nomad/acl_auth_method.py +4 -6
- pulumi_nomad/acl_policy.py +0 -64
- pulumi_nomad/acl_token.py +18 -26
- pulumi_nomad/csi_volume.py +0 -72
- pulumi_nomad/csi_volume_registration.py +0 -72
- pulumi_nomad/external_volume.py +6 -78
- pulumi_nomad/get_acl_policies.py +0 -4
- pulumi_nomad/get_acl_policy.py +0 -4
- pulumi_nomad/get_acl_role.py +0 -4
- pulumi_nomad/get_acl_roles.py +0 -4
- pulumi_nomad/get_acl_token.py +0 -4
- pulumi_nomad/get_acl_tokens.py +0 -4
- pulumi_nomad/get_allocations.py +0 -4
- pulumi_nomad/get_datacenters.py +4 -8
- pulumi_nomad/get_deployments.py +0 -4
- pulumi_nomad/get_job.py +0 -4
- pulumi_nomad/get_job_parser.py +0 -24
- pulumi_nomad/get_namespace.py +0 -4
- pulumi_nomad/get_namespaces.py +2 -4
- pulumi_nomad/get_node_pool.py +0 -4
- pulumi_nomad/get_node_pools.py +0 -4
- pulumi_nomad/get_plugin.py +0 -4
- pulumi_nomad/get_plugins.py +0 -4
- pulumi_nomad/get_regions.py +34 -0
- pulumi_nomad/get_scaling_policies.py +0 -4
- pulumi_nomad/get_scaling_policy.py +0 -4
- pulumi_nomad/get_scheduler_policy.py +0 -4
- pulumi_nomad/get_variable.py +0 -4
- pulumi_nomad/get_volumes.py +0 -4
- pulumi_nomad/job.py +16 -16
- pulumi_nomad/namespace.py +14 -16
- pulumi_nomad/node_pool.py +2 -4
- pulumi_nomad/outputs.py +32 -126
- pulumi_nomad/quote_specification.py +4 -6
- pulumi_nomad/scheduler_config.py +6 -10
- pulumi_nomad/sentinel_policy.py +6 -10
- pulumi_nomad/variable.py +14 -18
- pulumi_nomad/volume.py +8 -80
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/METADATA +1 -1
- pulumi_nomad-2.2.1.dist-info/RECORD +54 -0
- pulumi_nomad-2.2.0a1710332982.dist-info/RECORD +0 -54
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
pulumi_nomad/outputs.py
CHANGED
@@ -297,15 +297,10 @@ class AclPolicyJobAcl(dict):
|
|
297
297
|
namespace: Optional[str] = None,
|
298
298
|
task: Optional[str] = None):
|
299
299
|
"""
|
300
|
-
:param str job_id:
|
301
|
-
|
302
|
-
:param str
|
303
|
-
|
304
|
-
:param str namespace: `(string: "default")` - The namespace to attach the policy.
|
305
|
-
Required if `job_id` is set.
|
306
|
-
:param str task: `(string: <optional>` - The task to attach the policy.
|
307
|
-
|
308
|
-
[nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
|
300
|
+
:param str job_id: Job
|
301
|
+
:param str group: Group
|
302
|
+
:param str namespace: Namespace
|
303
|
+
:param str task: Task
|
309
304
|
"""
|
310
305
|
pulumi.set(__self__, "job_id", job_id)
|
311
306
|
if group is not None:
|
@@ -319,8 +314,7 @@ class AclPolicyJobAcl(dict):
|
|
319
314
|
@pulumi.getter(name="jobId")
|
320
315
|
def job_id(self) -> str:
|
321
316
|
"""
|
322
|
-
|
323
|
-
`group` is set.
|
317
|
+
Job
|
324
318
|
"""
|
325
319
|
return pulumi.get(self, "job_id")
|
326
320
|
|
@@ -328,8 +322,7 @@ class AclPolicyJobAcl(dict):
|
|
328
322
|
@pulumi.getter
|
329
323
|
def group(self) -> Optional[str]:
|
330
324
|
"""
|
331
|
-
|
332
|
-
`task` is set.
|
325
|
+
Group
|
333
326
|
"""
|
334
327
|
return pulumi.get(self, "group")
|
335
328
|
|
@@ -337,8 +330,7 @@ class AclPolicyJobAcl(dict):
|
|
337
330
|
@pulumi.getter
|
338
331
|
def namespace(self) -> Optional[str]:
|
339
332
|
"""
|
340
|
-
|
341
|
-
Required if `job_id` is set.
|
333
|
+
Namespace
|
342
334
|
"""
|
343
335
|
return pulumi.get(self, "namespace")
|
344
336
|
|
@@ -346,9 +338,7 @@ class AclPolicyJobAcl(dict):
|
|
346
338
|
@pulumi.getter
|
347
339
|
def task(self) -> Optional[str]:
|
348
340
|
"""
|
349
|
-
|
350
|
-
|
351
|
-
[nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
|
341
|
+
Task
|
352
342
|
"""
|
353
343
|
return pulumi.get(self, "task")
|
354
344
|
|
@@ -629,24 +619,12 @@ class CsiVolumeRegistrationMountOptions(dict):
|
|
629
619
|
class CsiVolumeRegistrationTopology(dict):
|
630
620
|
def __init__(__self__, *,
|
631
621
|
segments: Optional[Mapping[str, str]] = None):
|
632
|
-
"""
|
633
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
634
|
-
|
635
|
-
In addition to the above arguments, the following attributes are exported and
|
636
|
-
can be referenced:
|
637
|
-
"""
|
638
622
|
if segments is not None:
|
639
623
|
pulumi.set(__self__, "segments", segments)
|
640
624
|
|
641
625
|
@property
|
642
626
|
@pulumi.getter
|
643
627
|
def segments(self) -> Optional[Mapping[str, str]]:
|
644
|
-
"""
|
645
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
646
|
-
|
647
|
-
In addition to the above arguments, the following attributes are exported and
|
648
|
-
can be referenced:
|
649
|
-
"""
|
650
628
|
return pulumi.get(self, "segments")
|
651
629
|
|
652
630
|
|
@@ -674,7 +652,7 @@ class CsiVolumeRegistrationTopologyRequestRequired(dict):
|
|
674
652
|
def __init__(__self__, *,
|
675
653
|
topologies: Sequence['outputs.CsiVolumeRegistrationTopologyRequestRequiredTopology']):
|
676
654
|
"""
|
677
|
-
:param Sequence['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs'] topologies:
|
655
|
+
:param Sequence['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
678
656
|
"""
|
679
657
|
pulumi.set(__self__, "topologies", topologies)
|
680
658
|
|
@@ -682,7 +660,7 @@ class CsiVolumeRegistrationTopologyRequestRequired(dict):
|
|
682
660
|
@pulumi.getter
|
683
661
|
def topologies(self) -> Sequence['outputs.CsiVolumeRegistrationTopologyRequestRequiredTopology']:
|
684
662
|
"""
|
685
|
-
|
663
|
+
Defines the location for the volume.
|
686
664
|
"""
|
687
665
|
return pulumi.get(self, "topologies")
|
688
666
|
|
@@ -692,10 +670,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
692
670
|
def __init__(__self__, *,
|
693
671
|
segments: Mapping[str, str]):
|
694
672
|
"""
|
695
|
-
:param Mapping[str, str] segments:
|
696
|
-
|
697
|
-
In addition to the above arguments, the following attributes are exported and
|
698
|
-
can be referenced:
|
673
|
+
:param Mapping[str, str] segments: Define attributes for the topology request.
|
699
674
|
"""
|
700
675
|
pulumi.set(__self__, "segments", segments)
|
701
676
|
|
@@ -703,10 +678,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
703
678
|
@pulumi.getter
|
704
679
|
def segments(self) -> Mapping[str, str]:
|
705
680
|
"""
|
706
|
-
|
707
|
-
|
708
|
-
In addition to the above arguments, the following attributes are exported and
|
709
|
-
can be referenced:
|
681
|
+
Define attributes for the topology request.
|
710
682
|
"""
|
711
683
|
return pulumi.get(self, "segments")
|
712
684
|
|
@@ -715,24 +687,12 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
715
687
|
class CsiVolumeTopology(dict):
|
716
688
|
def __init__(__self__, *,
|
717
689
|
segments: Optional[Mapping[str, str]] = None):
|
718
|
-
"""
|
719
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
720
|
-
|
721
|
-
In addition to the above arguments, the following attributes are exported and
|
722
|
-
can be referenced:
|
723
|
-
"""
|
724
690
|
if segments is not None:
|
725
691
|
pulumi.set(__self__, "segments", segments)
|
726
692
|
|
727
693
|
@property
|
728
694
|
@pulumi.getter
|
729
695
|
def segments(self) -> Optional[Mapping[str, str]]:
|
730
|
-
"""
|
731
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
732
|
-
|
733
|
-
In addition to the above arguments, the following attributes are exported and
|
734
|
-
can be referenced:
|
735
|
-
"""
|
736
696
|
return pulumi.get(self, "segments")
|
737
697
|
|
738
698
|
|
@@ -772,7 +732,7 @@ class CsiVolumeTopologyRequestPreferred(dict):
|
|
772
732
|
def __init__(__self__, *,
|
773
733
|
topologies: Sequence['outputs.CsiVolumeTopologyRequestPreferredTopology']):
|
774
734
|
"""
|
775
|
-
:param Sequence['CsiVolumeTopologyRequestPreferredTopologyArgs'] topologies:
|
735
|
+
:param Sequence['CsiVolumeTopologyRequestPreferredTopologyArgs'] topologies: Defines the location for the volume.
|
776
736
|
"""
|
777
737
|
pulumi.set(__self__, "topologies", topologies)
|
778
738
|
|
@@ -780,7 +740,7 @@ class CsiVolumeTopologyRequestPreferred(dict):
|
|
780
740
|
@pulumi.getter
|
781
741
|
def topologies(self) -> Sequence['outputs.CsiVolumeTopologyRequestPreferredTopology']:
|
782
742
|
"""
|
783
|
-
|
743
|
+
Defines the location for the volume.
|
784
744
|
"""
|
785
745
|
return pulumi.get(self, "topologies")
|
786
746
|
|
@@ -790,10 +750,7 @@ class CsiVolumeTopologyRequestPreferredTopology(dict):
|
|
790
750
|
def __init__(__self__, *,
|
791
751
|
segments: Mapping[str, str]):
|
792
752
|
"""
|
793
|
-
:param Mapping[str, str] segments:
|
794
|
-
|
795
|
-
In addition to the above arguments, the following attributes are exported and
|
796
|
-
can be referenced:
|
753
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
797
754
|
"""
|
798
755
|
pulumi.set(__self__, "segments", segments)
|
799
756
|
|
@@ -801,10 +758,7 @@ class CsiVolumeTopologyRequestPreferredTopology(dict):
|
|
801
758
|
@pulumi.getter
|
802
759
|
def segments(self) -> Mapping[str, str]:
|
803
760
|
"""
|
804
|
-
|
805
|
-
|
806
|
-
In addition to the above arguments, the following attributes are exported and
|
807
|
-
can be referenced:
|
761
|
+
Define the attributes for the topology request.
|
808
762
|
"""
|
809
763
|
return pulumi.get(self, "segments")
|
810
764
|
|
@@ -814,7 +768,7 @@ class CsiVolumeTopologyRequestRequired(dict):
|
|
814
768
|
def __init__(__self__, *,
|
815
769
|
topologies: Sequence['outputs.CsiVolumeTopologyRequestRequiredTopology']):
|
816
770
|
"""
|
817
|
-
:param Sequence['CsiVolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
771
|
+
:param Sequence['CsiVolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
818
772
|
"""
|
819
773
|
pulumi.set(__self__, "topologies", topologies)
|
820
774
|
|
@@ -822,7 +776,7 @@ class CsiVolumeTopologyRequestRequired(dict):
|
|
822
776
|
@pulumi.getter
|
823
777
|
def topologies(self) -> Sequence['outputs.CsiVolumeTopologyRequestRequiredTopology']:
|
824
778
|
"""
|
825
|
-
|
779
|
+
Defines the location for the volume.
|
826
780
|
"""
|
827
781
|
return pulumi.get(self, "topologies")
|
828
782
|
|
@@ -832,10 +786,7 @@ class CsiVolumeTopologyRequestRequiredTopology(dict):
|
|
832
786
|
def __init__(__self__, *,
|
833
787
|
segments: Mapping[str, str]):
|
834
788
|
"""
|
835
|
-
:param Mapping[str, str] segments:
|
836
|
-
|
837
|
-
In addition to the above arguments, the following attributes are exported and
|
838
|
-
can be referenced:
|
789
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
839
790
|
"""
|
840
791
|
pulumi.set(__self__, "segments", segments)
|
841
792
|
|
@@ -843,10 +794,7 @@ class CsiVolumeTopologyRequestRequiredTopology(dict):
|
|
843
794
|
@pulumi.getter
|
844
795
|
def segments(self) -> Mapping[str, str]:
|
845
796
|
"""
|
846
|
-
|
847
|
-
|
848
|
-
In addition to the above arguments, the following attributes are exported and
|
849
|
-
can be referenced:
|
797
|
+
Define the attributes for the topology request.
|
850
798
|
"""
|
851
799
|
return pulumi.get(self, "segments")
|
852
800
|
|
@@ -967,24 +915,12 @@ class ExternalVolumeMountOptions(dict):
|
|
967
915
|
class ExternalVolumeTopology(dict):
|
968
916
|
def __init__(__self__, *,
|
969
917
|
segments: Optional[Mapping[str, str]] = None):
|
970
|
-
"""
|
971
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
972
|
-
|
973
|
-
In addition to the above arguments, the following attributes are exported and
|
974
|
-
can be referenced:
|
975
|
-
"""
|
976
918
|
if segments is not None:
|
977
919
|
pulumi.set(__self__, "segments", segments)
|
978
920
|
|
979
921
|
@property
|
980
922
|
@pulumi.getter
|
981
923
|
def segments(self) -> Optional[Mapping[str, str]]:
|
982
|
-
"""
|
983
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
984
|
-
|
985
|
-
In addition to the above arguments, the following attributes are exported and
|
986
|
-
can be referenced:
|
987
|
-
"""
|
988
924
|
return pulumi.get(self, "segments")
|
989
925
|
|
990
926
|
|
@@ -1024,7 +960,7 @@ class ExternalVolumeTopologyRequestPreferred(dict):
|
|
1024
960
|
def __init__(__self__, *,
|
1025
961
|
topologies: Sequence['outputs.ExternalVolumeTopologyRequestPreferredTopology']):
|
1026
962
|
"""
|
1027
|
-
:param Sequence['ExternalVolumeTopologyRequestPreferredTopologyArgs'] topologies:
|
963
|
+
:param Sequence['ExternalVolumeTopologyRequestPreferredTopologyArgs'] topologies: Defines the location for the volume.
|
1028
964
|
"""
|
1029
965
|
pulumi.set(__self__, "topologies", topologies)
|
1030
966
|
|
@@ -1032,7 +968,7 @@ class ExternalVolumeTopologyRequestPreferred(dict):
|
|
1032
968
|
@pulumi.getter
|
1033
969
|
def topologies(self) -> Sequence['outputs.ExternalVolumeTopologyRequestPreferredTopology']:
|
1034
970
|
"""
|
1035
|
-
|
971
|
+
Defines the location for the volume.
|
1036
972
|
"""
|
1037
973
|
return pulumi.get(self, "topologies")
|
1038
974
|
|
@@ -1042,10 +978,7 @@ class ExternalVolumeTopologyRequestPreferredTopology(dict):
|
|
1042
978
|
def __init__(__self__, *,
|
1043
979
|
segments: Mapping[str, str]):
|
1044
980
|
"""
|
1045
|
-
:param Mapping[str, str] segments:
|
1046
|
-
|
1047
|
-
In addition to the above arguments, the following attributes are exported and
|
1048
|
-
can be referenced:
|
981
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
1049
982
|
"""
|
1050
983
|
pulumi.set(__self__, "segments", segments)
|
1051
984
|
|
@@ -1053,10 +986,7 @@ class ExternalVolumeTopologyRequestPreferredTopology(dict):
|
|
1053
986
|
@pulumi.getter
|
1054
987
|
def segments(self) -> Mapping[str, str]:
|
1055
988
|
"""
|
1056
|
-
|
1057
|
-
|
1058
|
-
In addition to the above arguments, the following attributes are exported and
|
1059
|
-
can be referenced:
|
989
|
+
Define the attributes for the topology request.
|
1060
990
|
"""
|
1061
991
|
return pulumi.get(self, "segments")
|
1062
992
|
|
@@ -1066,7 +996,7 @@ class ExternalVolumeTopologyRequestRequired(dict):
|
|
1066
996
|
def __init__(__self__, *,
|
1067
997
|
topologies: Sequence['outputs.ExternalVolumeTopologyRequestRequiredTopology']):
|
1068
998
|
"""
|
1069
|
-
:param Sequence['ExternalVolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
999
|
+
:param Sequence['ExternalVolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
1070
1000
|
"""
|
1071
1001
|
pulumi.set(__self__, "topologies", topologies)
|
1072
1002
|
|
@@ -1074,7 +1004,7 @@ class ExternalVolumeTopologyRequestRequired(dict):
|
|
1074
1004
|
@pulumi.getter
|
1075
1005
|
def topologies(self) -> Sequence['outputs.ExternalVolumeTopologyRequestRequiredTopology']:
|
1076
1006
|
"""
|
1077
|
-
|
1007
|
+
Defines the location for the volume.
|
1078
1008
|
"""
|
1079
1009
|
return pulumi.get(self, "topologies")
|
1080
1010
|
|
@@ -1084,10 +1014,7 @@ class ExternalVolumeTopologyRequestRequiredTopology(dict):
|
|
1084
1014
|
def __init__(__self__, *,
|
1085
1015
|
segments: Mapping[str, str]):
|
1086
1016
|
"""
|
1087
|
-
:param Mapping[str, str] segments:
|
1088
|
-
|
1089
|
-
In addition to the above arguments, the following attributes are exported and
|
1090
|
-
can be referenced:
|
1017
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
1091
1018
|
"""
|
1092
1019
|
pulumi.set(__self__, "segments", segments)
|
1093
1020
|
|
@@ -1095,10 +1022,7 @@ class ExternalVolumeTopologyRequestRequiredTopology(dict):
|
|
1095
1022
|
@pulumi.getter
|
1096
1023
|
def segments(self) -> Mapping[str, str]:
|
1097
1024
|
"""
|
1098
|
-
|
1099
|
-
|
1100
|
-
In addition to the above arguments, the following attributes are exported and
|
1101
|
-
can be referenced:
|
1025
|
+
Define the attributes for the topology request.
|
1102
1026
|
"""
|
1103
1027
|
return pulumi.get(self, "segments")
|
1104
1028
|
|
@@ -1750,24 +1674,12 @@ class VolumeMountOptions(dict):
|
|
1750
1674
|
class VolumeTopology(dict):
|
1751
1675
|
def __init__(__self__, *,
|
1752
1676
|
segments: Optional[Mapping[str, str]] = None):
|
1753
|
-
"""
|
1754
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1755
|
-
|
1756
|
-
In addition to the above arguments, the following attributes are exported and
|
1757
|
-
can be referenced:
|
1758
|
-
"""
|
1759
1677
|
if segments is not None:
|
1760
1678
|
pulumi.set(__self__, "segments", segments)
|
1761
1679
|
|
1762
1680
|
@property
|
1763
1681
|
@pulumi.getter
|
1764
1682
|
def segments(self) -> Optional[Mapping[str, str]]:
|
1765
|
-
"""
|
1766
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1767
|
-
|
1768
|
-
In addition to the above arguments, the following attributes are exported and
|
1769
|
-
can be referenced:
|
1770
|
-
"""
|
1771
1683
|
return pulumi.get(self, "segments")
|
1772
1684
|
|
1773
1685
|
|
@@ -1795,7 +1707,7 @@ class VolumeTopologyRequestRequired(dict):
|
|
1795
1707
|
def __init__(__self__, *,
|
1796
1708
|
topologies: Sequence['outputs.VolumeTopologyRequestRequiredTopology']):
|
1797
1709
|
"""
|
1798
|
-
:param Sequence['VolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
1710
|
+
:param Sequence['VolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
1799
1711
|
"""
|
1800
1712
|
pulumi.set(__self__, "topologies", topologies)
|
1801
1713
|
|
@@ -1803,7 +1715,7 @@ class VolumeTopologyRequestRequired(dict):
|
|
1803
1715
|
@pulumi.getter
|
1804
1716
|
def topologies(self) -> Sequence['outputs.VolumeTopologyRequestRequiredTopology']:
|
1805
1717
|
"""
|
1806
|
-
|
1718
|
+
Defines the location for the volume.
|
1807
1719
|
"""
|
1808
1720
|
return pulumi.get(self, "topologies")
|
1809
1721
|
|
@@ -1813,10 +1725,7 @@ class VolumeTopologyRequestRequiredTopology(dict):
|
|
1813
1725
|
def __init__(__self__, *,
|
1814
1726
|
segments: Mapping[str, str]):
|
1815
1727
|
"""
|
1816
|
-
:param Mapping[str, str] segments:
|
1817
|
-
|
1818
|
-
In addition to the above arguments, the following attributes are exported and
|
1819
|
-
can be referenced:
|
1728
|
+
:param Mapping[str, str] segments: Define attributes for the topology request.
|
1820
1729
|
"""
|
1821
1730
|
pulumi.set(__self__, "segments", segments)
|
1822
1731
|
|
@@ -1824,10 +1733,7 @@ class VolumeTopologyRequestRequiredTopology(dict):
|
|
1824
1733
|
@pulumi.getter
|
1825
1734
|
def segments(self) -> Mapping[str, str]:
|
1826
1735
|
"""
|
1827
|
-
|
1828
|
-
|
1829
|
-
In addition to the above arguments, the following attributes are exported and
|
1830
|
-
can be referenced:
|
1736
|
+
Define attributes for the topology request.
|
1831
1737
|
"""
|
1832
1738
|
return pulumi.get(self, "segments")
|
1833
1739
|
|
@@ -144,12 +144,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
144
144
|
|
145
145
|
Registering a quota specification:
|
146
146
|
|
147
|
-
<!--Start PulumiCodeChooser -->
|
148
147
|
```python
|
149
148
|
import pulumi
|
150
149
|
import pulumi_nomad as nomad
|
151
150
|
|
152
|
-
prod_api = nomad.QuoteSpecification("
|
151
|
+
prod_api = nomad.QuoteSpecification("prod_api",
|
152
|
+
name="prod-api",
|
153
153
|
description="Production instances of backend API servers",
|
154
154
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
155
155
|
region="global",
|
@@ -159,7 +159,6 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
159
159
|
),
|
160
160
|
)])
|
161
161
|
```
|
162
|
-
<!--End PulumiCodeChooser -->
|
163
162
|
|
164
163
|
:param str resource_name: The name of the resource.
|
165
164
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -181,12 +180,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
181
180
|
|
182
181
|
Registering a quota specification:
|
183
182
|
|
184
|
-
<!--Start PulumiCodeChooser -->
|
185
183
|
```python
|
186
184
|
import pulumi
|
187
185
|
import pulumi_nomad as nomad
|
188
186
|
|
189
|
-
prod_api = nomad.QuoteSpecification("
|
187
|
+
prod_api = nomad.QuoteSpecification("prod_api",
|
188
|
+
name="prod-api",
|
190
189
|
description="Production instances of backend API servers",
|
191
190
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
192
191
|
region="global",
|
@@ -196,7 +195,6 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
196
195
|
),
|
197
196
|
)])
|
198
197
|
```
|
199
|
-
<!--End PulumiCodeChooser -->
|
200
198
|
|
201
199
|
:param str resource_name: The name of the resource.
|
202
200
|
:param QuoteSpecificationArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/scheduler_config.py
CHANGED
@@ -144,22 +144,20 @@ class SchedulerConfig(pulumi.CustomResource):
|
|
144
144
|
|
145
145
|
Set cluster scheduler configuration:
|
146
146
|
|
147
|
-
<!--Start PulumiCodeChooser -->
|
148
147
|
```python
|
149
148
|
import pulumi
|
150
149
|
import pulumi_nomad as nomad
|
151
150
|
|
152
151
|
config = nomad.SchedulerConfig("config",
|
152
|
+
scheduler_algorithm="spread",
|
153
153
|
memory_oversubscription_enabled=True,
|
154
154
|
preemption_config={
|
155
|
+
"system_scheduler_enabled": True,
|
155
156
|
"batch_scheduler_enabled": True,
|
156
157
|
"service_scheduler_enabled": True,
|
157
158
|
"sysbatch_scheduler_enabled": True,
|
158
|
-
|
159
|
-
},
|
160
|
-
scheduler_algorithm="spread")
|
159
|
+
})
|
161
160
|
```
|
162
|
-
<!--End PulumiCodeChooser -->
|
163
161
|
|
164
162
|
:param str resource_name: The name of the resource.
|
165
163
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -185,22 +183,20 @@ class SchedulerConfig(pulumi.CustomResource):
|
|
185
183
|
|
186
184
|
Set cluster scheduler configuration:
|
187
185
|
|
188
|
-
<!--Start PulumiCodeChooser -->
|
189
186
|
```python
|
190
187
|
import pulumi
|
191
188
|
import pulumi_nomad as nomad
|
192
189
|
|
193
190
|
config = nomad.SchedulerConfig("config",
|
191
|
+
scheduler_algorithm="spread",
|
194
192
|
memory_oversubscription_enabled=True,
|
195
193
|
preemption_config={
|
194
|
+
"system_scheduler_enabled": True,
|
196
195
|
"batch_scheduler_enabled": True,
|
197
196
|
"service_scheduler_enabled": True,
|
198
197
|
"sysbatch_scheduler_enabled": True,
|
199
|
-
|
200
|
-
},
|
201
|
-
scheduler_algorithm="spread")
|
198
|
+
})
|
202
199
|
```
|
203
|
-
<!--End PulumiCodeChooser -->
|
204
200
|
|
205
201
|
:param str resource_name: The name of the resource.
|
206
202
|
:param SchedulerConfigArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/sentinel_policy.py
CHANGED
@@ -219,14 +219,13 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
219
219
|
|
220
220
|
## Example Usage
|
221
221
|
|
222
|
-
<!--Start PulumiCodeChooser -->
|
223
222
|
```python
|
224
223
|
import pulumi
|
225
224
|
import pulumi_nomad as nomad
|
226
225
|
|
227
226
|
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",
|
230
229
|
policy=\"\"\"main = rule { all_drivers_exec }
|
231
230
|
|
232
231
|
# all_drivers_exec checks that all the drivers in use are exec
|
@@ -237,11 +236,10 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
237
236
|
}
|
238
237
|
}
|
239
238
|
}
|
240
|
-
|
241
239
|
\"\"\",
|
242
|
-
scope="submit-job"
|
240
|
+
scope="submit-job",
|
241
|
+
enforcement_level="soft-mandatory")
|
243
242
|
```
|
244
|
-
<!--End PulumiCodeChooser -->
|
245
243
|
|
246
244
|
:param str resource_name: The name of the resource.
|
247
245
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -269,14 +267,13 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
269
267
|
|
270
268
|
## Example Usage
|
271
269
|
|
272
|
-
<!--Start PulumiCodeChooser -->
|
273
270
|
```python
|
274
271
|
import pulumi
|
275
272
|
import pulumi_nomad as nomad
|
276
273
|
|
277
274
|
exec_only = nomad.SentinelPolicy("exec-only",
|
275
|
+
name="exec-only",
|
278
276
|
description="Only allow jobs that are based on an exec driver.",
|
279
|
-
enforcement_level="soft-mandatory",
|
280
277
|
policy=\"\"\"main = rule { all_drivers_exec }
|
281
278
|
|
282
279
|
# all_drivers_exec checks that all the drivers in use are exec
|
@@ -287,11 +284,10 @@ class SentinelPolicy(pulumi.CustomResource):
|
|
287
284
|
}
|
288
285
|
}
|
289
286
|
}
|
290
|
-
|
291
287
|
\"\"\",
|
292
|
-
scope="submit-job"
|
288
|
+
scope="submit-job",
|
289
|
+
enforcement_level="soft-mandatory")
|
293
290
|
```
|
294
|
-
<!--End PulumiCodeChooser -->
|
295
291
|
|
296
292
|
:param str resource_name: The name of the resource.
|
297
293
|
:param SentinelPolicyArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/variable.py
CHANGED
@@ -135,35 +135,33 @@ class Variable(pulumi.CustomResource):
|
|
135
135
|
|
136
136
|
Creating a variable in the default namespace:
|
137
137
|
|
138
|
-
<!--Start PulumiCodeChooser -->
|
139
138
|
```python
|
140
139
|
import pulumi
|
141
140
|
import pulumi_nomad as nomad
|
142
141
|
|
143
142
|
example = nomad.Variable("example",
|
143
|
+
path="some/path/of/your/choosing",
|
144
144
|
items={
|
145
145
|
"example_key": "example_value",
|
146
|
-
}
|
147
|
-
path="some/path/of/your/choosing")
|
146
|
+
})
|
148
147
|
```
|
149
|
-
<!--End PulumiCodeChooser -->
|
150
148
|
|
151
149
|
Creating a variable in a custom namespace:
|
152
150
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
154
151
|
```python
|
155
152
|
import pulumi
|
156
153
|
import pulumi_nomad as nomad
|
157
154
|
|
158
|
-
|
159
|
-
|
155
|
+
example = nomad.Namespace("example",
|
156
|
+
name="example",
|
157
|
+
description="Example namespace.")
|
158
|
+
example_variable = nomad.Variable("example",
|
160
159
|
path="some/path/of/your/choosing",
|
161
|
-
namespace=
|
160
|
+
namespace=example.name,
|
162
161
|
items={
|
163
162
|
"example_key": "example_value",
|
164
163
|
})
|
165
164
|
```
|
166
|
-
<!--End PulumiCodeChooser -->
|
167
165
|
|
168
166
|
:param str resource_name: The name of the resource.
|
169
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -182,35 +180,33 @@ class Variable(pulumi.CustomResource):
|
|
182
180
|
|
183
181
|
Creating a variable in the default namespace:
|
184
182
|
|
185
|
-
<!--Start PulumiCodeChooser -->
|
186
183
|
```python
|
187
184
|
import pulumi
|
188
185
|
import pulumi_nomad as nomad
|
189
186
|
|
190
187
|
example = nomad.Variable("example",
|
188
|
+
path="some/path/of/your/choosing",
|
191
189
|
items={
|
192
190
|
"example_key": "example_value",
|
193
|
-
}
|
194
|
-
path="some/path/of/your/choosing")
|
191
|
+
})
|
195
192
|
```
|
196
|
-
<!--End PulumiCodeChooser -->
|
197
193
|
|
198
194
|
Creating a variable in a custom namespace:
|
199
195
|
|
200
|
-
<!--Start PulumiCodeChooser -->
|
201
196
|
```python
|
202
197
|
import pulumi
|
203
198
|
import pulumi_nomad as nomad
|
204
199
|
|
205
|
-
|
206
|
-
|
200
|
+
example = nomad.Namespace("example",
|
201
|
+
name="example",
|
202
|
+
description="Example namespace.")
|
203
|
+
example_variable = nomad.Variable("example",
|
207
204
|
path="some/path/of/your/choosing",
|
208
|
-
namespace=
|
205
|
+
namespace=example.name,
|
209
206
|
items={
|
210
207
|
"example_key": "example_value",
|
211
208
|
})
|
212
209
|
```
|
213
|
-
<!--End PulumiCodeChooser -->
|
214
210
|
|
215
211
|
:param str resource_name: The name of the resource.
|
216
212
|
:param VariableArgs args: The arguments to use to populate this resource's properties.
|