From 96759cda82273953553732c6b6c2ef8c851da2e6 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 13 Feb 2015 10:39:10 -0500 Subject: [PATCH] Add deprecation notices to the old nova inventory --- plugins/inventory/nova.ini | 3 +++ plugins/inventory/nova.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/plugins/inventory/nova.ini b/plugins/inventory/nova.ini index 4900c49651..c5cfeef810 100644 --- a/plugins/inventory/nova.ini +++ b/plugins/inventory/nova.ini @@ -1,4 +1,7 @@ # Ansible OpenStack external inventory script +# DEPRECATED: please use openstack.py inventory which is configured for +# auth using the os-client-config library and either clouds.yaml or standard +# openstack environment variables [openstack] diff --git a/plugins/inventory/nova.py b/plugins/inventory/nova.py index 7e58390ee1..af2e7a0760 100644 --- a/plugins/inventory/nova.py +++ b/plugins/inventory/nova.py @@ -17,6 +17,10 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . +# WARNING: This file is deprecated. New work should focus on the openstack.py +# inventory module, which properly handles multiple clouds as well as keystone +# v3 and keystone auth plugins + import sys import re import os @@ -28,6 +32,9 @@ try: except ImportError: import simplejson as json + +sys.stderr.write("WARNING: this inventory module is deprecated. please migrate usage to openstack.py\n") + ################################################### # executed with no parameters, return the list of # all groups and hosts