GithubHelp home page GithubHelp logo

gillesdubois / packager-for-unix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocsinventory-ng/packager-for-unix

0.0 2.0 0.0 54 KB

This packager create a standalone executable for linux with configuration setup. The created packager doesn't require any modification or dependencies installation on the system which can be helpful depending on business security policy.

License: GNU General Public License v3.0

Shell 100.00%

packager-for-unix's Introduction

OCS Agent Unix Packager

Banner

OCS Agent Standalone Unix Packager

Some Links:
Ask question | Website | OCS Professional

Description

The aim of this script is to create a all in one package to be deployed on every Linux machine. The package embeds compiled Perl for the related OS, OCS Agent perl package, and all required perl mudules.

  • packageOCSAgent.config: packager configuration
    • PROXY_HOST if you have direct Internet connection
    • OCS_INSTALL_DIR: OCS Agent installation directory
    • PERL_VERSION: Perl version you want to compile and embed in OCS package
    • PERL_DL_LINK: Perl download link
    • OCSAGENT_DL_LINK: OCS Agent download link
    • NMAP_DL_LINK: Nmap download link
    • OCS_AGENT_CRONTAB: [0-1] Create script to add crontab on system
    • OCS_AGENT_CRONTAB_HOUR: How many hour between each crontab call
    • OCS_AGENT_LAZY: [0-1] Activate lazy mode on Agent
    • OCS_AGENT_TAG: Set default tag
    • OCS_SERVER_URL: Set server URL
    • OCS_SSL_ENABLED: [0-1] Enable SSL check
    • OCS_SSL_CERTIFICATE_FULL_PATH: Path to the certificate
    • OCS_LOG_FILE: [0-1] Enable file logging feature
    • OCS_LOG_FILE_PATH: Set the log path file
  • PerlModulesDownloadList.txt: download URL for all Perl modules dependencies
  • packageOCSAgent.sh: packager script

Usage

As root user

#./packageOCSAgent.sh

Output is a tar/gz archive: ocsinventory-agent_LinuxDistribution_MajorVersion.tar.gz

Todo

  1. Bypass current limitations

Current Limitation

  1. nmap command line path is not referenced in Perl module, thus, IP Discovery function does not work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.