Skip to content

Commit

Permalink
Rename and replace pulse* into medulla
Browse files Browse the repository at this point in the history
  • Loading branch information
neoclust committed Apr 29, 2024
1 parent 962019d commit 2fb5ad8
Show file tree
Hide file tree
Showing 680 changed files with 2,664 additions and 2,664 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions services/INSTALL.imaging-server
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Manual install :

- create the following tree :
(FIXME: /usr/lib/pulse2/imaging)
- export folder /var/lib/pulse2/imaging throught NFS (async, rw, subtree_check)
- install src/pulse2-imaging-server under /usr/sbin/
- install init.d/pulse2-imaging-server under /etc/init.d/
- install contrib/skel into /usr/lib/pulse2/imaging/skel
- install conf/pulse2/imaging-server/imaging-server.ini under /etc/mmc/conf/pulse2/imaging-server/
(FIXME: /usr/lib/medulla/imaging)
- export folder /var/lib/medulla/imaging throught NFS (async, rw, subtree_check)
- install src/medulla-imaging-server under /usr/sbin/
- install init.d/medulla-imaging-server under /etc/init.d/
- install contrib/skel into /usr/lib/medulla/imaging/skel
- install conf/medulla/imaging-server/imaging-server.ini under /etc/mmc/conf/medulla/imaging-server/
- install helpers into /usr/lib
/pulse2/imaging
/medulla/imaging
4 changes: 2 additions & 2 deletions services/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# $Id$
#
# This file is part of Mandriva Pulse2 project.
# This file is part of Mandriva Medulla2 project.
#
# This software is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -20,4 +20,4 @@
# Author(s):
# Jean Parpaillon <jparpaillon@mandriva.com>
#
SUBDIRS = init.d bin contrib mmc pulse2 conf
SUBDIRS = init.d bin contrib mmc medulla conf
22 changes: 11 additions & 11 deletions services/bin/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# (c) 2011-2012 Mandriva, http://www.mandriva.com
#
# This file is part of Mandriva Pulse2 project.
# This file is part of Mandriva Medulla2 project.
#
# This software is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -18,16 +18,16 @@
# Author(s):
# Jean Parpaillon <jparpaillon@mandriva.com>
#
dist_sbin_SCRIPTS = pulse2-package-server pulse2-package-server-register-imaging \
pulse2-inventory-server \
pulse2-packageparser.py pulse2-setup pulse2-load-defaults \
pulse2-extract-glpi-search-options \
pulse2-backup-servers pulse2-debug pulse2-dbupdate pulse2-migration_old_package.py\
pulse2-msc-clean-database pulse2-inventory-clean-database message-sender.py\
pulse2-collect-info pulse2-create-group pulse2-register-pxe.py \
pulse2-connect-machine-backuppc pulse2-disconnect-machine-backuppc \
restart-pulse-services pulse2-inscription_packages_in_base.py pulse2-generation_package.py \
dist_sbin_SCRIPTS = medulla-package-server medulla-package-server-register-imaging \
medulla-inventory-server \
medulla-packageparser.py medulla-setup medulla-load-defaults \
medulla-extract-glpi-search-options \
medulla-backup-servers medulla-debug medulla-dbupdate medulla-migration_old_package.py\
medulla-msc-clean-database medulla-inventory-clean-database message-sender.py\
medulla-collect-info medulla-create-group medulla-register-pxe.py \
medulla-connect-machine-backuppc medulla-disconnect-machine-backuppc \
restart-medulla-services medulla-inscription_packages_in_base.py medulla-generation_package.py \
medulla-generate-update-package.py medulla-mariadb-move-update-package.py \
medulla_mysql_exec_update.sh medulla_mysql_exec_uninstall_unnecessary_update_package.sh

dist_bin_SCRIPTS = pulse2-uuid-resolver pulse2-backup-handler pulse2-synch-masters
dist_bin_SCRIPTS = medulla-uuid-resolver medulla-backup-handler medulla-synch-masters
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from distutils.core import setup

setup(service=["pulse2-inventory-ssl-proxy-win32"])
setup(service=["medulla-inventory-ssl-proxy-win32"])
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from distutils.core import setup

setup(service=["pulse2-package-server-win32"])
setup(service=["medulla-package-server-win32"])
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/sbin/pulse2-debug
#!/usr/sbin/medulla-debug
import sys, subprocess

def runInShell(cmd):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
#
# (c) 2008-2012 Mandriva, http://www.mandriva.com/
#
# This file is part of Pulse 2, http://pulse2.mandriva.org
# This file is part of Medulla 2, http://medulla.mandriva.org
#
# Pulse 2 is free software; you can redistribute it and/or modify
# Medulla 2 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 2 of the License, or
# (at your option) any later version.
#
# Pulse 2 is distributed in the hope that it will be useful,
# Medulla 2 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 Pulse 2; if not, write to the Free Software
# along with Medulla 2; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

