@pulumi/cloudinit 1.4.0-alpha.1693632318 → 1.4.0-alpha.1695820635
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 +6 -0
- package/config.js +8 -0
- package/config.js.map +1 -1
- package/getConfig.d.ts +33 -2
- package/getConfig.js +35 -7
- package/getConfig.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/scripts/install-pulumi-plugin.js +0 -21
package/config.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This resource is deprecated.
|
|
6
|
+
Please use the getConfig data source instead.
|
|
7
|
+
*/
|
|
4
8
|
export declare class Config extends pulumi.CustomResource {
|
|
5
9
|
/**
|
|
6
10
|
* Get an existing Config resource's state with the given name, ID, and optional extra
|
|
@@ -32,6 +36,8 @@ export declare class Config extends pulumi.CustomResource {
|
|
|
32
36
|
* @param args The arguments to use to populate this resource's properties.
|
|
33
37
|
* @param opts A bag of options that control this resource's behavior.
|
|
34
38
|
*/
|
|
39
|
+
/** @deprecated This resource is deprecated.
|
|
40
|
+
Please use the getConfig data source instead. */
|
|
35
41
|
constructor(name: string, args: ConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
36
42
|
}
|
|
37
43
|
/**
|
package/config.js
CHANGED
|
@@ -5,6 +5,10 @@ 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
13
|
/**
|
|
10
14
|
* Get an existing Config resource's state with the given name, ID, and optional extra
|
|
@@ -16,6 +20,7 @@ class Config extends pulumi.CustomResource {
|
|
|
16
20
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
21
|
*/
|
|
18
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.");
|
|
19
24
|
return new Config(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
@@ -28,7 +33,10 @@ class Config extends pulumi.CustomResource {
|
|
|
28
33
|
}
|
|
29
34
|
return obj['__pulumiType'] === Config.__pulumiType;
|
|
30
35
|
}
|
|
36
|
+
/** @deprecated This resource is deprecated.
|
|
37
|
+
Please use the getConfig data source instead. */
|
|
31
38
|
constructor(name, argsOrState, opts) {
|
|
39
|
+
pulumi.log.warn("Config is deprecated: This resource is deprecated.\nPlease use the getConfig data source instead.");
|
|
32
40
|
let resourceInputs = {};
|
|
33
41
|
opts = opts || {};
|
|
34
42
|
if (opts.id) {
|
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;AAGzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,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,IAA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C,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
|
@@ -21,7 +21,7 @@ import * as outputs from "./types/output";
|
|
|
21
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
22
22
|
* import * as cloudinit from "@pulumi/cloudinit";
|
|
23
23
|
*
|
|
24
|
-
* const foo =
|
|
24
|
+
* const foo = cloudinit.getConfig({
|
|
25
25
|
* base64Encode: false,
|
|
26
26
|
* gzip: false,
|
|
27
27
|
* parts: [{
|
|
@@ -29,7 +29,7 @@ import * as outputs from "./types/output";
|
|
|
29
29
|
* contentType: "text/x-shellscript",
|
|
30
30
|
* filename: "foobar.sh",
|
|
31
31
|
* }],
|
|
32
|
-
* })
|
|
32
|
+
* });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export declare function getConfig(args: GetConfigArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigResult>;
|
|
@@ -75,6 +75,37 @@ export interface GetConfigResult {
|
|
|
75
75
|
*/
|
|
76
76
|
readonly rendered: string;
|
|
77
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
|
+
*/
|
|
78
109
|
export declare function getConfigOutput(args: GetConfigOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConfigResult>;
|
|
79
110
|
/**
|
|
80
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,14 +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
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
44
41
|
return pulumi.runtime.invoke("cloudinit:index/getConfig:getConfig", {
|
|
45
42
|
"base64Encode": args.base64Encode,
|
|
46
43
|
"boundary": args.boundary,
|
|
@@ -49,8 +46,39 @@ function getConfig(args, opts) {
|
|
|
49
46
|
}, opts);
|
|
50
47
|
}
|
|
51
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
|
+
*/
|
|
52
80
|
function getConfigOutput(args, opts) {
|
|
53
|
-
return pulumi.output(args).apply(a => getConfig(a, opts));
|
|
81
|
+
return pulumi.output(args).apply((a) => getConfig(a, opts));
|
|
54
82
|
}
|
|
55
83
|
exports.getConfigOutput = getConfigOutput;
|
|
56
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;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;
|
|
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.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.types = exports.Provider = exports.getConfigOutput = exports.getConfig =
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
exports.Config = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Config"], () => require("./config"));
|
|
9
10
|
exports.getConfig = null;
|
|
10
11
|
exports.getConfigOutput = null;
|
|
11
|
-
exports.Provider = null;
|
|
12
|
-
utilities.lazyLoad(exports, ["Config"], () => require("./config"));
|
|
13
12
|
utilities.lazyLoad(exports, ["getConfig", "getConfigOutput"], () => require("./getConfig"));
|
|
13
|
+
exports.Provider = null;
|
|
14
14
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
15
15
|
// Export sub-modules:
|
|
16
16
|
const types = require("./types");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,Q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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.4.0-alpha.1693632318+f1caa295"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.bak
CHANGED
|
@@ -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 ${VERSION}"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
package/provider.js
CHANGED
|
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
20
20
|
if (obj === undefined || obj === null) {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
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;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,QAAQ,CAAC,YAAY,CAAC;
|
|
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"}
|
|
@@ -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);
|