JetBrains IDEA Plugins

Custom plugin repository for github/mdklatt

Ansible

Introduction

This plugin provides tools for working with Ansible inside a JetBrains IDE. An existing Ansible installation is required.

Ansible logos © RedHat, Inc.

Run/Debug Configurations

Run/debug configurations are provided for executing Ansible commands. A new configuration can be created from the Run > Edit Configurations menu or by right clicking on a file and using the Ansible context menu.

Galaxy

Use this configuration to install collections and roles using ansible-galaxy. Use a YAML requirements file to create a new Galaxy configuration from the context menu.

Playbook

Use this configuration to execute plays using ansible-playbook. Use a YAML playbook to create a new Playbook configuration from the context menu.

Plugin Setup

Per-project settings are found under Settings > Tools > Ansible. These are used to specify where the Ansible executables are installed. This can be a regular system install or a Python virtualenv. Optionally, a Docker image can be used for either installation types (requires Docker Engine on the host machine). An ansible.cfg file can also be specified in these settings.

For Docker execution, the working directory specified in the run configuration settings becomes the working directory of the Ansible container. Any input files that are not part of the image (playbooks, requirements files, ansible.cfg, etc.) should within this directory. Paths on the host must be relative to the working directory. Use absolute paths to specify files that are part of the image.

NetCDF

Tools for inspecting Network Common Data Form (netCDF) files in any JetBrains IDE. Right-click on a file in the Project tool window to access the NetCDF context menu, which offers these actions:

Open in Viewer

Open the file in the NetCDF tool window. The Schema tab shows the file structure. Variables selected in this tab will be displayed in the Data tab. Multiple variables can be selected as long as they have the same dimensions.

The plugin does not yet support pagination, so beware of attempting to view large variables.

Create CDL File

Write the file header to a Common Data Language (CDL) file. This is equivalent to executing ndcump -h.

Create NcML File

Write the file header to a NetCDF Markup Language (NcML) file.

Remote Python

Run Configurations for running remote Python commands in a JetBrains IDE that does not have built-in remote Python support. This is not a substitute for the full remote interpreter support in PyCharm Professional and does not support remote development features like code completion or debugging.

Each remote interpreter type has its own run configuration:

Secure Shell (SSH)

Use an OpenSSH-compatible client on the local machine to execute on a remote host via SSH. The client configuration is used for connections (host addresses, proxy settings, SSH keys, etc.)

Docker

Use the Docker runtime on the local machine to execute inside a running container, or a temporary container created from an image or Compose service.

Vagrant

Use the Vagrant executable on the local machine to execute inside a virtual machine.