npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@okassov/pulumi-openstack-instance

v1.0.0

Published

Openstack Instance Module for Pulumi

Readme

Openstack Compute Instance Module for Pulumi

npm version License: MPL-2.0 Pulumi Registry

This project provides Pulumi components for provisioning OpenStack infrastructure using TypeScript. It offers higher-level constructs on top of the Pulumi OpenStack provider, enabling you to easily create and manage:

This module follows good practices described in the OpenStack and Pulumi documentation, and leverages the experience of the author and contributors.

A CHANGELOG is maintained for this project.

Installation

Node.js (NPM/Yarn)

Install the package via npm:

$ npm install --save '@okassov/pulumi-openstack-instance'

Install the package via yarn:

yarn add @okassov/pulumi-openstack-instance

Requirements

  • Node.js >= 14.x
  • Pulumi >= 3.x
  • Valid OpenStack credentials and API endpoint

Authentication

Before using the module, ensure your OpenStack environment variables are set:

export OS_AUTH_URL=https://openstack.example.com:5000/v3
export OS_USERNAME=myuser
export OS_PASSWORD=mypass
export OS_PROJECT_NAME=myproject

Alternatively, configure Pulumi to use your OpenStack credentials:

pulumi config set openstack:authURL https://openstack.example.com:5000/v3
pulumi config set openstack:userName myuser
pulumi config set openstack:password mypass --secret
pulumi config set openstack:tenantName myproject

Usage

How to use

import * as pulumi from "@pulumi/pulumi";
import * as openstackCustom from "@okassov/pulumi-openstack-instance";

Example that creates an OpenStack SecurityGroup:

const secGroup = new openstackCustom.SecGroup(`${resourceName}-sg`, {
    name: `${resourceName}-sg`,
    allowSelfIPv4: true,
    // allowSelfIPv6: true,
    allowEgressAllIPv4: true,
    allowEgressAllIPv6: true,
    // allowIngressAllIPv4: true,
    // allowIngressAllIPv6: true,
    rules: {
        ingress: [
            {   
                port: 22,
                protocol: "tcp",
                remoteIpPrefix: ["0.0.0.0/0"]
            },
            {
                port: 80,
                protocol: "tcp",
                remoteIpPrefix: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
            },
            {
                ethertype: "IPv4",
                description: "HTTPs Access",
                protocol: "tcp",
                portRangeMin: 443,
                portRangeMax: 443,
                remoteIpPrefix: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
            }
        ]
    }
});

Example that creates an OpenStack Instance:

const baseVars = { env: "dev", project: "example", app: "pg" }
const resourceName = `${baseVars.env}-${baseVars.project}-${baseVars.app}`

const ubuntuImage = openstack.images.getImage({
    nameRegex: "^Ubuntu-Server-24.04-LTS.*",
    mostRecent: true,
    visibility: "public"
}).then(image => image.id);

const network = openstack.networking.getNetwork({
    name: "dev-network"
}).then(net => net.id);

const subnet = openstack.networking.getSubnet({
    cidr: "10.0.0.0/24"
}).then(sub => sub.id);

const instances = new openstackCustom.Instance(`${resourceName}-instance`, {
    sharedConfig: {
        flavorName: "d1.ram1cpu1",
        portConfig: [{ 
            networkId: network, 
            adminStateUp: true, 
            fixedIps: [{subnetId: subnet}] 
        }],
        blockDevices: [{ 
            uuid: ubuntuImage, 
            sourceType: "image", 
            volumeSize: 10, 
            destinationType: "volume", 
            volumeType: "ceph-ssd", 
            deleteOnTermination: true 
        }]
    },
    instanceConfig: [
        { name: `${resourceName}-01` },
        { name: `${resourceName}-02` },
        { name: `${resourceName}-03` },
    ]
});

export const instanceIds = instance.instanceIds;
export const instanceTags = instance.instanceTags;
export const instanceMetadata = instance.instanceMetadata;
export const instancePorts = instance.ports;

Example that creates an OpenStack Balancer:

const baseVars = { env: "dev", project: "example", app: "pg" }
const resourceName = `${baseVars.env}-${baseVars.project}-${baseVars.app}`

const network = openstack.networking.getNetwork({
    name: "dev-network"
}).then(net => net.id);

const subnet = openstack.networking.getSubnet({
    cidr: "10.0.0.0/24"
}).then(sub => sub.id);

const balancer = new openstackCustom.LoadBalancer(`${resourceName}-balancer`, {
    name: `${resourceName}-balancer`,
    adminStateUp: true,
    vipAddress: "10.0.0.100",
    vipNetworkId: network,
    vipSubnetId: subnet,
    listeners: [
        {
            name: "HTTP",
            protocol: "TCP",
            protocolPort: 80,
            adminStateUp: true,
            pools: [
                {
                    name: "default",
                    protocol: "TCP",
                    lbMethod: "ROUND_ROBIN",
                    adminStateUp: true,
                    members: instances.createdPorts.map(port => {
                        return {
                            address: port.allFixedIps[0],
                            protocolPort: 30443,
                            subnetId: subnet,
                            adminStateUp: true
                        }
                    })
                }
            ]
        },
        {
            name: "HTTPS",
            protocol: "TCP",
            protocolPort: 443,
            adminStateUp: true,
            pools: [
                {
                    name: "default",
                    protocol: "TCP",
                    lbMethod: "ROUND_ROBIN",
                    adminStateUp: true,
                    members: instances.createdPorts.map(port => {
                        return {
                            address: port.allFixedIps[0],
                            protocolPort: 30443,
                            subnetId: subnet,
                            adminStateUp: true
                        }
                    })
                }
            ]
        },
    ]
});

License

This package is licensed under the Mozilla Public License, v2.0.

Contributing

Please feel free to open issues or pull requests on GitHub!

Authors

Okassov Marat [email protected]