"""
Little script to manage backuppc servers of the Pulse 2 backuppc module
Little script to manage backuppc servers of the Medulla 2 backuppc module
"""

import sys
Expand Down
20 changes: 10 additions & 10 deletions services/bin/pulse2-cm → services/bin/medulla-cm
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
#
# (c) 2014 Mandriva, http://www.mandriva.com/
#
# This file is part of Pulse 2, http://pulse2.mandriva.org
# This file is part of Medulla 2, http://medulla.mandriva.org
#
# Pulse 2 is free software; you can redistribute it and/or modify
# Medulla 2 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 2 of the License, or
# (at your option) any later version.
#
# Pulse 2 is distributed in the hope that it will be useful,
# Medulla 2 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 Pulse 2; if not, write to the Free Software
# along with Medulla 2; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

Expand All @@ -29,8 +29,8 @@ import logging.config
from twisted.internet import reactor

from mmc.site import mmcconfdir
from pulse2.cm.config import Config
from pulse2.cm.control import Dispatcher
from medulla.cm.config import Config
from medulla.cm.control import Dispatcher


def running(cfgfile, daemonize):
Expand Down Expand Up @@ -72,15 +72,15 @@ def running(cfgfile, daemonize):

def daemon(pidfile):
"""
daemonize pulse2-cm
daemonize medulla-cm
@param pidfile: path to pid file
@type pidfile: str
"""

# Test if mmcagent has been already launched in daemon mode
if os.path.isfile(pidfile):
print pidfile+" pid already exist. Maybe pulse2-cm is already running\n"
print pidfile+" pid already exist. Maybe medulla-cm is already running\n"
print "use /etc/init.d script to stop and relaunch it"
sys.exit(0)

Expand Down Expand Up @@ -119,7 +119,7 @@ def daemon(pidfile):

def cleanUp(pidfile):
logger = logging.getLogger()
logger.info('Pulse 2 Connection Manager shutting down, cleaning up...')
logger.info('Medulla 2 Connection Manager shutting down, cleaning up...')

# Unlink pidfile if it exists
if os.path.isfile(pidfile):
Expand All @@ -130,7 +130,7 @@ def cleanUp(pidfile):

if __name__ == "__main__":

cfgfile = os.path.join(mmcconfdir, "pulse2", "cm", "cm.ini")
cfgfile = os.path.join(mmcconfdir, "medulla", "cm", "cm.ini")

try:
opts, suivarg = getopt.getopt(sys.argv[1:], "f:d")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
#
# (c) 20118 Siveo, http://www.siveo.net
#
# This file is part of Pulse 2
# This file is part of Medulla 2
#
# Pulse 2 is free software; you can redistribute it and/or modify
# Medulla 2 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 2 of the License, or
# (at your option) any later version.
#
# Pulse 2 is distributed in the hope that it will be useful,
# Medulla 2 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 Pulse 2; if not, write to the Free Software
# along with Medulla 2; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

ARCHIVE_PATH=$1

PULSE2_COLLECT_INFO_DIR="/tmp/pulse2-collect-info"
PULSE2_COLLECT_INFO_DIR="/tmp/medulla-collect-info"

# Creates a work directory
if [ ! -d "$PULSE2_COLLECT_INFO_DIR" ];then
Expand All @@ -35,38 +35,38 @@ if [ "$(ls -A $DIR)" ]; then
fi
# Several info placed in text files
[ -x /usr/bin/lsb_release ] && lsb_release -a > os-info || cat /etc/redhat-release > os-info
[ -x /usr/bin/dpkg ] && /usr/bin/dpkg -l | egrep '(mmc|pulse2)' > pulse-packages || /usr/bin/rpm -qa | egrep '(mmc|pulse2)' > pulse-packages
[ -x /usr/bin/dpkg ] && /usr/bin/dpkg -l | egrep '(mmc|medulla)' > medulla-packages || /usr/bin/rpm -qa | egrep '(mmc|medulla)' > medulla-packages
[ -x /usr/bin/dpkg ] && /usr/bin/dpkg -l > all-packages || /usr/bin/rpm -qa > all-packages
lsmod > loaded-modules
sysctl -a > kernel-parameters
cp /etc/hosts .
cp /etc/fstab .

