UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

105 lines 4.77 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPartitionSchemaOutput = exports.getPartitionSchema = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(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 "@pulumiverse/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 "@pulumiverse/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