myplc.git
4 months agoegrep is obsolete master
Thierry Parmentelat [Fri, 15 Dec 2023 13:03:33 +0000 (14:03 +0100)]
egrep is obsolete

5 months agoadd FROM_ADDRESS to the usual variables
Thierry Parmentelat [Fri, 3 Nov 2023 13:02:50 +0000 (14:02 +0100)]
add FROM_ADDRESS to the usual variables

5 months agoadd configurable variable PLC_MAIL_FROM_ADDRESS
Thierry Parmentelat [Fri, 3 Nov 2023 12:50:44 +0000 (13:50 +0100)]
add configurable variable PLC_MAIL_FROM_ADDRESS

5 months agotrailing spaces
Thierry Parmentelat [Fri, 3 Nov 2023 12:50:15 +0000 (13:50 +0100)]
trailing spaces

16 months agopackage both systemd timers
Thierry Parmentelat [Sat, 26 Nov 2022 14:10:26 +0000 (15:10 +0100)]
package both systemd timers

try to new plc-dump-db and previously available, but not packaged, renew-reminder

23 months agoanother patch from Thomas
Thierry Parmentelat [Wed, 4 May 2022 14:56:02 +0000 (16:56 +0200)]
another patch from Thomas

23 months agofix bug in specfile when checking for nodemanager; thanks Thomas
Thierry Parmentelat [Tue, 3 May 2022 16:59:17 +0000 (18:59 +0200)]
fix bug in specfile when checking for nodemanager; thanks Thomas

23 months agobuild nodemanager doc only if present
Thierry Parmentelat [Sun, 1 May 2022 16:00:20 +0000 (18:00 +0200)]
build nodemanager doc only if present

23 months agoSetting tag myplc-7.1-0 myplc-7.1-0
Thierry Parmentelat [Sat, 30 Apr 2022 17:44:38 +0000 (19:44 +0200)]
Setting tag myplc-7.1-0
ready on f35

23 months agotry to improve php logging; set error_log in the right section of the .ini; enable...
Thierry Parmentelat [Thu, 28 Apr 2022 11:55:24 +0000 (13:55 +0200)]
try to improve php logging; set error_log in the right section of the .ini; enable display_errors and display_startup_errors

3 years agoremove requirements for a serverside-only build
Thierry Parmentelat [Wed, 11 Nov 2020 16:34:45 +0000 (17:34 +0100)]
remove requirements for a serverside-only build

4 years agogethostbyname written in python3
Thierry Parmentelat [Thu, 27 Feb 2020 14:47:17 +0000 (15:47 +0100)]
gethostbyname written in python3

4 years agosense the system to use gpg1 when installed
Thierry Parmentelat [Thu, 27 Feb 2020 10:52:00 +0000 (11:52 +0100)]
sense the system to use gpg1 when installed

4 years agoa first move towards adopting gpgv2
Thierry Parmentelat [Thu, 27 Feb 2020 10:51:20 +0000 (11:51 +0100)]
a first move towards adopting gpgv2
code for dealing with key generation

which demonstrated that private key storage was completely redone in gpgv2
and so we decide to cautiously back off and fallback to using gpgv1 for now

4 years agoexclude pycached files
Thierry Parmentelat [Wed, 26 Feb 2020 15:39:56 +0000 (16:39 +0100)]
exclude pycached files

4 years agotrigger renew-reminder on a fixed time - still needs to be enabled/started
Thierry Parmentelat [Thu, 13 Jun 2019 06:26:06 +0000 (08:26 +0200)]
trigger renew-reminder on a fixed time - still needs to be enabled/started

4 years agorename script into renew-reminder.py (dash instead of underscore)
Thierry Parmentelat [Tue, 11 Jun 2019 14:55:24 +0000 (16:55 +0200)]
rename script into renew-reminder.py (dash instead of underscore)
added systemctl resources to run this as a systemd timer
also logging is now deferred to journalctl so forget about logrotate

