Remove deprecated Packet
MODIFY
.github/workflows/cron.yml
.github/workflows/cron.yml
@@ -275,7 +275,6 @@ jobs:
- Aws
- Azure
- Gcp
- - Packet
- EquinixMetal
- Cloud
dotnet-version:

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -14,8 +14,8 @@ env:
GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
GOOGLE_REGION: us-central1
GOOGLE_ZONE: us-central1-a
- PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
+ PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
PULUMI_TEST_OWNER: moolumi
@@ -293,7 +293,6 @@ jobs:
- Aws
- Azure
- Gcp
- - Packet
- EquinixMetal
- Cloud
dotnet-version:

MODIFY
.github/workflows/smoke-test-cli-command.yml
.github/workflows/smoke-test-cli-command.yml
@@ -238,7 +238,6 @@ jobs:
- Aws
- Azure
- Gcp
- - Packet
- EquinixMetal
- Cloud
dotnet-version:

MODIFY
README.md
README.md
@@ -58,7 +58,6 @@ $ git pull origin master
- [F5](#f5)
- [Twilio](#twilio)
- [Linode](#linode)
-- [Packet](#packet)
- [Testing](#testing)
- [Automation API](https://github.com/pulumi/automation-api-examples)
@@ -372,18 +371,6 @@ Example | Description |
--------- | --------- |
[Web Server](linode-js-webserver) | Build a web server on Linode.
-## Packet
-
-### TypeScript
-Example | Description |
---------- | --------- |
-[Web Server](packet-ts-webserver) | Build a web server on Packet.net.
-
-### Python
-Example | Description |
---------- | --------- |
-[Web Server](packet-py-webserver) | Build a web server on Packet.net.
-
## Testing
Example | Description |

MODIFY
misc/test/equinix_metal_test.go
misc/test/equinix_metal_test.go
@@ -9,15 +9,6 @@ import (
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)
-func TestAccPacketPyWebserver(t *testing.T) {
- test := getBaseOptions(t).
- With(integration.ProgramTestOptions{
- Dir: path.Join(getCwd(t), "..", "..", "packet-py-webserver"),
- })
-
- integration.ProgramTest(t, &test)
-}
-
func TestAccEquinixMetalPyWebserver(t *testing.T) {
test := getBaseOptions(t).
With(integration.ProgramTestOptions{
@@ -27,15 +18,6 @@ func TestAccEquinixMetalPyWebserver(t *testing.T) {
integration.ProgramTest(t, &test)
}
-func TestAccPacketTsWebserver(t *testing.T) {
- test := getBaseOptions(t).
- With(integration.ProgramTestOptions{
- Dir: path.Join(getCwd(t), "..", "..", "packet-ts-webserver"),
- })
-
- integration.ProgramTest(t, &test)
-}
-
func TestAccEquinixMetalTsWebserver(t *testing.T) {
test := getBaseOptions(t).
With(integration.ProgramTestOptions{

DELETE
packet-py-webserver/.gitignore
-/bin/

DELETE
packet-py-webserver/Pulumi.yaml
-name: packet-py-webserver
-description: A simple server on Packet.
-runtime:
- name: python
- options:
- virtualenv: venv

DELETE
packet-py-webserver/README.md
-[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)
-
-# Packet Webserver
-
-This example demonstrates creating a webserver in Packet.net with Python
-
-# Running the Example
-
-After cloning this repo, `cd` into it and run these commands.
-
-1. Create a new stack, which is an isolated deployment target for this example:
-
- ```bash
- $ pulumi stack init
- ```
-
-1. Install all of the dependencies for the application:
-
-1. Deploy everything with the `pulumi up` command. This provisions the webserver:
-
- ```bash
- $ pulumi up
- ```
-
-1. After a couple minutes, your webserver will be ready.
-
- ```bash
- $ pulumi up
- ...
-
- Outputs:
- + ip : "147.75.65.213"
- + name: "new-vervet"
- ```
-
-1. Once you are done, you can destroy all of the resources, and the stack:
-
- ```bash
- $ pulumi destroy
- $ pulumi stack rm
- ```

DELETE
packet-py-webserver/__main__.py
-import pulumi_packet as packet
-import pulumi_random as random
-from pulumi import export
-
-random_host_name = random.RandomPet("hostname")
-
-project = packet.get_project(
- name="ci-project"
-)
-
-vm = packet.Device(
- "vm",
- billing_cycle="hourly",
- facilities=["ewr1"],
- hostname=random_host_name.id,
- operating_system="coreos_stable",
- plan="baremetal_0",
- project_id=project.id,
- ip_addresses=[{
- "type": "public_ipv4",
- }, {
- "type": "private_ipv4",
- }]
-)
-
-export('ip', vm.access_public_ipv4)
-export('name', vm.hostname)

DELETE
packet-py-webserver/requirements.txt
-pulumi>=2.0.0,<3.0.0
-pulumi-packet>=2.0.0,<3.0.0
-pulumi-random>=2.0.0,<3.0.0

DELETE
packet-ts-webserver/Pulumi.yaml
-name: webserver-packet
-description: A simple server on Packet.
-runtime: nodejs
-

DELETE
packet-ts-webserver/README.md
-[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)
-
-# Packet Webserver
-
-This example demonstrates creating a webserver in Packet.net
-
-# Running the Example
-
-After cloning this repo, `cd` into it and run these commands.
-
-1. Create a new stack, which is an isolated deployment target for this example:
-
- ```bash
- $ pulumi stack init
- ```
-
-1. Install all of the dependencies for the application:
-
- ```bash
- $ npm install
- ```
-
-1. Deploy everything with the `pulumi up` command. This provisions the webserver:
-
- ```bash
- $ pulumi up
- ```
-
-1. After a couple minutes, your webserver will be ready.
-
- ```bash
- $ pulumi up
- ...
-
- Outputs:
- + ip : "147.75.65.213"
- + name: "new-vervet"
- ```
-
-1. Once you are done, you can destroy all of the resources, and the stack:
-
- ```bash
- $ pulumi destroy
- $ pulumi stack rm
- ```

DELETE
packet-ts-webserver/index.ts
-// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
-
-import * as packet from "@pulumi/packet";
-import * as random from "@pulumi/random";
-
-const randomHostName = new random.RandomPet("hostname");
-
-const project = packet.getProject({name: "ci-project"});
-
-const vm = new packet.Device("vm", {
- facilities: [packet.Facilities.EWR1],
- billingCycle: packet.BillingCycles.Hourly,
- hostname: randomHostName.id,
- operatingSystem: packet.OperatingSystems.CoreOSStable,
- plan: packet.Plans.T1SmallX86,
- projectId: project.then(p => p.id),
- ipAddresses: [{
- type: "public_ipv4",
- },
- {
- type: "private_ipv4",
- }],
-});
-
-export const ip = vm.accessPublicIpv4;
-export const name = vm.hostname;

DELETE
packet-ts-webserver/package.json
-{
- "name": "packet-ts-webserver",
- "version": "0.1.0",
- "devDependencies": {
- "@types/node": "^8.0.0"
- },
- "dependencies": {
- "@pulumi/packet": "^1.4.0",
- "@pulumi/random": "latest"
- },
- "license": "Apache-2.0"
-}

DELETE
packet-ts-webserver/tsconfig.json
-{
- "compilerOptions": {
- "outDir": "bin",
- "target": "es6",
- "module": "commonjs",
- "moduleResolution": "node",
- "sourceMap": true,
- "stripInternal": true,
- "experimentalDecorators": true,
- "pretty": true,
- "noFallthroughCasesInSwitch": true,
- "noImplicitAny": true,
- "noImplicitReturns": true,
- "forceConsistentCasingInFileNames": true,
- "strictNullChecks": true
- },
- "files": [
- "index.ts"
- ]
-}
-

Remove deprecated Packet (#1031)