Giter VIP home page Giter VIP logo

alterator-postinstall's Introduction

alterator-postinstall

Этот модуль для авто установки altlinux, дополнение к модулю alterator

Пример файла autoinstall.scm

("/sysconfig-base/language" action "write" lang ("en_US"))
("/sysconfig-base/kbd" action "write" layout "ctrl_shift_toggle")
("/datetime-installer" action "write" commit #t name "RU" zone "Europe/Moscow" utc #t)
("/evms/control" action "write" control open installer #t)
("/evms/control" action "write" control update)
("/evms/profiles/server" action apply commit #f clearall #t exclude ())
("/evms/control" action "write" control commit)
("/evms/control" action "write" control close)
("/pkg-init" action "write")
("/pkg-install" action "write" lists "" auto #t)
("/preinstall" action "write")
("/grub" action "write" language ("en_US") device "/dev/sda")
("/net-eth" action "write" reset #t)
("/net-eth" action "write" name "eth0" configuration "dhcp")
("/net-eth" action "write" commit #t)
("/root/change_password" language ("en_US") passwd_2 "pass" passwd_1 "pass")
("/postinstall/firsttime" action "write" method "url" url "http://server/post.sh")

Шаг /postinstall реализуется этим модулем. Два уровня запуска:

  • laststate
    Скрипт запускается при завершении альтератора (перед перезагрузкой после установки)
  • firsttime
    Скрипт запускается во время первого запуска ОС

Два метода (method) указания скрипта запуска

  • url
    Данные берутся по сети с сервера
  • conf
    Щел скрипт указывается прям в конфиг файле

Пример использования alterator-postinstall

("/postinstall/firsttime" action "write" method "url" url "http://server/post.sh")
("/postinstall/firsttime" action "write" method "conf" cmd "curl --silent --insecure http://server/finish")

("/postinstall/laststate" action "write" method "url" url "http://server/alterator_finish.sh")
("/postinstall/laststate" action "write" method "conf" cmd "curl --silent --insecure http://server/gotoreboot")

alterator-postinstall's People

Contributors

sergelogvinov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

sibskull

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.