1. Packages
  2. ESXi Native
  3. Installation & Configuration
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

ESXi Native: Installation & Configuration

esxi-native logo
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

    Installation

    The Pulumi ESXi Native provider is available as a package in all Pulumi languages:

    Provider Binary

    The ESXi Native provider binary is a third party binary. It can be installed using the pulumi plugin command.

    pulumi plugin install resource esxi-native <version> --server github://api.github.com/pulumiverse
    

    Replace the <version> string with your desired version.

    Configuration

    In order to use the provider, we need to provide SSH credentials to the ESXi Host

    Set configuration using pulumi config

    Remember to pass --secret when setting password so that it is properly encrypted:

    ```bash
    $ pulumi config set esxi-native:username <username>
    $ pulumi config set esxi-native:password <password> --secret
    $ pulumi config set esxi-native:host <host IP or FQDN>
    ```
    

    Set configuration using environment variables

    $ export ESXI_USERNAME=<YOUR_ESXI_USERNAME>
    $ export ESXI_PASSWORD=<YOUR_ESXI_PASSWORD>
    $ export ESXI_HOST=<YOUR_ESXI_HOST_IP>
    
    $ export ESXI_USERNAME=<YOUR_ESXI_USERNAME>
    $ export ESXI_PASSWORD=<YOUR_ESXI_PASSWORD>
    $ export ESXI_HOST=<YOUR_ESXI_HOST_IP>
    
    > $env:ESXI_USERNAME = "<YOUR_ESXI_USERNAME>"
    > $env:ESXI_PASSWORD = "<YOUR_ESXI_PASSWORD>"
    > $env:ESXI_HOST = "<YOUR_ESXI_HOST>"
    

    Configuration options

    Use pulumi config set esxi-native:<option> or pass options to the constructor of new esxi-native.Provider.

    Note: Each config can also be sourced from the environment variables given below

    OptionRequired?DescriptionDefaultEnv. Variable
    usernameRequiredThe ESXi UsernameESXI_USERNAME
    passwordRequiredThe ESXi Password, has support for secrets tooESXI_PASSWORD
    hostRequiredThe ESXi Host Name where to connectESXI_HOST
    sshPortOptionalThe ESXi Host SSH Port where to connect22ESXI_SSH_PORT
    sslPortOptionalThe ESXi Host SSL Port where to connect443ESXI_SSL_PORT
    esxi-native logo
    ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse