mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
sanity: Add future boilerplate (#573)
* sanity: Add future boilerplate Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Module Utils Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Scripts Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * sanity: Add future boilerplate * Tests Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * CI failure Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
# Altered/Added for Vault functionality:
|
||||
# Austin Hobbs, GitHub: @OxHobbs
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
'''
|
||||
Ansible Vault Password with Azure Key Vault Secret Script
|
||||
=========================================================
|
||||
|
||||
@@ -2,20 +2,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# (c) 2014, Matt Martz <matt@sivel.net>
|
||||
# (c) 2016, Justin Mayer <https://justinmayer.com/>
|
||||
# This file is part of Ansible.
|
||||
#
|
||||
# Ansible 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.
|
||||
#
|
||||
# Ansible 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 Ansible. 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)
|
||||
#
|
||||
# =============================================================================
|
||||
#
|
||||
@@ -43,13 +31,13 @@
|
||||
# contrib/vault/vault-keyring-client.py --vault-id keyring_id
|
||||
#
|
||||
# That will retrieve the password from users keyring for the
|
||||
# keyring service 'keyring_id'. The equilivent of:
|
||||
# keyring service 'keyring_id'. The equivalent of:
|
||||
#
|
||||
# keyring get keyring_id $USER
|
||||
#
|
||||
# If no vault-id name is specified to ansible command line, the vault-keyring-client.py
|
||||
# script will be called without a '--vault-id' and will default to the keyring service 'ansible'
|
||||
# This is equilivent to:
|
||||
# This is equivalent to:
|
||||
#
|
||||
# keyring get ansible $USER
|
||||
#
|
||||
@@ -74,6 +62,9 @@
|
||||
#
|
||||
# ansible-playbook --vault-id=keyring_id@/path/to/vault-keyring-client.py site.yml
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
import getpass
|
||||
|
||||
@@ -3,20 +3,7 @@
|
||||
# (c) 2014, Matt Martz <matt@sivel.net>
|
||||
# (c) 2016, Justin Mayer <https://justinmayer.com/>
|
||||
#
|
||||
# This file is part of Ansible.
|
||||
#
|
||||
# Ansible 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.
|
||||
#
|
||||
# Ansible 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 Ansible. 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)
|
||||
#
|
||||
# =============================================================================
|
||||
#
|
||||
@@ -57,6 +44,9 @@
|
||||
#
|
||||
# ansible-playbook --vault-password-file=/path/to/vault-keyring.py site.yml
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import sys
|
||||
import getpass
|
||||
import keyring
|
||||
|
||||
Reference in New Issue
Block a user