Esempio n. 1
0
   You may obtain a copy of the License at
       http://www.apache.org/licenses/LICENSE-2.0
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Title 			: dtnrm
Author			: Justas Balcas
Email 			: justas.balcas (at) cern.ch
@Copyright		: Copyright (C) 2019 California Institute of Technology
Date			: 2019/05/26
"""
from setuptools import setup
from setupUtilities import list_packages, get_py_modules

setup(
    name='DTNRM-Utilities',
    version="0.1",
    long_description="DTN-RM Utilities Installation",
    author="Justas Balcas",
    author_email="*****@*****.**",
    url="http://hep.caltech.edu",
    download_url="https://github.com/sdn-sense/dtnrm-utilities",
    keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
    install_requires=['pyOpenSSL==0.13.1'],
    package_dir={'': 'src/python/'},
    packages=['DTNRMLibs'] + list_packages(['src/python/DTNRMLibs/']),
    py_modules=get_py_modules(['src/python/DTNRMLibs']),
)
Esempio n. 2
0
from setupUtilities import getConfig, createDirs
from setupUtilities import createAllDirsFromConfig

CONFIG = None
CONFIG_LOCATION = []
if os.path.isfile('/etc/dtnrm/main.conf'):
    CONFIG_LOCATION.append('/etc/dtnrm/main.conf')
else:
    CONFIG_LOCATION.append('packaging/dtnrm-site-agent/dtnrmagent.conf')

CONFIG = getConfig(CONFIG_LOCATION)
MAINDIR = CONFIG.get('general', 'private_dir')
createAllDirsFromConfig(CONFIG, MAINDIR)
RAWCONFIGS = "%s/%s/" % (MAINDIR, "rawConfigs")
createDirs(RAWCONFIGS)

setup(
    name='DTNRMAgent-NetTester',
    version="0.1",
    long_description="DTN-RM Agent NetTester",
    author="Justas Balcas",
    author_email="*****@*****.**",
    url="http://hep.caltech.edu",
    download_url="https://github.com/sdn-sense/dtnrm-nettester-plugin",
    keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
    package_dir={'': 'src/python/'},
    packages=['DTNRMNetTester'] + list_packages(['src/python/DTNRMNetTester/']),
    data_files=[("/opt/sense-client", glob.glob("packaging/sense-client/*"))],
    py_modules=get_py_modules(['src/python/DTNRMNetTester']),
)
Esempio n. 3
0
    CONFIG_LOCATION.append('/etc/dtnrm/main.conf')
else:
    CONFIG_LOCATION.append('packaging/dtnrm-site-agent/main.conf')

CONFIG = getConfig(CONFIG_LOCATION)
MAINDIR = CONFIG.get('general', 'private_dir')
createAllDirsFromConfig(CONFIG, MAINDIR)
RAWCONFIGS = "%s/%s/" % (MAINDIR, "rawConfigs")
createDirs(RAWCONFIGS)

setup(name='DTNRMAgent',
      version="0.1",
      long_description="DTN-RM Agent installation",
      author="Justas Balcas",
      author_email="*****@*****.**",
      url="http://hep.caltech.edu",
      download_url="https://github.com/sdn-sense/dtnrm-agent",
      keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
      package_dir={'': 'src/python/'},
      packages=['DTNRMAgent'] + list_packages(['src/python/DTNRMAgent/']),
      install_requires=[
          'importlib==1.0.4', 'psutil==5.2.2', 'potsdb', 'ipaddress',
          'pyroute2'
      ],
      data_files=[("%s/dtnrm/" % BASEPATH, CONFIG_LOCATION)],
      py_modules=get_py_modules(['src/python/DTNRMAgent']),
      scripts=[
          "packaging/dtnrm-site-agent/dtnrmagent-update",
          "packaging/dtnrm-site-agent/dtnrm-ruler"
      ])
Esempio n. 4
0
for sectionName in ['LookUpService', 'PolicyService', 'ProvisioningService']:
    SCRIPTS.append('packaging/dtnrm-site-fe/centos7/%s-update' % sectionName)

if "--docker" in sys.argv:
    sys.argv.remove("--docker")
setup(name='DTNRMSiteFE',
      version="%s" % VERSION,
      long_description="DTN-RM Site installation",
      author="Justas Balcas",
      author_email="*****@*****.**",
      url="https://hep.caltech.edu",
      download_url="https://github.com/sdn-sense/siterm/tarball/0.1",
      keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
      package_dir={'': 'src/python/'},
      packages=['SiteFE', 'DTNRMLibs'] +
      list_packages(['src/python/SiteFE/', 'src/python/DTNRMLibs/']),
      install_requires=[
          'pyparsing', 'rdflib', 'importlib', 'setuptools', 'future',
          'simplejson', 'mod-wsgi', 'prometheus-client', 'python-dateutil',
          'pyaml', 'requests', 'pycurl', 'pyOpenSSL', 'mariadb==1.0.8',
          'cryptography==3.2.1', 'wheel'
      ],
      data_files=[
          ("/var/www/wsgi-scripts/", ["packaging/dtnrm-site-fe/sitefe.wsgi"]),
          ("/etc/httpd/conf.d/", [
              "packaging/dtnrm-site-fe/sitefe-httpd.conf",
              "packaging/dtnrm-site-fe/welcome.conf"
          ]), ("/etc/cron.d/", ["packaging/dtnrm-site-fe/siterm-crons"]),
          ("/etc/cron-scripts/", [
              "packaging/general/siterm-ca-cron.sh",
              "packaging/general/siterm-autoupdate.py"
Esempio n. 5
0
from setuptools import setup
from setupUtilities import list_packages, get_py_modules, VERSION

if "--docker" in sys.argv:
    sys.argv.remove("--docker")
setup(name='DTNRMAgent',
      version="%s" % VERSION,
      long_description="DTN-RM Agent installation",
      author="Justas Balcas",
      author_email="*****@*****.**",
      url="https://hep.caltech.edu",
      download_url="https://github.com/sdn-sense/siterm",
      keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
      package_dir={'': 'src/python/'},
      packages=['DTNRMAgent', 'DTNRMLibs'] +
      list_packages(['src/python/DTNRMAgent/', 'src/python/DTNRMLibs/']),
      install_requires=[
          'importlib', 'psutil', 'ipaddress', 'pyroute2', 'pyaml', 'pyshark',
          'iperf3', 'pycurl', 'requests', 'netifaces', 'future', 'simplejson'
      ],
      data_files=[("/etc/cron.d/", ["packaging/dtnrm-site-agent/siterm-crons"
                                    ]),
                  ("/etc/cron-scripts/", [
                      "packaging/general/siterm-ca-cron.sh",
                      "packaging/general/siterm-autoupdate.py"
                  ])],
      py_modules=get_py_modules(
          ['src/python/DTNRMAgent', 'src/python/DTNRMLibs']),
      scripts=[
          "packaging/dtnrm-site-agent/dtnrmagent-update",
          "packaging/dtnrm-site-agent/dtnrm-ruler",
Esempio n. 6
0
#!/usr/bin/python
import os
from distutils.core import setup
from setupUtilities import list_packages, get_py_modules

CONFIG = [('/etc/', ['packaging/t2_maitenance.conf'])]

if os.path.isfile('/etc/t2_maitenance.conf'):
    CONFIG = []

setup(name='t2Mon',
      version='0.1',
      description='T2 Monitoring scripts',
      author='Justas Balcas',
      author_email='*****@*****.**',
      url='https://github.com/jbalcas/T2_SCRIPTS',
      packages=['t2Mon'] + list_packages(['src/python/t2Mon/']),
      py_modules=get_py_modules(['src/python/t2Mon']),
      install_requires=['potsdb'],
      package_dir={'': 'src/python/'},
      data_files=CONFIG,
      scripts=[
          "src/executors/namenode-mon", "src/executors/gridftp-mon",
          "src/executors/xrootd-mon", "src/executors/hdfs-mailer",
          "src/executors/xcache-mon"
      ])
Esempio n. 7
0
    if sectionName in [
            'LookUpService', 'PolicyService', 'ProvisioningService'
    ]:
        SCRIPTS.append('packaging/dtnrm-site-fe/centos7/%s-update' %
                       sectionName)

setup(name='DTNRMSiteFE',
      version="0.1",
      long_description="DTN-RM Site installation",
      author="Justas Balcas",
      author_email="*****@*****.**",
      url="http://hep.caltech.edu",
      download_url="https://github.com/juztas/dtnrm/tarball/0.1",
      keywords=['DTN-RM', 'system', 'monitor', 'SDN', 'end-to-end'],
      package_dir={'': 'src/python/'},
      packages=['SiteFE'] + list_packages(['src/python/SiteFE/']),
      install_requires=[
          'rdflib==4.2.2', 'importlib==1.0.4', 'setuptools==39.1.0',
          'python-dateutil==2.7.5'
      ],
      data_files=[("/etc/", CONFIG_LOCATION),
                  (RAWCONFIGS, ["packaging/dtnrm-site-fe/sitefe-httpd.conf"]),
                  ("/var/www/wsgi-scripts/",
                   ["packaging/dtnrm-site-fe/sitefe.wsgi"]),
                  ("/etc/httpd/conf.d/", [
                      "packaging/dtnrm-site-fe/sitefe-httpd.conf",
                      "packaging/dtnrm-site-fe/welcome.conf"
                  ])],
      py_modules=get_py_modules(['src/python/SiteFE/',
                                 'src/python/DTNRMLibs']),
      scripts=SCRIPTS)