Ansible plugin
The Cisco Panoptica Ansible plugin works with Ansible to identify pod template workload that you are deploying to your Kubernetes clusters.
Supported platforms
Install the plugin
- On the Panoptica console, create a user with the Service role. This user will be used by plugin. Copy the value of the Access Token; it will be used by the plugin (see below).
- Navigate to the CI/CD page, and select the PLUGINS tab. Scroll down to the CD PLUGINS section, and select Ansible.
- Download the plugin (portshift.py)using the link on the page.
- Copy the plugin to the Anisble module directory.
- Run the command
ansible-doc -t module <module directory>/portshift.py
Use (CD)
The Panoptica plugin is included as an action in an Ansible playbook file.Its purpose is to create a Panoptica app for an application.
The Panoptica segment is added as follows:

These attributes can be included, optionally, for the Panoptica segment:
Name | Description | Required |
---|---|---|
executable | The directory of the executable | Yes |
name | The name of the executable (in Panoptica) | Yes |
url | the url of the Panoptica console | No |
access_key | the access key of the service. If not included, the value will be taken from environment variable PORTSHIFT_ACCESS_KEY | No |
secret_key | the secret key of the service. If not included, value will be taken from environment variable PORTSHIFT_SECRET_KEY | No |
executablePath | the directory of the executable | No |
processName | the process name | No |
args | command line arguments of the executable | No |
cwd | working directory of the executable | No |
type | the app type | No |
labels | a hash/dictionary of labels to add to the new app; form: '{"key":"value"}' and '{"key":"value","key":"value"}' | No |
Updated 9 months ago