Yandex Cloud Component YandexPublisher creates one Ubuntu 22.04 bootstrap-mode Netskope Publisher per resolved publisher name.
Required platform inputs: imageId and subnetId. The provider places cloud-init in metadata key user-data.
Inputs Required Netskope inputs: tenantUrl and bearerToken, unless registrations is provided. OAuth2 enrollment is available with authMode: "oauth2" and oauth2 client credentials.
Bootstrap behavior The component renders the shared Netskope Publisher cloud-init payload, installs the generic publisher software, and enrolls the VM with a deployment-time registration token.
Pulumi YAML 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 name: netskope-publisher-yandex runtime: yaml config: tenantUrl: type: String bearerToken: type: String secret: true resources: publisher: type: netskope-publisher:index:YandexPublisher properties: namePrefix: pub replicas: 2 tenantUrl: ${tenantUrl} bearerToken: ${bearerToken} zone: ru-central1-a imageId: fd8ubuntu2204example subnetId: <subnet-id> bootstrap: true outputs: publisherNames: ${publisher.publisherNames} publishers: ${publisher.publishers}
TypeScript 1 2 3 4 5 6 7 8 9 10 11 12 13 import * as pulumi from "@pulumi/pulumi" ;import { YandexPublisher } from "@johninnl/pulumi-netskope-publisher" ;const netskope = new pulumi.Config ("netskope" );const publisher = new YandexPublisher ("publisher" , { namePrefix : "pub" , replicas : 2 , tenantUrl : netskope.require ("tenantUrl" ), bearerToken : netskope.requireSecret ("bearerToken" ), imageId : "ubuntu-22-image" , subnetId : "subnet-id" , }); export const publishers = publisher.publishers ;
Python 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import pulumifrom pulumi_netskope_publisher import YandexPublishernetskope = pulumi.Config("netskope" ) publisher = YandexPublisher( "publisher" , name_prefix="pub" , replicas=2 , tenant_url=netskope.require("tenantUrl" ), bearer_token=netskope.require_secret("bearerToken" ), image_id="ubuntu-22-image" , subnet_id="subnet-id" , ) pulumi.export("publishers" , publisher.publishers)
C# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 using Pulumi;using JohninNL.Pulumi.NetskopePublisher;return await Deployment.RunAsync(() =>{ var netskope = new Config("netskope" ); var publisher = new YandexPublisher("publisher" , new YandexPublisherArgs { NamePrefix = "pub" , Replicas = 2 , TenantUrl = netskope.Require("tenantUrl" ), BearerToken = netskope.RequireSecret("bearerToken" ), ImageId = "ubuntu-22-image" , SubnetId = "subnet-id" , }); });
Go 1 2 3 4 5 6 7 8 9 publisher, err := netskopepublisher.NewYandexPublisher(ctx, "publisher" , &netskopepublisher.YandexPublisherArgs{ NamePrefix: pulumi.String("pub" ), Replicas: pulumi.Int(2 ), TenantUrl: pulumi.String(netskope.Require("tenantUrl" )), BearerToken: netskope.RequireSecret("bearerToken" ), ImageId: pulumi.String("ubuntu-22-image" ), SubnetId: pulumi.String("subnet-id" ), }) _ = publisher
Java 1 2 3 4 5 6 7 8 var publisher = new YandexPublisher ("publisher" , YandexPublisherArgs.builder() .namePrefix("pub" ) .replicas(2 ) .tenantUrl(netskope.require("tenantUrl" )) .bearerToken(netskope.requireSecret("bearerToken" )) .imageId("ubuntu-22-image" ) .subnetId("subnet-id" ) .build());
Rust 1 2 3 4 5 6 7 8 9 10 11 12 let publisher = netskope::yandex_publisher::create ( ctx, "publisher" , netskope::yandex_publisher::YandexPublisherArgs::builder () .name_prefix ("pub" ) .replicas (2 ) .tenant_url ("https://tenant.goskope.com" ) .bearer_token ("secret-token" ) .image_id ("ubuntu-22-image" ) .subnet_id ("subnet-id" ) .build_struct (), );