nicklasfrahm / pulumi-ssh

Manage a remote server declaratively via SSH.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH Pulumi Provider

Manage a remote server declaratively via SSH.

Usage

You may find usage examples in the examples/ directory.

Contributing

This package is heavily inspired by the pulumi/pulumi-google-native package and the pulumi/pulumi-provider-boilerplate package. Most of the code for the provider implementation is in pkg/provider/provider.go.

A code generator is available which generates SDKs in TypeScript, Python, Go and .NET which are also checked in to the sdk folder. The SDKs are generated from a schema in provider/cmd/pulumi-resource-ssh/schema.json. This file should be kept aligned with the resources, functions and types supported by the provider implementation.

Note that the generated provider plugin (pulumi-resource-ssh) must be on your PATH to be used by Pulumi deployments. If creating a provider for distribution to other users, you should ensure they install this plugin to their PATH.

Pre-requisites

Install the pulumictl cli from the releases page or follow the install instructions

NB: Usage of pulumictl is optional. If not using it, hard code the version in the Makefile of when building explicitly pass version as VERSION=0.0.1 make build

Build and Test

# build and install the resource provider plugin
$ make build install

# test
$ cd examples/simple
$ yarn link @pulumi/xyz
$ yarn install
$ pulumi stack init test
$ pulumi up

References

Other resources for learning about the Pulumi resource model:

About

Manage a remote server declaratively via SSH.

License:Apache License 2.0


Languages

Language:Go 46.9%Language:Python 25.1%Language:C# 11.2%Language:TypeScript 10.7%Language:Makefile 6.1%