@pulumi/cloudinit 1.3.0 → 1.3.1
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.
- package/config.d.ts +8 -1
- package/config.js +33 -27
- package/config.js.map +1 -1
- package/getConfig.d.ts +35 -3
- package/getConfig.js +35 -9
- package/getConfig.js.map +1 -1
- package/index.d.ts +9 -3
- package/index.js +10 -20
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/package.json.bak +2 -1
- package/provider.js +13 -15
- package/provider.js.map +1 -1
- package/types/index.js.map +1 -1
- package/utilities.js +18 -1
- package/utilities.js.map +1 -1
- package/package.json.dev +0 -26
- package/scripts/install-pulumi-plugin.js +0 -21
package/config.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This resource is deprecated.
|
|
6
|
+
Please use the getConfig data source instead.
|
|
7
|
+
*/
|
|
3
8
|
export declare class Config extends pulumi.CustomResource {
|
|
4
9
|
/**
|
|
5
10
|
* Get an existing Config resource's state with the given name, ID, and optional extra
|
|
@@ -31,6 +36,8 @@ export declare class Config extends pulumi.CustomResource {
|
|
|
31
36
|
* @param args The arguments to use to populate this resource's properties.
|
|
32
37
|
* @param opts A bag of options that control this resource's behavior.
|
|
33
38
|
*/
|
|
39
|
+
/** @deprecated This resource is deprecated.
|
|
40
|
+
Please use the getConfig data source instead. */
|
|
34
41
|
constructor(name: string, args: ConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
35
42
|
}
|
|
36
43
|
/**
|
package/config.js
CHANGED
|
@@ -5,34 +5,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Config = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This resource is deprecated.
|
|
10
|
+
Please use the getConfig data source instead.
|
|
11
|
+
*/
|
|
8
12
|
class Config extends pulumi.CustomResource {
|
|
9
|
-
constructor(name, argsOrState, opts) {
|
|
10
|
-
let inputs = {};
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
if (opts.id) {
|
|
13
|
-
const state = argsOrState;
|
|
14
|
-
inputs["base64Encode"] = state ? state.base64Encode : undefined;
|
|
15
|
-
inputs["boundary"] = state ? state.boundary : undefined;
|
|
16
|
-
inputs["gzip"] = state ? state.gzip : undefined;
|
|
17
|
-
inputs["parts"] = state ? state.parts : undefined;
|
|
18
|
-
inputs["rendered"] = state ? state.rendered : undefined;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const args = argsOrState;
|
|
22
|
-
if ((!args || args.parts === undefined) && !opts.urn) {
|
|
23
|
-
throw new Error("Missing required property 'parts'");
|
|
24
|
-
}
|
|
25
|
-
inputs["base64Encode"] = args ? args.base64Encode : undefined;
|
|
26
|
-
inputs["boundary"] = args ? args.boundary : undefined;
|
|
27
|
-
inputs["gzip"] = args ? args.gzip : undefined;
|
|
28
|
-
inputs["parts"] = args ? args.parts : undefined;
|
|
29
|
-
inputs["rendered"] = undefined /*out*/;
|
|
30
|
-
}
|
|
31
|
-
if (!opts.version) {
|
|
32
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
33
|
-
}
|
|
34
|
-
super(Config.__pulumiType, name, inputs, opts);
|
|
35
|
-
}
|
|
36
13
|
/**
|
|
37
14
|
* Get an existing Config resource's state with the given name, ID, and optional extra
|
|
38
15
|
* properties used to qualify the lookup.
|
|
@@ -43,6 +20,7 @@ class Config extends pulumi.CustomResource {
|
|
|
43
20
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
21
|
*/
|
|
45
22
|
static get(name, id, state, opts) {
|
|
23
|
+
pulumi.log.warn("Config is deprecated: This resource is deprecated.\nPlease use the getConfig data source instead.");
|
|
46
24
|
return new Config(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
25
|
}
|
|
48
26
|
/**
|
|
@@ -55,6 +33,34 @@ class Config extends pulumi.CustomResource {
|
|
|
55
33
|
}
|
|
56
34
|
return obj['__pulumiType'] === Config.__pulumiType;
|
|
57
35
|
}
|
|
36
|
+
/** @deprecated This resource is deprecated.
|
|
37
|
+
Please use the getConfig data source instead. */
|
|
38
|
+
constructor(name, argsOrState, opts) {
|
|
39
|
+
pulumi.log.warn("Config is deprecated: This resource is deprecated.\nPlease use the getConfig data source instead.");
|
|
40
|
+
let resourceInputs = {};
|
|
41
|
+
opts = opts || {};
|
|
42
|
+
if (opts.id) {
|
|
43
|
+
const state = argsOrState;
|
|
44
|
+
resourceInputs["base64Encode"] = state ? state.base64Encode : undefined;
|
|
45
|
+
resourceInputs["boundary"] = state ? state.boundary : undefined;
|
|
46
|
+
resourceInputs["gzip"] = state ? state.gzip : undefined;
|
|
47
|
+
resourceInputs["parts"] = state ? state.parts : undefined;
|
|
48
|
+
resourceInputs["rendered"] = state ? state.rendered : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.parts === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'parts'");
|
|
54
|
+
}
|
|
55
|
+
resourceInputs["base64Encode"] = args ? args.base64Encode : undefined;
|
|
56
|
+
resourceInputs["boundary"] = args ? args.boundary : undefined;
|
|
57
|
+
resourceInputs["gzip"] = args ? args.gzip : undefined;
|
|
58
|
+
resourceInputs["parts"] = args ? args.parts : undefined;
|
|
59
|
+
resourceInputs["rendered"] = undefined /*out*/;
|
|
60
|
+
}
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
|
+
super(Config.__pulumiType, name, resourceInputs, opts);
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
65
|
exports.Config = Config;
|
|
60
66
|
/** @internal */
|
package/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAA;QACpH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAqBD;gDAC4C;IAC5C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAA;QACpH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,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ACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA1EL,wBA2EC;AA5DG,gBAAgB;AACO,mBAAY,GAAG,+BAA+B,CAAC"}
|
package/getConfig.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Renders a [multipart MIME configuration](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
|
|
5
6
|
* for use with [cloud-init](https://cloudinit.readthedocs.io/).
|
|
@@ -20,7 +21,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
20
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
22
|
* import * as cloudinit from "@pulumi/cloudinit";
|
|
22
23
|
*
|
|
23
|
-
* const foo =
|
|
24
|
+
* const foo = cloudinit.getConfig({
|
|
24
25
|
* base64Encode: false,
|
|
25
26
|
* gzip: false,
|
|
26
27
|
* parts: [{
|
|
@@ -28,7 +29,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
28
29
|
* contentType: "text/x-shellscript",
|
|
29
30
|
* filename: "foobar.sh",
|
|
30
31
|
* }],
|
|
31
|
-
* })
|
|
32
|
+
* });
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
35
|
export declare function getConfig(args: GetConfigArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigResult>;
|
|
@@ -74,6 +75,37 @@ export interface GetConfigResult {
|
|
|
74
75
|
*/
|
|
75
76
|
readonly rendered: string;
|
|
76
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Renders a [multipart MIME configuration](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
|
|
80
|
+
* for use with [cloud-init](https://cloudinit.readthedocs.io/).
|
|
81
|
+
*
|
|
82
|
+
* Cloud-init is a commonly-used startup configuration utility for cloud compute
|
|
83
|
+
* instances. It accepts configuration via provider-specific user data mechanisms,
|
|
84
|
+
* such as `userData` for Amazon EC2 instances. Multipart MIME is one of the
|
|
85
|
+
* data formats it accepts. For more information, see
|
|
86
|
+
* [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/topics/format.html)
|
|
87
|
+
* in the cloud-init manual.
|
|
88
|
+
*
|
|
89
|
+
* This is not a generalized utility for producing multipart MIME messages. Its
|
|
90
|
+
* featureset is specialized for the features of cloud-init.
|
|
91
|
+
*
|
|
92
|
+
* ## Example Usage
|
|
93
|
+
*
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as cloudinit from "@pulumi/cloudinit";
|
|
97
|
+
*
|
|
98
|
+
* const foo = cloudinit.getConfig({
|
|
99
|
+
* base64Encode: false,
|
|
100
|
+
* gzip: false,
|
|
101
|
+
* parts: [{
|
|
102
|
+
* content: "baz",
|
|
103
|
+
* contentType: "text/x-shellscript",
|
|
104
|
+
* filename: "foobar.sh",
|
|
105
|
+
* }],
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
77
109
|
export declare function getConfigOutput(args: GetConfigOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConfigResult>;
|
|
78
110
|
/**
|
|
79
111
|
* A collection of arguments for invoking getConfig.
|
package/getConfig.js
CHANGED
|
@@ -25,7 +25,7 @@ const utilities = require("./utilities");
|
|
|
25
25
|
* import * as pulumi from "@pulumi/pulumi";
|
|
26
26
|
* import * as cloudinit from "@pulumi/cloudinit";
|
|
27
27
|
*
|
|
28
|
-
* const foo =
|
|
28
|
+
* const foo = cloudinit.getConfig({
|
|
29
29
|
* base64Encode: false,
|
|
30
30
|
* gzip: false,
|
|
31
31
|
* parts: [{
|
|
@@ -33,16 +33,11 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* contentType: "text/x-shellscript",
|
|
34
34
|
* filename: "foobar.sh",
|
|
35
35
|
* }],
|
|
36
|
-
* })
|
|
36
|
+
* });
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
function getConfig(args, opts) {
|
|
40
|
-
|
|
41
|
-
opts = {};
|
|
42
|
-
}
|
|
43
|
-
if (!opts.version) {
|
|
44
|
-
opts.version = utilities.getVersion();
|
|
45
|
-
}
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
46
41
|
return pulumi.runtime.invoke("cloudinit:index/getConfig:getConfig", {
|
|
47
42
|
"base64Encode": args.base64Encode,
|
|
48
43
|
"boundary": args.boundary,
|
|
@@ -51,8 +46,39 @@ function getConfig(args, opts) {
|
|
|
51
46
|
}, opts);
|
|
52
47
|
}
|
|
53
48
|
exports.getConfig = getConfig;
|
|
49
|
+
/**
|
|
50
|
+
* Renders a [multipart MIME configuration](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
|
|
51
|
+
* for use with [cloud-init](https://cloudinit.readthedocs.io/).
|
|
52
|
+
*
|
|
53
|
+
* Cloud-init is a commonly-used startup configuration utility for cloud compute
|
|
54
|
+
* instances. It accepts configuration via provider-specific user data mechanisms,
|
|
55
|
+
* such as `userData` for Amazon EC2 instances. Multipart MIME is one of the
|
|
56
|
+
* data formats it accepts. For more information, see
|
|
57
|
+
* [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/topics/format.html)
|
|
58
|
+
* in the cloud-init manual.
|
|
59
|
+
*
|
|
60
|
+
* This is not a generalized utility for producing multipart MIME messages. Its
|
|
61
|
+
* featureset is specialized for the features of cloud-init.
|
|
62
|
+
*
|
|
63
|
+
* ## Example Usage
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as cloudinit from "@pulumi/cloudinit";
|
|
68
|
+
*
|
|
69
|
+
* const foo = cloudinit.getConfig({
|
|
70
|
+
* base64Encode: false,
|
|
71
|
+
* gzip: false,
|
|
72
|
+
* parts: [{
|
|
73
|
+
* content: "baz",
|
|
74
|
+
* contentType: "text/x-shellscript",
|
|
75
|
+
* filename: "foobar.sh",
|
|
76
|
+
* }],
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
54
80
|
function getConfigOutput(args, opts) {
|
|
55
|
-
return pulumi.output(args).apply(a => getConfig(a, opts));
|
|
81
|
+
return pulumi.output(args).apply((a) => getConfig(a, opts));
|
|
56
82
|
}
|
|
57
83
|
exports.getConfigOutput = getConfigOutput;
|
|
58
84
|
//# sourceMappingURL=getConfig.js.map
|
package/getConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../getConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../getConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { ConfigArgs, ConfigState } from "./config";
|
|
2
|
+
export type Config = import("./config").Config;
|
|
3
|
+
export declare const Config: typeof import("./config").Config;
|
|
4
|
+
export { GetConfigArgs, GetConfigResult, GetConfigOutputArgs } from "./getConfig";
|
|
5
|
+
export declare const getConfig: typeof import("./getConfig").getConfig;
|
|
6
|
+
export declare const getConfigOutput: typeof import("./getConfig").getConfigOutput;
|
|
7
|
+
export { ProviderArgs } from "./provider";
|
|
8
|
+
export type Provider = import("./provider").Provider;
|
|
9
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
4
10
|
import * as types from "./types";
|
|
5
11
|
export { types, };
|
package/index.js
CHANGED
|
@@ -1,49 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
-
};
|
|
14
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.types = void 0;
|
|
5
|
+
exports.types = exports.Provider = exports.getConfigOutput = exports.getConfig = exports.Config = void 0;
|
|
16
6
|
const pulumi = require("@pulumi/pulumi");
|
|
17
7
|
const utilities = require("./utilities");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
exports.Config = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Config"], () => require("./config"));
|
|
10
|
+
exports.getConfig = null;
|
|
11
|
+
exports.getConfigOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["getConfig", "getConfigOutput"], () => require("./getConfig"));
|
|
13
|
+
exports.Provider = null;
|
|
14
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
22
15
|
// Export sub-modules:
|
|
23
16
|
const types = require("./types");
|
|
24
17
|
exports.types = types;
|
|
25
|
-
// Import resources to register:
|
|
26
|
-
const config_1 = require("./config");
|
|
27
18
|
const _module = {
|
|
28
19
|
version: utilities.getVersion(),
|
|
29
20
|
construct: (name, type, urn) => {
|
|
30
21
|
switch (type) {
|
|
31
22
|
case "cloudinit:index/config:Config":
|
|
32
|
-
return new
|
|
23
|
+
return new exports.Config(name, undefined, { urn });
|
|
33
24
|
default:
|
|
34
25
|
throw new Error(`unknown resource type ${type}`);
|
|
35
26
|
}
|
|
36
27
|
},
|
|
37
28
|
};
|
|
38
29
|
pulumi.runtime.registerResourceModule("cloudinit", "index/config", _module);
|
|
39
|
-
const provider_1 = require("./provider");
|
|
40
30
|
pulumi.runtime.registerResourcePackage("cloudinit", {
|
|
41
31
|
version: utilities.getVersion(),
|
|
42
32
|
constructProvider: (name, type, urn) => {
|
|
43
33
|
if (type !== "pulumi:providers:cloudinit") {
|
|
44
34
|
throw new Error(`unknown provider type ${type}`);
|
|
45
35
|
}
|
|
46
|
-
return new
|
|
36
|
+
return new exports.Provider(name, undefined, { urn });
|
|
47
37
|
},
|
|
48
38
|
});
|
|
49
39
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAGtD,QAAA,SAAS,GAA2C,IAAW,CAAC;AAChE,QAAA,eAAe,GAAiD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,EAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI9E,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;AAG7B,sBAAK;AAGT,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,+BAA+B;gBAChC,OAAO,IAAI,cAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/cloudinit",
|
|
3
|
-
"version": "v1.3.
|
|
3
|
+
"version": "v1.3.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing cloudinit cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-cloudinit",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource cloudinit v1.3.0"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"typescript": "^4.3.5"
|
|
23
22
|
},
|
|
24
23
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "cloudinit"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/package.json.bak
CHANGED
package/provider.js
CHANGED
|
@@ -12,6 +12,16 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
13
|
*/
|
|
14
14
|
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
27
|
*
|
|
@@ -20,24 +30,12 @@ class Provider extends pulumi.ProviderResource {
|
|
|
20
30
|
* @param opts A bag of options that control this resource's behavior.
|
|
21
31
|
*/
|
|
22
32
|
constructor(name, args, opts) {
|
|
23
|
-
let
|
|
33
|
+
let resourceInputs = {};
|
|
24
34
|
opts = opts || {};
|
|
25
35
|
{
|
|
26
36
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
super(Provider.__pulumiType, name, inputs, opts);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
34
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
-
*/
|
|
36
|
-
static isInstance(obj) {
|
|
37
|
-
if (obj === undefined || obj === null) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
37
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
38
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
exports.Provider = Provider;
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9BL,4BA+BC;AA9BG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/utilities.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
5
|
+
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
6
|
function getEnv(...vars) {
|
|
7
7
|
for (const v of vars) {
|
|
8
8
|
const value = process.env[v];
|
|
@@ -49,4 +49,21 @@ function getVersion() {
|
|
|
49
49
|
return version;
|
|
50
50
|
}
|
|
51
51
|
exports.getVersion = getVersion;
|
|
52
|
+
/** @internal */
|
|
53
|
+
function resourceOptsDefaults() {
|
|
54
|
+
return { version: getVersion() };
|
|
55
|
+
}
|
|
56
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
/** @internal */
|
|
58
|
+
function lazyLoad(exports, props, loadModule) {
|
|
59
|
+
for (let property of props) {
|
|
60
|
+
Object.defineProperty(exports, property, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return loadModule()[property];
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.lazyLoad = lazyLoad;
|
|
52
69
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],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
4
|
-
"description": "A Pulumi package for creating and managing cloudinit cloud resources.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"pulumi",
|
|
7
|
-
"cloudinit"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://pulumi.io",
|
|
10
|
-
"repository": "https://github.com/pulumi/pulumi-cloudinit",
|
|
11
|
-
"license": "Apache-2.0",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/mime": "^2.0.0",
|
|
20
|
-
"@types/node": "^10.0.0",
|
|
21
|
-
"typescript": "^4.3.5"
|
|
22
|
-
},
|
|
23
|
-
"pulumi": {
|
|
24
|
-
"resource": true
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var childProcess = require("child_process");
|
|
3
|
-
|
|
4
|
-
var args = process.argv.slice(2);
|
|
5
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
-
"You may try manually installing the plugin by running " +
|
|
14
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
-
} else if (res.error || res.status !== 0) {
|
|
16
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
-
"You may try to manually installing the plugin by running " +
|
|
18
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
process.exit(0);
|