mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Remove sops lookup (moved to https://github.com/ansible-collections/community.sops). (#518)
This commit is contained in:
parent
b54ddaa28c
commit
1c97afd40a
11 changed files with 0 additions and 274 deletions
|
@ -1,5 +0,0 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/freebsd
|
||||
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
creation_rules:
|
||||
- pgp: FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4
|
|
@ -1,25 +0,0 @@
|
|||
foo: ENC[AES256_GCM,data:a25L,iv:X8ILHZr+YiyLWa90Y+cwoMD1nVuel7JyTs0A5+oiOOo=,tag:GbBtp+Yqx1KEjdyztqS4EQ==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
lastmodified: '2020-02-20T10:44:32Z'
|
||||
mac: ENC[AES256_GCM,data:BAwQqD9sHgHkmlxPQLKq28Xy48qPp1B/+GDLEsIxir6WNhZgw8OgjVF1u/wCAad6qHkmN02Bwenr+aay6uKfCuOEsTRSvZ7v80yAU+h0wL3zJ/KMkRsE3QP3CWxcLQxInt+YaBjR+Q0IUjDXKm3u6ZomixZe5F5pwWr36ErV6Y0=,iv:e/iiyXQiCh8C2w/bc8mr/Psv+ehmqEMqEC1/bbGFHpY=,tag:NSDo2HISIBJhYvsqrU0mSA==,type:str]
|
||||
pgp:
|
||||
- created_at: '2020-02-20T10:44:32Z'
|
||||
enc: |-
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
wcBMAyUpShfNkFB/AQgALJTUwdx6rAPckJ+reP5TEq+lXzHI1Zi7aHYOqZQBnA2s
|
||||
z8h1gRce/fn7RPkmdsjsdSYmxGGKqwDXxUYsbN1aWXk6mb4Juktdvjl/GndF6PkU
|
||||
TiN/l1GM6upgS+GPxA01NKsGkVmEtKR5NhsNEnE6OzY29+PFLsBX2vO1Zfg7kzBz
|
||||
cDl6PT8fbFTEaFeyuYl9IslIV8yYsj1oHL3CF76RjCP6b18NSOHM23ytlH+KVaBV
|
||||
ntoSVkTyWDx5o9iEHBEWSEGNpaCWWiEgkDEkA1VqMHdUlsW+IjZ8ggg5NJbcVtrG
|
||||
YkN8rlGsNEzx+g4O4b1160A2K6AdTBcoGHwHD3u3XdLgAeTqT1ekE2N3yNT6w4sm
|
||||
6uET4eTS4Cvg1OFCgOC34uUzlY3gbuVy20h8RNyQoAfhSN4DD2MexKqcMMCVCtn0
|
||||
OhRMTP2jjOCe5Ex3/p3awcVxwx7qeJ26Vnfiwtg6ueFI5AA=
|
||||
=tcnq
|
||||
-----END PGP MESSAGE-----
|
||||
fp: FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.4.0
|
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
this-is-not: a sops file
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
dependencies:
|
||||
- setup_sops
|
|
@ -1,36 +0,0 @@
|
|||
---
|
||||
- when: sops_installed
|
||||
block:
|
||||
|
||||
- name: Test lookup with missing file
|
||||
set_fact:
|
||||
sops_file_does_not_exists: "{{ lookup('community.general.sops', 'file-does-not-exists.sops.yml') }}"
|
||||
ignore_errors: yes
|
||||
register: sops_lookup_missing_file
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "sops_lookup_missing_file is failed"
|
||||
- "'could not locate file in lookup: file-does-not-exists.sops.yml' in sops_lookup_missing_file.msg"
|
||||
|
||||
- name: Test lookup of non-sops file
|
||||
set_fact:
|
||||
sops_wrong_file: "{{ lookup('community.general.sops', 'wrong.yaml') }}"
|
||||
ignore_errors: yes
|
||||
register: sops_lookup_wrong_file
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "sops_lookup_wrong_file is failed"
|
||||
- "'sops metadata not found' in sops_lookup_wrong_file.msg"
|
||||
|
||||
- name: Test simple lookup
|
||||
set_fact:
|
||||
sops_success: "{{ lookup('community.general.sops', 'simple.sops.yaml') }}"
|
||||
ignore_errors: yes
|
||||
register: sops_lookup_simple
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "sops_lookup_simple is success"
|
||||
- "sops_success == 'foo: bar'"
|
|
@ -1 +0,0 @@
|
|||
---
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
|
||||
- set_fact:
|
||||
sops_installed: no
|
||||
|
||||
- include: ubuntu.yml
|
||||
when: ansible_distribution == 'Ubuntu'
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
|
||||
- name: install sops release
|
||||
apt:
|
||||
deb: https://github.com/mozilla/sops/releases/download/v3.5.0/sops_3.5.0_amd64.deb
|
||||
|
||||
- name: install gnupg2
|
||||
apt:
|
||||
package: gnupg2
|
||||
|
||||
- name: download sops test GPG key
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/mozilla/sops/master/pgp/sops_functional_tests_key.asc
|
||||
dest: /tmp/sops_functional_tests_key.asc
|
||||
|
||||
- name: import sops test GPG key
|
||||
command: gpg --import /tmp/sops_functional_tests_key.asc
|
||||
|
||||
- set_fact:
|
||||
sops_installed: yes
|
Loading…
Add table
Add a link
Reference in a new issue