Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add setting options for execution environment #200

Merged
merged 6 commits into from
Sep 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 53 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
"default": true,
"description": "Always use fully qualified collection names (FQCN) when inserting a module name. Disabling it will only use FQCNs when necessary."
},
"ansible.ansibleLint.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Command line arguments to be passed to ansible-lint."
},
"ansible.ansibleLint.enabled": {
"scope": "resource",
"type": "boolean",
Expand All @@ -123,24 +129,6 @@
"default": "ansible-lint",
"description": "Path to the ansible-lint executable."
},
"ansible.ansibleLint.arguments": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Command line arguments to be passed to ansible-lint."
},
"ansible.python.interpreterPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the Python interpreter executable. Particularly important if you are using a Python virtual environment. Leave blank to use Python from PATH."
},
"ansible.python.activationScript": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the virtual environment activation script. Use only if you have a custom activation script. It will be sourced using bash before executing Ansible commands. If set, the Interpreter Path setting is ignored."
},
"ansible.ansibleNavigator.path": {
"default": "ansible-navigator",
"description": "%configuration.navigate.executablePath%",
Expand All @@ -158,6 +146,53 @@
"string",
"null"
]
},
"ansible.executionEnvironment.containerEngine": {
"scope": "resource",
"type": "string",
"enum": [
"auto",
"podman",
"docker"
],
"default": "auto",
"description": "Specify the container engine (auto=podman then docker)."
},
"ansible.executionEnvironment.enabled": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enable or disable the use of an execution environment."
},
"ansible.executionEnvironment.image": {
"scope": "resource",
"type": "string",
"default": "quay.io/ansible/ansible-navigator-demo-ee:0.6.0",
"description": "Specify the name of the execution environment image."
},
"ansible.executionEnvironment.pullPolicy": {
"scope": "resource",
"type": "array",
"enum": [
"always",
"missing",
"never",
"tag"
],
"default": "missing",
"description": "Specify the image pull policy.\nalways: Always pull the image when extension is activated or reloaded\nmissing: Pull if not locally available\nnever: Never pull the image\ntag: If the image tag is 'latest', always pull the image, otherwise pull if not locally available"
},
"ansible.python.activationScript": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the virtual environment activation script. Use only if you have a custom activation script. It will be sourced using bash before executing Ansible commands. If set, the Interpreter Path setting is ignored."
},
"ansible.python.interpreterPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Path to the Python interpreter executable. Particularly important if you are using a Python virtual environment. Leave blank to use Python from PATH."
}
}
},
Expand Down