diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-26 17:29:36 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-03-27 22:52:01 -0400 |
commit | e04ae5b511181c5955a8672005c4e96fe04fed63 (patch) | |
tree | 8908110f0125264fcdc5981847cb522036feab34 /__main__.py | |
parent | 2d75d42766a6d77a9e6f81751f05ac61add1574c (diff) | |
download | puppet-tozt-e04ae5b511181c5955a8672005c4e96fe04fed63.tar.gz puppet-tozt-e04ae5b511181c5955a8672005c4e96fe04fed63.zip |
convert tozt launch script to pulumi
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py new file mode 100644 index 0000000..154cb7e --- /dev/null +++ b/__main__.py @@ -0,0 +1,25 @@ +import sys + +import pulumi + +sys.path.append(".") + +from tozt.instance import Instance # noqa: E402 + +tozt = Instance( + "tozt", + region="nyc3", + size="s-1vcpu-2gb", + dns_name="tozt.net", + reserved_ip="138.197.58.11", + volume_name="tozt-persistent", +) + +pulumi.export( + "tozt", + { + "ip": tozt.instance.ipv4_address, + "domain": tozt.dns_name, + "reserved_ip": tozt.reserved_ip, + }, +) |