# Configuration file
[ -f /var/lib/pulse2/install_manifest ] && ln -s /var/lib/pulse2/install_manifest install_manifest
[ -f /var/lib/medulla/install_manifest ] && ln -s /var/lib/medulla/install_manifest install_manifest
[ -d /etc/ufw/ ] && ln -s /etc/ufw conf-ufw
[ -f /var/lib/syncthing-depl/.config/syncthing/config.xml ] && ln -s /var/lib/syncthing-depl/.config/syncthing/config.xml conf-syncthing-depl.xml
[ -f /var/lib/syncthing/.config/syncthing/config.xml ] && ln -s /var/lib/syncthing/.config/syncthing/config.xml conf-syncthing.xml
[ -d /etc/my.cnf.d/ ] && ln -s /etc/my.cnf.d conf-mariadb
[ -d /etc/shorewall/ ] && ln -s /etc/shorewall conf-shorewall
[ -d /etc/samba/ ] && ln -s /etc/samba conf-samba
[ -d /etc/grafana/ ] && ln -s /etc/grafana conf-grafana
ln -s /etc/pulse-xmpp-agent-substitute conf-relay-agent-substitute
ln -s /etc/medulla-agent-substitute conf-relay-agent-substitute
ln -s /etc/mmc conf-mmc
ln -s /etc/pulse-xmpp-agent conf-relay-agent
ln -s /etc/medulla-agent conf-relay-agent
ln -s /etc/ejabberd conf-ejabberd
[ -d /etc/glpi ] && ln -s /etc/glpi conf-glpi
[ -x /sbin/guacd ] && ln -s /etc/guacamole conf-guacamole
[ -x /usr/sbin/apache2 ] && ln -s /etc/apache2 conf-apache2 || ln -s /etc/httpd conf-httpd
mkdir conf-php
[ -x /usr/sbin/apache2 ] && cp -a /etc/php/7.0/apache2/* conf-php/ || cp -a /etc/php.* conf-php/
[ -x /etc/init.d/tomcat8 ] && ln -s /etc/tomcat8 conf-tomcat8 || ln -s /etc/tomcat conf-tomcat
ln -s /var/lib/pulse2/clients/config conf-client-agent
ln -s /var/lib/medulla/clients/config conf-client-agent

# Logs file
ln -s /var/log/ejabberd logs-ejabberd
ln -s /var/log/mmc logs-mmc
ln -s /var/log/pulse logs-pulse-xmpp-agent
ln -s /var/log/medulla logs-medulla-agent
[ -f /var/log/ldap.log ] && ln -s /var/log/ldap.log logs-ldap
[ -d /var/log/grafana/ ] && ln -s /var/log/grafana logs-grafana
[ -d /var/log/mariadb/ ] && ln -s /var/log/mariadb logs-mariadb
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-

#dans git ./pulse/pulse2/services/bin/pulse2-scheduler
#dans git ./medulla/medulla/services/bin/medulla-scheduler


from multiprocessing.managers import SyncManager
Expand All @@ -23,11 +23,11 @@ def conffilename( type ):
else:
conffilenameparamter = "relayconf.ini.local"
if sys.platform.startswith('linux'):
fileconf = os.path.join("/", "etc" ,"pulse-xmpp-agent", conffilenameparamter)
fileconf = os.path.join("/", "etc" ,"medulla-agent", conffilenameparamter)
elif sys.platform.startswith('win'):
fileconf = os.path.join(os.environ["ProgramFiles"], "Pulse", "etc", conffilenameparamter)
fileconf = os.path.join(os.environ["ProgramFiles"], "Medulla", "etc", conffilenameparamter)
elif sys.platform.startswith('darwin'):
fileconf = os.path.join("/", "Library", "Application Support", "Pulse", "etc", conffilenameparamter)
fileconf = os.path.join("/", "Library", "Application Support", "Medulla", "etc", conffilenameparamter)
else:
fileconf = conffilenameparamter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
#
# (c) 2014 Mandriva, http://www.mandriva.com/
#
# This file is part of Pulse 2, http://pulse2.mandriva.org
# This file is part of Medulla 2, http://medulla.mandriva.org
#
# Pulse 2 is free software; you can redistribute it and/or modify
# Medulla 2 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 2 of the License, or
# (at your option) any later version.
#
# Pulse 2 is distributed in the hope that it will be useful,
# Medulla 2 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 Pulse 2. If not, see <http://www.gnu.org/licenses/>.
# along with Medulla 2. If not, see <http://www.gnu.org/licenses/>.

"""A simple script to create an user group"""

Expand Down
10 changes: 5 additions & 5 deletions services/bin/pulse2-dbupdate → services/bin/medulla-dbupdate
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
# Jean Parpaillon <jparpaillon@mandriva.com>
# Jean-Philippe Braun <jpbraun@mandriva.com>
#
# This file is part of Pulse 2, http://pulse2.mandriva.org
# This file is part of Medulla 2, http://medulla.mandriva.org
#
# Pulse 2 is free software; you can redistribute it and/or modify
# Medulla 2 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 2 of the License, or
# (at your option) any later version.
#
# Pulse 2 is distributed in the hope that it will be useful,
# Medulla 2 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 Pulse 2. If not, see <http://www.gnu.org/licenses/>.
# along with Medulla 2. If not, see <http://www.gnu.org/licenses/>.

""" Database version detect and update """

Expand All @@ -30,7 +30,7 @@ from optparse import OptionParser

from mmc.database.ddl import DBControl

log = logging.getLogger("pulse2-dbupdate")
log = logging.getLogger("medulla-dbupdate")

def db_update(options):
"""
Expand Down
Loading

0 comments on commit 2fb5ad8

Please sign in to comment.