Browse Source

enough: follow symbolic links

keep-around/39e436a6370f35a9920be9c1fa47436a1b716deb
Loïc Dachary 2 years ago
committed by Loic Dachary
parent
commit
c85ca4c95a
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 4
      MANIFEST.in
  2. 1
      enough/common/ansible_utils.py
  3. 21
      setup.cfg

4
MANIFEST.in

@ -1,5 +1 @@
global-exclude *~
#
# This allows dereferencing symbolic links, see https://stackoverflow.com/questions/55976838/how-can-setup-py-sdist-dereference-symbolic-links
#
graft molecule/

1
enough/common/ansible_utils.py

@ -69,7 +69,6 @@ class Playbook(object):
@staticmethod
def roles_path(d):
r = glob.glob(f'{d}/molecule/*/roles')
r.append(f'{d}/molecule/debops/ansible/roles')
r.append(f'{d}/molecule/wazuh/wazuh-ansible/roles/wazuh')
return ":".join(r)

21
setup.cfg

@ -40,6 +40,27 @@ data_files =
ansible.cfg
playbook.yml
share/enough/molecule = molecule/*
#
# Begin HACK
#
# find molecule/postfix/roles/debops.*/ molecule/postfix/roles -type l | while read i ; do test -d $i && echo $i ; done | perl -pe 's:(.*): share/enough/\1 = \1/*:'
#
# See https://stackoverflow.com/questions/55976838/how-can-setup-py-sdist-dereference-symbolic-links for more information about
# why this is necesary.
#
share/enough/molecule/postfix/roles/debops.etc_aliases/env/defaults = molecule/postfix/roles/debops.etc_aliases/env/defaults/*
share/enough/molecule/postfix/roles/debops.opendkim/env/templates = molecule/postfix/roles/debops.opendkim/env/templates/*
share/enough/molecule/postfix/roles/debops.opendkim/env/defaults = molecule/postfix/roles/debops.opendkim/env/defaults/*
share/enough/molecule/postfix/roles/debops.postfix/env/templates = molecule/postfix/roles/debops.postfix/env/templates/*
share/enough/molecule/postfix/roles/debops.postfix/env/defaults = molecule/postfix/roles/debops.postfix/env/defaults/*
share/enough/molecule/postfix/roles/debops.etc_aliases = molecule/postfix/roles/debops.etc_aliases/*
share/enough/molecule/postfix/roles/debops.secret = molecule/postfix/roles/debops.secret/*
share/enough/molecule/postfix/roles/debops.opendkim = molecule/postfix/roles/debops.opendkim/*
share/enough/molecule/postfix/roles/debops.ansible_plugins = molecule/postfix/roles/debops.ansible_plugins/*
share/enough/molecule/postfix/roles/debops.postfix = molecule/postfix/roles/debops.postfix/*
#
# End HACK
#
share/enough/inventory = inventory/*
[entry_points]

Loading…
Cancel
Save