4 years agorewritten renew_reminder script
Thierry Parmentelat [Tue, 11 Jun 2019 14:40:41 +0000 (16:40 +0200)]
rewritten renew_reminder script
previous version was not working after port to python3
---
in addition, a PLCAPI Message is searched with filter
{'message_id': "renew_reminder_addition"}

if found, this is appended to the hard-wired message in renew_reminder

5 years agothe apache 2.2/2.4 compat layer was broken because of apachectl not behaving like...
Thierry Parmentelat [Tue, 9 Apr 2019 13:34:49 +0000 (15:34 +0200)]
the apache 2.2/2.4 compat layer was broken because of apachectl not behaving like it used to

5 years agoSetting tag myplc-7.0-0 python3 myplc-7.0-0
Thierry Parmentelat [Mon, 7 Jan 2019 14:14:17 +0000 (15:14 +0100)]
Setting tag myplc-7.0-0
suitable for python3 on both f27 and f29

5 years agodns-config still had occurrences of file()
parmentelat [Tue, 18 Dec 2018 14:34:30 +0000 (15:34 +0100)]
dns-config still had occurrences of file()

5 years agokillproc no longer available in image
parmentelat [Fri, 14 Dec 2018 12:13:12 +0000 (13:13 +0100)]
killproc no longer available in image

5 years agoopen with mode 'ro' seems undocumented
parmentelat [Fri, 14 Dec 2018 12:06:17 +0000 (13:06 +0100)]
open with mode 'ro' seems undocumented

5 years agooops, one fragment had been oversimplified when porting to python3
parmentelat [Fri, 14 Dec 2018 12:05:53 +0000 (13:05 +0100)]
oops, one fragment had been oversimplified when porting to python3

5 years agoan attempt to fix mtail that had mixed tabs and spaces
parmentelat [Thu, 13 Dec 2018 20:02:08 +0000 (21:02 +0100)]
an attempt to fix mtail that had mixed tabs and spaces

5 years agohttpd config can also deal with the python3 wsgi module
parmentelat [Thu, 13 Dec 2018 20:01:51 +0000 (21:01 +0100)]
httpd config can also deal with the python3 wsgi module

5 years agothis is the python3 branch, so always use python3-mod_wsgi
parmentelat [Thu, 13 Dec 2018 16:36:18 +0000 (17:36 +0100)]
this is the python3 branch, so always use python3-mod_wsgi

5 years agoa little nicer db-config
parmentelat [Thu, 13 Dec 2018 15:11:43 +0000 (16:11 +0100)]
a little nicer db-config

5 years agofix 'make sync'
parmentelat [Thu, 13 Dec 2018 15:04:45 +0000 (16:04 +0100)]
fix 'make sync'

5 years agoautopep8
parmentelat [Thu, 13 Dec 2018 09:28:02 +0000 (10:28 +0100)]
autopep8

5 years agoget rid of the codecs library, that caused bytes vs str issues, for no benefit; means...
parmentelat [Thu, 13 Dec 2018 09:27:55 +0000 (10:27 +0100)]
get rid of the codecs library, that caused bytes vs str issues, for no benefit; means all is utf-8

5 years ago/usr/bin/env python3
parmentelat [Wed, 12 Dec 2018 14:37:20 +0000 (15:37 +0100)]
/usr/bin/env python3

5 years agofix install stage in specfile
parmentelat [Wed, 12 Dec 2018 14:13:10 +0000 (15:13 +0100)]
fix install stage in specfile

5 years ago2to3 on accessory scripts
parmentelat [Wed, 12 Dec 2018 14:08:46 +0000 (15:08 +0100)]
2to3 on accessory scripts

5 years agoremove more refs to python2
parmentelat [Wed, 12 Dec 2018 14:08:15 +0000 (15:08 +0100)]
remove more refs to python2

