tis-remote-repo-conf icon

Remote Repository Configuration

Paquet d'installation silencieuse pour Remote Repository Configuration

1.2-5
System and network
System and network

package           : tis-remote-repo-conf
version           : 1.2-5
architecture      : all
section           : base
priority          : optional
name              : Remote Repository Configuration
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Package for configure an agent to sync wapt files of the server
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : all
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Tranquil IT
keywords          : 
licence           : 
homepage          : https://www.wapt.fr/en/doc/wapt-replication/wapt-replicate-to-multiple-repositories/index.html
package_uuid      : a0178fbc-537e-42e1-bb19-3677054c3fd2
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 1da4f881264d5094b70bcef12c96b588cde497d5386dfdee2e2011021da82a21
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : FZDmynpom6WgdyCt8hqAD0BDItv5HnEQI2OFIsKVeoPnkr7HTatqOXTqFWNmbEf1pxJjmz+nwLHYlLqs9e3vwUPcv6d98pyw3vWkJ1w6bmuBzDj+FaNTWl8yRqU3qRDL7PSe+iHNIYyMQxwEfQnWKHFr4Mk+Mx7wxcbsbluR78ls8RW/xp48QG70ukNDSh0TaU+aRE91bEF0yGMMvz/8gSoXzlttBRKG64HMl3gG6iVx1/D/hq138uh8we99xFgeb7QNgk5W4jekfgNJM51zFhzqjCjLiF/dYrhQWsskoWsZqdQ/wFReiKXp+PUKpvIhOun6oQT2A3spZoAU+uy6qg==
signature_date    : 2021-10-12T09:55:41.428135
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *

""" 
PLEASE READ THE DOCUMENTATION BEFORE

FRENCH DOCUMENTATION : https://www.wapt.fr/fr/doc/wapt-replication/wapt-replicate-to-multiple-repositories/index.html

INTERNATIONAL DOCUMENTATION : https://www.wapt.fr/en/doc/wapt-replication/wapt-replicate-to-multiple-repositories/index.html

CHANGE ONLY VALUES IN THE CONF DICT

"""


def install():
    # Declaring local variables

    conf = {
    'enable_remote_repo': True,
    # Active sync / Default value : False
    'local_repo_path': None,
    # Path where the sync is / Default value : "<wapt_path>/repository" / Example value : "/var/www/html/" for a linux
    'local_repo_sync_task_period': None,
    # Synchronization is started periodically so select a period / Default value : '10m' for 10 minutes / Example value : '1d' for one sync by day it's 's' for seconds,'m' for minutes,'h' for hours,'d' for day, 'w' for weeks
    'local_repo_time_for_sync_start': None,
    # Sync will start only after this hour of the day / Default value : None / Example value : '23:00' for sync to be done only after 11PM (it's in format : HH:MM)
    'local_repo_time_for_sync_end': None,
    # Sync will stop after this hour of the day / Default value : None if no 'local_repo_time_for_sync_start' configured else 'local_repo_time_for_sync_start' + 1 hour / Example value : '01:00' with previous example sync will be done every day only between 23PM and 01AM
    'local_repo_limit_bandwidth' : None,
    # Limit for bandwidth to use for repo sync in Mbits/s / Default value : None / Example value :  0.5 for 0.5 Mbits/s (=500KBits/s)
    'remote_repo_dirs' : None,
    # Select what do you want to sync in wapt packages ('wapt'), host packages ('wapt-host') or/and windows-updates ('waptwua') / Default value : "wapt,waptwua" / Example value : "wapt,waptwua,wapt-host"
    }

    inifile_deletesection(WAPT.config_filename,'repo-sync')

    for akey in conf:
        if conf[akey] is not None:
            inifile_writestring(WAPT.config_filename,'repo-sync',akey,conf[akey])


def uninstall():
    # delete synced files uncomment if you want
    #remove_tree(inifile_readstring(WAPT.config_filename,'repo-sync','local_repo_path') or makepath(WAPT.wapt_base_dir,'repository'),ignore_errors=True)

    inifile_deletesection(WAPT.config_filename,'repo-sync')


def update_package():
    pass



01d1abea60a2f5881affde59a5ba46645ecca7738fc16c8b27679c1986647c07 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
1da4f881264d5094b70bcef12c96b588cde497d5386dfdee2e2011021da82a21 : WAPT/icon.png
d9cc5654aa42bc4493106f8fd1af55a9630666e97e7591c3271cb876792c19c7 : WAPT/control