From 148bd52d8b1f9650dd65ecd9c62be4e7e697746d Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 26 May 2015 13:52:47 +0200 Subject: [PATCH 1/2] proxmox: update module doc --- cloud/misc/proxmox.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cloud/misc/proxmox.py b/cloud/misc/proxmox.py index 9742f95ba50..74c49afef92 100644 --- a/cloud/misc/proxmox.py +++ b/cloud/misc/proxmox.py @@ -25,12 +25,10 @@ options: api_host: description: - the host of the Proxmox VE cluster - default: null required: true api_user: description: - the user to authenticate with - default: null required: true api_password: description: @@ -52,26 +50,26 @@ options: node: description: - Proxmox VE node, when new VM will be created - - required only for state="present" + - required only for C(state=present) - for another states will be autodiscovered default: null required: false password: description: - the instance root password - - required only for state="present" + - required only for C(state=present) default: null required: false hostname: description: - the instance hostname - - required only for state="present" + - required only for C(state=present) default: null required: false ostemplate: description: - the template for VM creating - - required only for state="present" + - required only for C(state=present) default: null required: false disk: @@ -145,9 +143,9 @@ options: force: description: - forcing operations - - can be used only with states "present", "stopped", "restarted" - - with state="present" force option allow to overwrite existing container - - with states "stopped", "restarted" allow to force stop instance + - can be used only with states C(present), C(stopped), C(restarted) + - with C(state=present) force option allow to overwrite existing container + - with states C(stopped) , C(restarted) allow to force stop instance default: false required: false type: boolean @@ -159,7 +157,7 @@ options: notes: - Requires proxmoxer and requests modules on host. This modules can be installed with pip. requirements: [ "proxmoxer", "requests" ] -author: Sergei Antipov +author: "Sergei Antipov @UnderGreen" ''' import os From e72f581a168718cda5f9f92e151f1a861f135426 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 26 May 2015 13:53:28 +0200 Subject: [PATCH 2/2] proxmox: prevent to log passwords --- cloud/misc/proxmox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/misc/proxmox.py b/cloud/misc/proxmox.py index 74c49afef92..7978fca53ad 100644 --- a/cloud/misc/proxmox.py +++ b/cloud/misc/proxmox.py @@ -244,11 +244,11 @@ def main(): argument_spec = dict( api_host = dict(required=True), api_user = dict(required=True), - api_password = dict(), + api_password = dict(no_log=True), vmid = dict(required=True), https_verify_ssl = dict(type='bool', choices=BOOLEANS, default='no'), node = dict(), - password = dict(), + password = dict(no_log=True), hostname = dict(), ostemplate = dict(), disk = dict(type='int', default=3),