tis-puppet-agent

8.10.0-1
Puppet est un framework flexible et personnalisable, disponible sous la licence Apache 2.0, conçu pour aider les administrateurs système à automatiser les nombreuses tâches répétitives qu'ils effectuent régulièrement
753 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-puppet-agent icon
  • package : tis-puppet-agent
  • name : Puppet Agent
  • version : 8.10.0-1
  • categories :
  • maintainer : Amel FRADJ
  • editor :
  • licence : Apache License 2.0
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-10-27 22:03
  • size : 45.71 Mo
  • homepage : https://www.puppet.com/community/open-source
package           : tis-puppet-agent
version           : 8.10.0-1
architecture      : x64
section           : base
priority          : optional
name              : Puppet Agent
categories        : 
maintainer        : Amel FRADJ
description       : Puppet is a flexible, customizable framework available under the Apache 2.0 license designed to help system administrators automate the many repetitive tasks they regularly perform
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Puppet est un framework flexible et personnalisable, disponible sous la licence Apache 2.0, conçu pour aider les administrateurs système à automatiser les nombreuses tâches répétitives qu'ils effectuent régulièrement
description_pl    : Puppet to elastyczny, konfigurowalny framework dostępny na licencji Apache 2.0, zaprojektowany, aby pomóc administratorom systemów zautomatyzować wiele powtarzalnych zadań, które regularnie wykonują
description_de    : Puppet ist ein flexibles, anpassbares Framework, das unter der Apache 2.0-Lizenz verfügbar ist und Systemadministratoren dabei helfen soll, die vielen sich wiederholenden Aufgaben zu automatisieren, die sie regelmäßig ausführen
description_es    : Puppet es un marco de trabajo flexible y personalizable, disponible bajo licencia Apache 2.0, diseñado para ayudar a los administradores de sistemas a automatizar las numerosas tareas repetitivas que realizan habitualmente
description_pt    : O Puppet é uma estrutura flexível e personalizável disponível sob a licença Apache 2.0, concebida para ajudar os administradores de sistemas a automatizar as muitas tarefas repetitivas que realizam regularmente
description_it    : Puppet è un framework flessibile e personalizzabile, disponibile con licenza Apache 2.0, progettato per aiutare gli amministratori di sistema ad automatizzare le numerose attività ripetitive che svolgono regolarmente
description_nl    : Puppet is een flexibel, aanpasbaar framework dat beschikbaar is onder de Apache 2.0-licentie en is ontworpen om systeembeheerders te helpen bij het automatiseren van de vele repetitieve taken die ze regelmatig uitvoeren
description_ru    : Puppet - это гибкий, настраиваемый фреймворк, доступный под лицензией Apache 2.0 и призванный помочь системным администраторам автоматизировать множество повторяющихся задач, которые они регулярно выполняют
audit_schedule    : 
editor            : 
keywords          : 
licence           : Apache License 2.0
homepage          : https://www.puppet.com/community/open-source
package_uuid      : 8d4d269c-b123-4605-9bea-8fcca8d73c04
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : e2058280317bb0fc330c0fb4de88c1d1caf6e80379182d48d4929fe8db34dfe5
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-27T22:03:46.000000
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
signature         : bajqcrBTxaMjUlY1W8QdPJ6yBfrCV4cGcc0Ir0sr6CpGn6AXLYB9/Z0Hws5kxqeQuJQSh/XI5Ow/riubIhcC9L4SimX9zF6icrnmqYN675C4EOCJY0qIb1NQ8c9dlOkfUbVN8PwnqxNRDe1P3Zj5V8gvW+1gKJp/RPnusp9wGTr5Ym3xbzJ+ZiNw0xwAcECJBSvpc2PLYpK+WWdYV5xsCV/kG9VOqW/tqs0HRh6jtbUZRrVuYveySe3UFm9/FSXte4+Bkv9dSriYr1I+0cp8EfPH7fsBpJvF8h4epZTNYpRLTTCBE5BR2kAqyG5WWSOArgQBu3kx2awzwoP+r5ID4w==
# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('puppet-agent-*-x64.msi')[0]
    # Installing the software
    install_msi_if_needed(bin_name)
from setuphelpers import *
import json
import re
import requests


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    # Getting latest version from official sources
    re_versions = re.compile(r'puppet-agent-(\d+\.\d+\.\d+)-x64\.msi')
    index = wgets("https://downloads.puppet.com/windows/puppet8", proxies=proxies)

    # Recherche de la dernière version dans le contenu de la page
    versions = re_versions.findall(index)
    if versions:
        latest_version = sorted(versions, key=lambda v: Version(v), reverse=True)[0]
        latest_bin = f"puppet-agent-{latest_version}-x64.msi"
        download_url = f"https://downloads.puppet.com/windows/puppet8/{latest_bin}"

        # Vérification si le fichier existe
        if not requests.head(download_url, proxies=proxies).status_code != 404:
            version = latest_version            

    # remove files
    for f in glob.glob("*.msi"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    wget(download_url, latest_bin, proxies=proxies)

    version =get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3e4e4f3f451fb5f175c1177547b125e51eccc733a6e1999c12fc6ef605eb36e3 : WAPT/control
e2058280317bb0fc330c0fb4de88c1d1caf6e80379182d48d4929fe8db34dfe5 : WAPT/icon.png
52eac69de2a209994b09d39718c29f6a13383117a927b65decf62817a854bcd7 : luti.json
f47c4ec0ddef7dff097fd77e7c74610297ba4233be7e9ee6a366c106f6437459 : puppet-agent-8.10.0-x64.msi
c33cab739a6d9acfd9f8cf30733c9be78b2e42b4527d6f396165d90c2efa07aa : setup.py
e09c998644b3944744d8ea54a4f92f1f54040b4928a434ddaa747dc679db67da : update_package.py