5 years agouse rpm macro python3_sitelib instead of homebrewed PYTHON_SITEARCH that was for...
parmentelat [Wed, 12 Dec 2018 13:57:24 +0000 (14:57 +0100)]
use rpm macro python3_sitelib instead of homebrewed PYTHON_SITEARCH that was for python2

5 years agoautopep8'ed
parmentelat [Wed, 12 Dec 2018 13:52:08 +0000 (14:52 +0100)]
autopep8'ed

5 years agoinstall in python3 library
parmentelat [Wed, 12 Dec 2018 13:50:12 +0000 (14:50 +0100)]
install in python3 library

5 years ago2to3
parmentelat [Wed, 12 Dec 2018 12:56:45 +0000 (13:56 +0100)]
2to3

5 years agostill on the specfile; rpm doc about subpackages is not too exactly crystal clear..
parmentelat [Mon, 10 Dec 2018 16:25:05 +0000 (17:25 +0100)]
still on the specfile; rpm doc about subpackages is not too exactly crystal clear..

5 years agofix spec
parmentelat [Mon, 10 Dec 2018 14:51:15 +0000 (15:51 +0100)]
fix spec

5 years agofix spec
parmentelat [Mon, 10 Dec 2018 14:46:58 +0000 (15:46 +0100)]
fix spec

5 years agofix spec
parmentelat [Mon, 10 Dec 2018 14:45:03 +0000 (15:45 +0100)]
fix spec

