UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

82 lines 3.72 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getPartitionSchemaOutput = exports.getPartitionSchema = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The scaleway.elasticmetal.getPartitionSchema data source allows you to retrieve a ready-to-use partitioning schema for a BareMetal server. This schema can be used for custom installations with optional swap and extra partitions. * * This data source simplifies the process of generating valid partitioning configurations, especially useful when dealing with OS and offer compatibility requirements. * * ## Partitioning Details * * The partitioning schema generated by the `scaleway.elasticmetal.getPartitionSchema` data source includes a root (`/`) partition that is **20GB** in size by default. * * If additional storage is required, you can enable the `extraPartition` option to mount extra space on a custom path (e.g., `/data`). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const _default = scaleway.elasticmetal.getPartitionSchema({ * offerId: "11111111-1111-1111-1111-111111111111", * osId: "22222222-2222-2222-2222-222222222222", * swap: true, * extraPartition: true, * ext4Mountpoint: "/data", * }); * ``` */ function getPartitionSchema(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:elasticmetal/getPartitionSchema:getPartitionSchema", { "ext4Mountpoint": args.ext4Mountpoint, "extraPartition": args.extraPartition, "offerId": args.offerId, "osId": args.osId, "swap": args.swap, }, opts); } exports.getPartitionSchema = getPartitionSchema; /** * The scaleway.elasticmetal.getPartitionSchema data source allows you to retrieve a ready-to-use partitioning schema for a BareMetal server. This schema can be used for custom installations with optional swap and extra partitions. * * This data source simplifies the process of generating valid partitioning configurations, especially useful when dealing with OS and offer compatibility requirements. * * ## Partitioning Details * * The partitioning schema generated by the `scaleway.elasticmetal.getPartitionSchema` data source includes a root (`/`) partition that is **20GB** in size by default. * * If additional storage is required, you can enable the `extraPartition` option to mount extra space on a custom path (e.g., `/data`). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const _default = scaleway.elasticmetal.getPartitionSchema({ * offerId: "11111111-1111-1111-1111-111111111111", * osId: "22222222-2222-2222-2222-222222222222", * swap: true, * extraPartition: true, * ext4Mountpoint: "/data", * }); * ``` */ function getPartitionSchemaOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:elasticmetal/getPartitionSchema:getPartitionSchema", { "ext4Mountpoint": args.ext4Mountpoint, "extraPartition": args.extraPartition, "offerId": args.offerId, "osId": args.osId, "swap": args.swap, }, opts); } exports.getPartitionSchemaOutput = getPartitionSchemaOutput; //# sourceMappingURL=getPartitionSchema.js.map