Commit Graph

120 Commits

Author SHA1 Message Date
Jan Dittberner b3fab53665 Release 0.7.0
- improve Vagrant setup
 -----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCgAyFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAl6LaqAUHGphbkBkaXR0
 YmVybmVyLmluZm8ACgkQDXkdyNc3wdnreQf/V4c+TpiqJ+Rm7k8MVch/T9+mCran
 8c/b3+4S8u+lstgAjdlwsEL+c1drNLHIjZNKkoeP7FGQ7/kP8jjXFgIfqEfjejZG
 Jy5PN0SzSscCo4rr0+PaeSZ0MziX5bdbTLqAlnazcy67CCCUPUNmE8QBDEaI6sEG
 sv+UMbcVBBsCTFtsnORmLCqfZtEq9V/gi/q9l7JWNUYA2Wq437mfjuNfoax2KKl9
 bOop1Dx4cnfCBzQIOM+hNNWy5x7TZbd49TqTRLeciFRbtAHLfi3QDKankwZFgjWt
 TNKq/praopYzrJ9My9NkZIYvvl+91P0S76M+huSSgoAtcwAU9PgmWDAZFA==
 =8SNS
 -----END PGP SIGNATURE-----

Merge tag '0.7.0'

Release 0.7.0

- improve Vagrant setup
2020-04-06 19:45:09 +02:00
Jan Dittberner d1fc3f80ab Merge branch 'release/0.7.0' into production 2020-04-06 19:44:52 +02:00
Jan Dittberner 190e6e2a4b Bump version, update changelog 2020-04-06 19:44:33 +02:00
Jan Dittberner 562ae2a61a Move some grains to pillars 2020-03-04 17:20:59 +01:00
Jan Dittberner 11b6051bc0 Fix typo in change-vmdebootstrap-default-dhcp.sh 2020-03-04 00:27:49 +01:00
Jan Dittberner a98f6e54e7 Make IP address assignment work with libvirt
The systemd-networkd script in vmdebootstrap that is used to build the
Debian libvirt vagrant boxes is a bit too eager assigning DHCP to
network interfaces. This patch changes the network script to only take
care of the primary network interface (first non loopback).
2020-03-04 00:07:58 +01:00
Jan Dittberner 9f662e3afb Optimize Vagrant setup
- define grains to match optimized gvasalt repository
- define minion configuration in separate file
- drop custome salt/bootstrap.sh
- adapt Vagrantfile to use the custom grains file
- increase memory size of created VM to allow the salt provisioning to
  succeed
2020-03-03 22:11:46 +01:00
Jan Dittberner b54b8577cb Update Vagrant setup to Debian Buster and Python 3 2020-03-03 16:15:18 +01:00
Jan Dittberner 4ef03f141c Update issue and tag URLs for releases Sphinx plugin 2020-03-03 15:29:19 +01:00
Jan Dittberner f9ade2ea20 Release 0.6.0
- Python 3 support
 - Redis result backend
 - Automatic retry for unavailable LDAP server
 - Pipenv dependency management
 -----BEGIN PGP SIGNATURE-----
 
 iQEzBAABCgAdFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAl5eZPkACgkQDXkdyNc3
 wdnpwQgAqEtqKhV2X8AmRjAUqBMO6cdMjl678cBX5d+uV8ok1SdMLZ28zFjgbCRw
 at+Du3VCVM3CoM11pgetyVO/N9pXRbhME9ogmKQY1vmHupXUvj54sUg7ia11B9OA
 cgsgTH8bKqys/ZJyV7TiKj+WinwvdUpmFdemkkcSl8Wk/MnuSI0CQt+TX79SlSET
 J1VzAedIVEP078TsSrXRBuY/AWn6UQ0ouWcjx3sP9ssLzFQ7ql3dysB1kXfrpOF9
 tldx93t7JNZVhdGK+BEy/T5CxX5LbpJCyQ5J7rt8Cd0/RK2nRPuqswuNmQfeu6mB
 t5K6rOlcWpht/waPRCAc2EJHvHMxEQ==
 =RxNE
 -----END PGP SIGNATURE-----

Merge tag '0.6.0'

Release 0.6.0

- Python 3 support
- Redis result backend
- Automatic retry for unavailable LDAP server
- Pipenv dependency management

* tag '0.6.0':
  Release preparation for 0.6.0
2020-03-03 15:09:03 +01:00
Jan Dittberner 99e22ab9dd Merge branch 'release/0.6.0' into production
* release/0.6.0: (29 commits)
  Release preparation for 0.6.0
  Fix missing bind=True
  Implement automatic retry for LDAP errors
  Unify docker setup with gvaweb and gva
  Add Dockerfile and entrypoint script
  Reorganize package structure
  Fix compatibility with Django 2.2 and other dependencies
  Use Pipenv for dependency management
  Change gvacommon dependency URL
  Update vagrant setup to stretch64 with LXC
  Protect /etc/salt/grains
  Ignore PyCharm files
  Improve Vagrant setup
  Refactoring of ldaptasks
  Mark LDAP field names as byte strings
  Change salt minion id in Vagrantfile
  Add tests for delete tasks
  Add tests for ldaptasks functions
  Update Django and gvacommon dependencies
  Add unit tests
