~tieong/pulumi-kimsufi

1ac60abd114fc5662cb6ab5ee5968e74ea22c42c — Thomas Ieong 1 year, 1 month ago 5940c0e
Fixed transformation call.
3 files changed, 2 insertions(+), 5 deletions(-)

M __main__.py
M group.py
M vm.py
M __main__.py => __main__.py +0 -3
@@ 20,9 20,6 @@ def domains_use_1GB_memory(
        args.props["memory"] = 1024
        return ResourceTransformationResult(props=args.props, opts=args.opts)


#runtime.register_stack_transformation(domains_use_1GB_memory)

vmGroup = group.new_vm_group(
    "ubuntu",
    "/home/user/cluster_storage",

M group.py => group.py +1 -1
@@ 27,7 27,7 @@ def new_vm_group(
    numberOfVMs: int,
    opts: Optional[ResourceOptions] = None,
):
    resource = VMGroup(groupName)
    resource = VMGroup(groupName, opts=opts)

    # A pool for all cluster volumes
    cluster = libvirt.Pool(

M vm.py => vm.py +1 -1
@@ 16,7 16,7 @@ def new_vm(
        network_id: Output[str],
        opts: Optional[ResourceOptions] = None,
) -> VM:
    resource = VM(name)
    resource = VM(name, opts=opts)

    # create a filesystem volume for our VM
    # This filesystem will be based on the `ubuntu` volume above