more wildcards

This commit is contained in:
Toshio Kuratomi
2017-07-29 02:35:25 -07:00
parent 1ee08c0f06
commit 8de6cff2b1
30 changed files with 324 additions and 633 deletions

View File

@@ -1,18 +1,11 @@
#!/usr/bin/python
# (c) 2016, Flavio Percoco <flavio@redhat.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.0',
'status': ['preview'],
@@ -102,9 +95,6 @@ EXAMPLES = '''
name: my-memcached
'''
import os
try:
import grpc
from pyhelm import tiller
@@ -113,7 +103,6 @@ try:
except ImportError as exc:
HAS_PYHELM = False
from ansible.module_utils.basic import AnsibleModule
@@ -127,9 +116,9 @@ def install(module, tserver):
chartb = chartbuilder.ChartBuilder(chart)
try:
result = tserver.install_release(chartb.get_helm_chart(), namespace,
dry_run=False, name=name,
values=values)
tserver.install_release(chartb.get_helm_chart(), namespace,
dry_run=False, name=name,
values=values)
changed = True
except grpc._channel._Rendezvous as exc:
if "already exists" not in str(exc):
@@ -149,7 +138,7 @@ def delete(module, tserver, purge=False):
disable_hooks = params['disable_hooks']
try:
result = tserver.uninstall_release(name, disable_hooks, purge)
tserver.uninstall_release(name, disable_hooks, purge)
changed = True
except grpc._channel._Rendezvous as exc:
if 'not found' not in str(exc):