2020-03-03 15:08:00 +01:00
Jan Dittberner 2297c82cf2 Release preparation for 0.6.0
- Bump copyright years
- Bump version number
- Update changelog
- Update documentation
2020-03-03 15:07:39 +01:00
Jan Dittberner 8875765018 Fix missing bind=True 2020-03-03 14:54:16 +01:00
Jan Dittberner 99c80f5759 Implement automatic retry for LDAP errors 2020-03-03 14:50:03 +01:00
Jan Dittberner bdcd16b7e7 Unify docker setup with gvaweb and gva 2020-03-03 13:12:41 +01:00
Jan Dittberner 628d6ee550 Add Dockerfile and entrypoint script 2020-03-03 12:22:45 +01:00
Jan Dittberner 34f788e099 Reorganize package structure
This commit reorganizes the package structure. The gvaldap.settings
modules have been merged. The gvaldap.ldaptasks module has been move up
one level to have task names without the gvaldap prefix.

isort control instructions have been added to setup.cfg.
2020-03-03 12:20:13 +01:00
Jan Dittberner 427fdd9c03 Fix compatibility with Django 2.2 and other dependencies
- drop mockldap in favour of volatildap
- fix URLs and settings
- fix tests
2020-03-02 15:40:08 +01:00
Jan Dittberner c4485945fc Use Pipenv for dependency management 2020-03-02 15:39:29 +01:00
Jan Dittberner ea07d53307 Change gvacommon dependency URL 2019-06-26 22:54:35 +02:00
Jan Dittberner 1091084438 Update vagrant setup to stretch64 with LXC 2018-08-10 11:56:29 +02:00
Jan Dittberner cab9e9701b Protect /etc/salt/grains
Make sure that the permissions of /etc/salt/grains only allow access for the
root user.
2016-09-25 17:27:42 +02:00
Jan Dittberner 2d347e6e96 Ignore PyCharm files 2016-09-25 01:10:45 +02:00
Jan Dittberner 937d0aff97 Improve Vagrant setup
Use debian/contrib-jessie64 base box, install python-cryptography before
saltstack bootstrap.
2016-09-25 01:10:17 +02:00
Jan Dittberner 2ff7dd8902 Refactoring of ldaptasks
All LDAP tasks return a dictionary now to allow chaining with other
tasks, the new task delete_ldap_user_chained has been added to allow
user deletion after other Celery tasks.
2016-02-07 22:41:36 +01:00
Jan Dittberner 54875619aa Mark LDAP field names as byte strings
The django-ldapdb code cannot handle unicode field names with real LDAP
directories. This commit marks the field names of LDAP entities as byte
strings.
2016-02-07 22:40:19 +01:00
Jan Dittberner 1a24cf9c50 Change salt minion id in Vagrantfile 2016-02-06 13:37:53 +01:00
Jan Dittberner 94aacf1398 Add tests for delete tasks
This commit raises coverage for ldaptasks.tasks to 100% by adding tests
for delete_ldap_group, delete_ldap_group_if_empty and delete_ldap_user
tasks.
2016-02-02 18:31:37 +00:00
Jan Dittberner 67ccdbb7c8 Add tests for ldaptasks functions
This commit adds tests for ldaptasks.set_ldap_user_password,
ldaptasks.add_ldap_user_to_group and
ldaptasks.remove_ldap_user_from_group.
2016-02-01 23:15:57 +00:00
Jan Dittberner 23015af083 Update Django and gvacommon dependencies
This commit updates the Django dependency version to 1.9.2 and gvacommon
to 0.3.0 that provides gvacommon.settings_utils.get_env_variable. The
gnuviechadmin.settings.base module now uses this implementation instead
of an own copy and the corresponding test has been removed too.
2016-02-01 23:37:39 +01:00
Jan Dittberner 4b060c51f4 Add unit tests
This commit adds test coverage for gvaldap and ldapentities and starts
to provide coverage for ldaptasks using mockldap.
2016-02-01 00:55:59 +00:00
Jan Dittberner 32366e93dd Add setup.cfg for QA tools, fix flake8 warnings 2016-01-31 23:30:17 +01:00
Jan Dittberner ed18c4a6f9 Modernize dependencies, sync with gva
This commit modernizes all requirements to the latest versions, adapts
the settings to Django 1.9 and synchronizes the settings layout with
gva.
2016-01-31 23:19:26 +01:00
Jan Dittberner 7c6ed136eb Switch result backend to redis
The AMQP result backend proved as impractical, this commit switches to
redis instead.
2016-01-31 21:36:40 +01:00
Jan Dittberner e9ee69f6e5 Add code quality requirements 2016-01-31 21:34:47 +01:00
Jan Dittberner 5094990c9a Switch from deprecated amqp backend to rpc
The previously used amqp result backend has been marked as deprecated by
the celery developers. This commit switches to the rpc backend that
should be used instead.