5 years agosplit myplc into myplc-core (api + www only) and myplc proper (which becomes a meta...
parmentelat [Mon, 10 Dec 2018 14:41:24 +0000 (15:41 +0100)]
split myplc into myplc-core (api + www only) and myplc proper (which becomes a meta-package only)

5 years agofixes to the service file; + former stub /etc/init.d/plc becomes /usr/bin/plc-ctl
parmentelat [Mon, 10 Dec 2018 10:14:53 +0000 (11:14 +0100)]
fixes to the service file; + former stub /etc/init.d/plc becomes /usr/bin/plc-ctl

5 years agospaces
parmentelat [Fri, 7 Dec 2018 15:58:02 +0000 (16:58 +0100)]
spaces

5 years agostartup scripts : assume initscripts is not installed, only use systemctl
parmentelat [Fri, 7 Dec 2018 15:57:56 +0000 (16:57 +0100)]
startup scripts : assume initscripts is not installed, only use systemctl

5 years agotweaked service file
parmentelat [Fri, 7 Dec 2018 15:56:57 +0000 (16:56 +0100)]
tweaked service file

5 years agosystemd services go in /usr/lib/systemd/system rather than /lib/<same>
parmentelat [Fri, 7 Dec 2018 15:56:16 +0000 (16:56 +0100)]
systemd services go in /usr/lib/systemd/system rather than /lib/<same>

5 years agomod_wsgi now called python2-mod_wsgi
parmentelat [Fri, 7 Dec 2018 15:55:26 +0000 (16:55 +0100)]
mod_wsgi now called python2-mod_wsgi

6 years agorestart php-fpm if it gets configured
parmentelat [Thu, 8 Mar 2018 13:45:48 +0000 (14:45 +0100)]
restart php-fpm if it gets configured

6 years agofix for configuring php-fpm like php on f27
parmentelat [Thu, 8 Mar 2018 12:08:38 +0000 (13:08 +0100)]
fix for configuring php-fpm like php on f27

6 years agobetter handling of the php-fpm dependency
Thierry Parmentelat [Thu, 22 Feb 2018 07:56:44 +0000 (08:56 +0100)]
better handling of the php-fpm dependency

6 years agoexplicitly enable and start php-fpm when the rpm is found
Thierry Parmentelat [Fri, 16 Feb 2018 13:05:46 +0000 (14:05 +0100)]
explicitly enable and start php-fpm when the rpm is found

6 years agotweak httpd service script for f27 - ${!http_port} issues "bad substitution" in some...
Thierry Parmentelat [Tue, 13 Feb 2018 19:38:39 +0000 (20:38 +0100)]
tweak httpd service script for f27 - ${!http_port} issues "bad substitution" in some new cases

6 years agoreview code for checking certificates
Thierry Parmentelat [Tue, 13 Feb 2018 11:07:33 +0000 (12:07 +0100)]
review code for checking certificates
more robust for spaces around = in fragments like
CN=r2labapi.inria.fr
can now deal with e.g.
CN = r2labapi.inria.fr

6 years agoSetting tag myplc-5.3-4 myplc-5.3-4
Thierry Parmentelat [Sun, 16 Jul 2017 12:17:04 +0000 (14:17 +0200)]
Setting tag myplc-5.3-4
takes care of creating plcapi log file

6 years agotweaks
Thierry Parmentelat [Sun, 16 Jul 2017 12:16:17 +0000 (14:16 +0200)]
tweaks

7 years agohttpd takes care of /var/log/plcapi.log and permissions
Thierry Parmentelat [Wed, 15 Feb 2017 11:23:52 +0000 (12:23 +0100)]
httpd takes care of /var/log/plcapi.log and permissions

8 years agoscript for spotting and trashing zombie containers
Thierry Parmentelat [Thu, 29 Oct 2015 21:34:29 +0000 (22:34 +0100)]
script for spotting and trashing zombie containers

9 years agoSetting tag myplc-5.3-3 myplc-5.3-3
Thierry Parmentelat [Wed, 18 Feb 2015 10:17:21 +0000 (11:17 +0100)]
Setting tag myplc-5.3-3
tweaked renew_reminder for federation

9 years agotweaked renew_reminder so that sfa_created persons don't receive such mails
Thierry Parmentelat [Mon, 8 Dec 2014 14:30:29 +0000 (15:30 +0100)]
tweaked renew_reminder so that sfa_created persons don't receive such mails

10 years agoSetting tag myplc-5.3-2 myplc-5.3-2
Thierry Parmentelat [Fri, 21 Mar 2014 15:14:31 +0000 (16:14 +0100)]
Setting tag myplc-5.3-2
tweaks in check-hrns.py
do not require PyXML any more

10 years agoMerge branch 'master' of ssh://git.onelab.eu/git/myplc
Thierry Parmentelat [Thu, 9 Jan 2014 11:46:05 +0000 (12:46 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/myplc

10 years agoturn off dependency to PyXML (which belonged in plcapi amyway)
Thierry Parmentelat [Thu, 9 Jan 2014 11:45:52 +0000 (12:45 +0100)]
turn off dependency to PyXML (which belonged in plcapi amyway)

10 years agocheck-hrns.py: Ciro fix
Mohamed Larabi [Fri, 13 Dec 2013 15:50:13 +0000 (16:50 +0100)]
check-hrns.py: Ciro fix

10 years agocheck-hrn.py keeps silent unless option verbose is set
Mohamed Larabi [Fri, 13 Dec 2013 09:04:57 +0000 (10:04 +0100)]
check-hrn.py keeps silent unless option verbose is set

10 years agoSetting tag myplc-5.3-1 myplc-5.3-1
Thierry Parmentelat [Tue, 10 Dec 2013 07:42:56 +0000 (08:42 +0100)]
Setting tag myplc-5.3-1
review check-hrns for plcapi-5.3
add PLC_HRN_ROOT in usual plc-config-tty's settings

10 years agobump version to 5.3
Thierry Parmentelat [Tue, 10 Dec 2013 07:35:48 +0000 (08:35 +0100)]
bump version to 5.3

10 years agocheck_hrns.py: external Sites are tagged with sfa_created=='True'
Mohamed Larabi [Thu, 5 Dec 2013 12:58:39 +0000 (13:58 +0100)]
check_hrns.py: external Sites are tagged with sfa_created=='True'

10 years agoremove check-hrns from the PLC startup sequence
Mohamed Larabi [Wed, 13 Nov 2013 14:00:53 +0000 (15:00 +0100)]
remove check-hrns from the PLC startup sequence

10 years agoAdd PLC_HRN_ROOT to usual config variables
Mohamed Larabi [Tue, 12 Nov 2013 16:28:26 +0000 (17:28 +0100)]
Add PLC_HRN_ROOT to usual config variables

10 years agocheck-hrns: slice_ids needs to be in GetSites return values
Mohamed Larabi [Tue, 12 Nov 2013 16:17:50 +0000 (17:17 +0100)]
check-hrns: slice_ids needs to be in GetSites return values

10 years agocheck-hrns: Rollback and use SFA_HRN_ROOT as toplevel
Mohamed Larabi [Tue, 12 Nov 2013 15:51:37 +0000 (16:51 +0100)]
check-hrns: Rollback and use SFA_HRN_ROOT as toplevel

10 years agoCheck/Set HRNs of Sites/Slices/Persons at PLC startup
Mohamed Larabi [Tue, 12 Nov 2013 14:36:41 +0000 (15:36 +0100)]
Check/Set HRNs of Sites/Slices/Persons at PLC startup

10 years agocheck-hrns: Use SFA_INTERFACE_HRN as toplevel if possible
Mohamed Larabi [Tue, 12 Nov 2013 14:35:02 +0000 (15:35 +0100)]
check-hrns: Use SFA_INTERFACE_HRN as toplevel if possible

10 years agocheck-hrns: 2nd pass fixes
Mohamed Larabi [Thu, 7 Nov 2013 16:53:08 +0000 (17:53 +0100)]
check-hrns: 2nd pass fixes

10 years agocheck-hrns: external sites starts with "sfa:"
Mohamed Larabi [Thu, 7 Nov 2013 15:39:29 +0000 (16:39 +0100)]
check-hrns: external sites starts with "sfa:"

10 years agoCheck/set Sites HRN
Mohamed Larabi [Mon, 4 Nov 2013 11:36:08 +0000 (12:36 +0100)]
Check/set Sites HRN

10 years agoSetting tag myplc-5.2-5 myplc-5.2-5 myplc-5.3-0 myplc-5.3.0
Thierry Parmentelat [Thu, 10 Oct 2013 15:46:27 +0000 (17:46 +0200)]
Setting tag myplc-5.2-5
reduce the scope of check-hrns.py script, now that the SFA layer handles this natively
add an rpm-sign dependency on feedora>=16

10 years agoExcluse external sites created through sfa from the HRN check.
Mohamed Larabi [Thu, 10 Oct 2013 14:16:09 +0000 (16:16 +0200)]
Excluse external sites created through sfa from the HRN check.
Check slice HRN as well.

10 years agoadd dep. to rpm-sign - cleanup cron-related business only relevant for old distros
Thierry Parmentelat [Tue, 8 Oct 2013 10:01:25 +0000 (12:01 +0200)]
add dep. to rpm-sign - cleanup cron-related business only relevant for old distros

10 years agoSetting tag myplc-5.2-4 myplc-5.2-4
Thierry Parmentelat [Fri, 28 Jun 2013 06:02:44 +0000 (08:02 +0200)]
Setting tag myplc-5.2-4
drop PLC_OMF_XMPP_{USER,PASSWORD} from config

10 years agodrop PLC_OMF_XMPP_USER and PLC_OMF_XMPP_PASSWORD from config
Thierry Parmentelat [Thu, 27 Jun 2013 18:16:21 +0000 (20:16 +0200)]
drop PLC_OMF_XMPP_USER and PLC_OMF_XMPP_PASSWORD from config

11 years agoSetting tag myplc-5.2-3 myplc-5.2-3
Thierry Parmentelat [Tue, 23 Apr 2013 09:47:41 +0000 (11:47 +0200)]
Setting tag myplc-5.2-3
plc.d/gpg now does not rm /dev/random but preserves it
this is because libvirt won't let us run mknod

11 years agoMerge branch 'master' of ssh://git.onelab.eu/git/myplc
Thierry Parmentelat [Mon, 22 Apr 2013 12:49:39 +0000 (14:49 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/myplc

11 years agoworkaround for dealing with /dev/random /dev/urandom in a libvirt environment that...
Thierry Parmentelat [Mon, 22 Apr 2013 12:49:31 +0000 (14:49 +0200)]
workaround for dealing with /dev/random /dev/urandom in a libvirt environment that, as of 1.0.4, doesn't allow mknod at all
https://www.redhat.com/archives/libvirt-users/2013-April/msg00163.html

11 years agoSetting tag myplc-5.2-2 myplc-5.2-2
Thierry Parmentelat [Wed, 10 Apr 2013 09:40:26 +0000 (11:40 +0200)]
Setting tag myplc-5.2-2
fix typo in check-hrns - used to print 'host' while dealing with persons

11 years agoMerge branch 'master' of ssh://git.onelab.eu/git/myplc
Thierry Parmentelat [Wed, 3 Apr 2013 13:04:20 +0000 (15:04 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/myplc

11 years agocosmetic
Thierry Parmentelat [Wed, 3 Apr 2013 12:38:14 +0000 (14:38 +0200)]
cosmetic

11 years agoSetting tag myplc-5.2-1 myplc-5.2-1
Thierry Parmentelat [Thu, 7 Mar 2013 07:45:17 +0000 (08:45 +0100)]
Setting tag myplc-5.2-1
supports httpd config for either mod_python (preferred) or mod_wsgi
requires mod_wsgi on f18 only, otherwise mod_python
supports httpd config for apache 2.4 (f18)
new config variable PLC_FLAVOUR_VIRT_MAP to set 'virt' from fcdistro

11 years agoopen up /var/log/bm to php so upload-bmlog.php works again
Thierry Parmentelat [Thu, 28 Feb 2013 10:18:19 +0000 (11:18 +0100)]
open up /var/log/bm to php so upload-bmlog.php works again

11 years agobump major to 5.2
Thierry Parmentelat [Wed, 27 Feb 2013 06:34:56 +0000 (07:34 +0100)]
bump major to 5.2

11 years agointroduce PLC_FLAVOUR_VIRT_MAP
Thierry Parmentelat [Tue, 26 Feb 2013 16:10:50 +0000 (17:10 +0100)]
introduce PLC_FLAVOUR_VIRT_MAP

11 years agoforget about ifmodule, use rpm to figure if mod_python/mod_wsgi are
Thierry Parmentelat [Sat, 16 Feb 2013 10:18:22 +0000 (11:18 +0100)]
forget about ifmodule, use rpm to figure if mod_python/mod_wsgi are
installed

11 years agospecfile requires mod_python up to f16, mod_wsgi above
Thierry Parmentelat [Fri, 15 Feb 2013 16:23:14 +0000 (17:23 +0100)]
specfile requires mod_python up to f16, mod_wsgi above

11 years agohttpd creates a plc.conf that can work with mod_python or mod_wsgi
Thierry Parmentelat [Fri, 15 Feb 2013 16:22:48 +0000 (17:22 +0100)]
httpd creates a plc.conf that can work with mod_python or mod_wsgi
the logic as it is now is to prefer mod_python since that's what
appears to be the most stable

11 years agocosmetic
Thierry Parmentelat [Tue, 12 Feb 2013 19:59:18 +0000 (20:59 +0100)]
cosmetic

11 years agoknows about apache 2.4 new access scheme
Thierry Parmentelat [Wed, 6 Feb 2013 15:23:41 +0000 (16:23 +0100)]
knows about apache 2.4 new access scheme
http://httpd.apache.org/docs/2.4/upgrading.html#access

11 years agobetter varname
Thierry Parmentelat [Wed, 6 Feb 2013 15:11:45 +0000 (16:11 +0100)]
better varname