This commit renames get_env_setting to get_env_variable to be consistent
with the gva settings modules.
2016-01-31 21:34:26 +01:00
Jan Dittberner 02768a4b95 Use separate AMQP vhost for tests 2016-01-31 21:34:20 +01:00
Jan Dittberner 62d8ed64e2 Move salt states and pillar data to separate repository
This commit removes the salt states and pillar data and adds the
ldapserver role to the gvaldap host.
2016-01-31 21:32:15 +01:00
Jan Dittberner 6a8997e950 Add initial Vagrant/Saltstack setup
This commit adds an initial Vagrant and Saltstack setup that reuses the
same configuration as that of the gva repository. The LDAP server itself
is not configured yet.
2016-01-29 23:26:57 +01:00
Jan Dittberner af8b9e974c Start next development iteration
This commit moves the version number to gvaldap's __init__.py, bumps the
copyright year and starts a new development iteration. The docs/conf.py
is synchronized with the gva project's version of that file.
2016-01-29 16:57:48 +01:00
Jan Dittberner 809168d80f Merge tag '0.5.2'
release 0.5.2

- fix minor issues in log messages

* tag '0.5.2':
  update docs version, add release to changelog
2015-01-29 21:52:16 +01:00
Jan Dittberner 1079b0b1d2 Merge branch 'release/0.5.2' into production
* release/0.5.2:
  update docs version, add release to changelog
  add changelog entry
  change order of LDAP commands and logging to fix log messages
2015-01-29 21:51:50 +01:00
Jan Dittberner 261ffe5bb0 update docs version, add release to changelog 2015-01-29 21:51:25 +01:00
Jan Dittberner fad70cf74a add changelog entry 2015-01-29 21:50:23 +01:00
Jan Dittberner b0097ea0a5 change order of LDAP commands and logging to fix log messages 2015-01-29 21:35:33 +01:00
Jan Dittberner ceb1016e8f release 0.5.1
- hotfix for invalid Reject handling
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUynGoAAoJEA15HcjXN8HZ6EYIALNiQdZvjjuIMviwF4amfmb8
 K5HCOOWoxc5dr8eKWhrzL4xUg/N6MT1VcRp/zJyiwGxM3Pe0dbx/lBMkIVxtjqpG
 sQDx+QITV/eP+rGIO+/mimvfeIsghkIOPGVy+UHdsBS7H4p8d8EiSNMs9WjNzx8M
 tt5nGOONlWn5wfwha0EaaIFR51cBfmH8l/MjK+6EjyWlPmemQSMB2AmEHlGgxQPt
 Wm8Pd5vQp61WOBxGeQtSvLGeDSjBgdBB81Z7Zh9RgeJb4Yb35mmAFdF/5c3r3aEI
 MqRtXIj/uYGiOepwKKcGYShibkg4FRquGeEsame/lVNXgtqfW0PRrGclFW4XBFA=
 =31/7
 -----END PGP SIGNATURE-----

Merge tag '0.5.1'

release 0.5.1

- hotfix for invalid Reject handling

* tag '0.5.1':
  update docs version, add release to changelog
2015-01-29 18:45:17 +01:00
Jan Dittberner 94cf918bac Merge branch 'release/0.5.1' into production
* release/0.5.1:
  update docs version, add release to changelog
  reverted Reject handling in ldaptasks
2015-01-29 18:44:49 +01:00
Jan Dittberner 7e31e8d671 update docs version, add release to changelog 2015-01-29 18:44:42 +01:00
Jan Dittberner 2bca6f687f reverted Reject handling in ldaptasks 2015-01-29 18:41:44 +01:00
Jan Dittberner 5d22e63686 release 0.5.0
- better logging, updated dependencies
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUym/JAAoJEA15HcjXN8HZ9GsIANmCtRQlkuk2GB0kUnM18qu0
 /8pB9X7McSwD8JKbEi8yEu/WY4Dc17s6WELTMkt5RjNGjDDZI0vDSW3QycmnqvP1
 T/zWXT4N3PJVtIV9U2InVzoBhMBONz4E6QXvjagzTwaPtfa8F4aqBiV6yE9bAURL
 Is27Zjjy/7DArHZ8jDAG8/JIPY3ZzxBgrief46p/PhLjq7/xEdQURCHZph+UVDVA
 6hJoQ77X8KFPfCr1EEn+Tu1+1GMPu4JXh+XZOLzjab8HkORtE4/Tjbtw53hAqQV9
 +0Z6pWYPi7C7fAIaB9+E8jCiR8oMgp46Y0RefKl8kwvGlGKYM9xkAnKvbja1oO8=
 =7lQU
 -----END PGP SIGNATURE-----

Merge tag '0.5.0'

release 0.5.0

- better logging, updated dependencies

* tag '0.5.0':
  update version, add release to changelog
2015-01-29 18:37:19 +01:00