Package br.com.objectos.rio

Examples of br.com.objectos.rio.GentooPrepare


  @Override
  protected void executeCommand(SaoOsPrepareOptions options) {
    OsDirs dirs = options.dirs(saoDirs);

    GentooPrepare installer = gentoo.prepare(this)
        .tempDirAt(dirs.osVar())
        .mountDirAt(dirs.mountDir())
        .stageServer(options.fileServer())
        .distfilesServer(options.distfilesServer())
        .resourcesAt(options.resourcesDir())
        .resourcesListAt(options.resourcesList())
        .resourcesMapAt(options.resourcesMap())
        .resourcesContext(options)
        .setProfileTo(13)
        .kernelVersion("3.10.17")

        .usepkg(options.usepkg)

        .fetch("jdk-7u45-linux-x64.tar.gz")

        .realtek("r8101-1.025.00")
        .realtek("r8168-8.038.00")

        .mkdir("/home")
        .mkdir("/srv")

        .move("/home").to("/srv/home")
        .move("/var/lib/mysql").to("/srv/mysql")

        .symlink("/etc/init.d/net.lo").to("/etc/init.d/net.eth0")
        .symlink("/etc/java-config-2/current-system-vm").to("/usr/lib/jvm/oracle-jdk-bin-1.7")
        .symlink("/srv/home").to("/home")
        .symlink("/srv/mysql").to("/var/lib/mysql")

        .chmod()
        /**/.file(options.sshKeyScriptName()).to(755)
        .done()

        .useradd()
        .uid(900)
        .home(options.userHome())
        .gid("users")
        .groups("wheel")
        .shell("/bin/bash")
        .login(options.user())

        .rcUpdate()
        /**/.add("net.eth0").toDefault()
        /**/.add("ntp-client").toDefault()
        /**/.add("sshd").toDefault()
        /**/.add("syslog-ng").toDefault()
        /**/.add("vixie-cron").toDefault()
        .done()

        .build();

    if (options.stage) {
      installer.stage();
    }

    installer.mkdir();

    if (options.objectos) {
      installer.objectos();
    }

    if (options.ekernel) {
      installer.ekernel();
    }

    if (options.realtek) {
      installer.realtek();
    }

    if (options.eworld) {
      installer.eworld();
    }

    if (options.revdep) {
      installer.gccConfig();
      installer.revdep();
    }

    if (options.grub) {
      installer.grub();
    }

    if (options.rio) {
      installer.rio();
    }

    if (options.extras) {
      installer.move();
      installer.symlink();
      installer.chmod();
      installer.useradd();
      installer.rcUpdate();
    }
  }
View Full Code Here


  @Override
  protected void executeCommand(EtoOsPrepareOptions options) {
    OsDirs dirs = options.dirs(etoDirs);

    GentooPrepare installer = gentoo.prepare(this)
        .tempDirAt(dirs.osVar())
        .mountDirAt(dirs.mountDir())
        .stageServer(options.fileServer())
        .distfilesServer(options.distfilesServer())
        .resourcesAt(options.resourcesDir())
        .resourcesListAt(options.resourcesList())
        .resourcesMapAt(options.resourcesMap())
        .resourcesContext(options)
        .setProfileTo(4)
        .kernelVersion("3.10.17")

        .usepkg(options.usepkg)

        .fetch("google-chrome-beta_32.0.1700.14-1_amd64.deb")
        .fetch("jdk-6u45-linux-x64.bin")

        .realtek("r8101-1.025.00")
        .realtek("r8168-8.038.00")

        .emerge("app-emulation/virtualbox-modules")

        .mkdir("/home")
        .mkdir("/srv")

        .move("/home").to("/srv/home")
        .move("/var/lib/mysql").to("/srv/mysql")

        .symlink("/etc/init.d/net.lo").to("/etc/init.d/net.eth0")
        .symlink("/srv/home").to("/home")
        .symlink("/srv/mysql").to("/var/lib/mysql")

        .chmod()
        /**/.file(options.sshKeyScriptName()).to(755)
        /**/.file("/etc/local.d/01-bdo-init-file.start").to(755)
        /**/.file("/usr/libexec/dbus-daemon-launch-helper").to(4711)
        .done()

        .useradd()
        .uid(900)
        .home(options.userHome())
        .gid("users")
        .groups("wheel")
        .shell("/bin/bash")
        .login(options.user())

        .rcUpdate()
        /**/.add("apache2").toDefault()
        /**/.add("consolekit").toDefault()
        /**/.add("dbus").toDefault()
        /**/.add("mysql.backup").toDefault()
        /**/.add("mysql.eclipse").toDefault()
        /**/.add("mysql.jetty").toDefault()
        /**/.add("net.eth0").toDefault()
        /**/.add("ntp-client").toDefault()
        /**/.add("sshd").toDefault()
        /**/.add("syslog-ng").toDefault()
        /**/.add("vixie-cron").toDefault()
        /**/.add("xdm").toDefault()
        .done()

        .build();

    if (options.stage) {
      installer.stage();
    }

    installer.mkdir();

    if (options.objectos) {
      installer.objectos();
    }

    if (options.ekernel) {
      installer.ekernel();
    }

    if (options.realtek) {
      installer.realtek();
    }

    if (options.eworld) {
      installer.eworld();
    }

    if (options.revdep) {
      installer.gccConfig();
      installer.revdep();
    }

    if (options.grub) {
      installer.grub();
    }

    if (options.rio) {
      installer.rio();
    }

    if (options.bdo) {
      executeBdo(options);
    }

    if (options.extras) {
      installer.move();
      installer.symlink();
      installer.chmod();
      installer.useradd();
      installer.rcUpdate();
    }
  }
View Full Code Here

    return new IroEtoPrepareOptions();
  }

  @Override
  protected void executeCommand(IroEtoPrepareOptions options) {
    GentooPrepare installer = gentoo.prepare(this)
        .tempDirAt(options.var(dirs))
        .mountDirAt(options.mountDir(dirs))
        .stageServer(options.fileServer())
        .distfilesServer(options.distfilesServer())
        .resourcesAt(options.resourcesDir())
        .resourcesListAt(options.resourcesList())
        .resourcesMapAt(options.resourcesMap())
        .resourcesContext(options)
        .setProfileTo(4)
        .kernelVersion("3.10.17")

        .usepkg(options.usepkg)

        .fetch("jdk-6u45-linux-x64.bin")

        .realtek("r8101-1.025.00")
        .realtek("r8168-8.038.00")

        .symlink("/etc/init.d/net.lo").to("/etc/init.d/net.eth0")

        .chmod()
        /**/.file(options.sshKeyScriptName()).to(755)
        .done()

        .useradd()
        .uid(900)
        .home("/iro")
        .gid("users")
        .groups("wheel")
        .shell("/bin/bash")
        .login("iro")

        .rcUpdate()
        /**/.add("net.eth0").toDefault()
        /**/.add("sshd").toDefault()
        /**/.add("syslog-ng").toDefault()
        .done()

        .withPxe(options.getCode())

        .build();

    if (options.all()) {

    }

    if (options.stage) {
      installer.stage();
    }

    if (options.objectos) {
      installer.objectos();
    }

    if (options.ekernel) {
      installer.ekernel();
    }

    if (options.realtek) {
      installer.realtek();
    }

    if (options.eworld) {
      installer.eworld();
    }

    if (options.revdep) {
      installer.revdep();
    }

    if (options.initramfs) {
      installer.initramfs();
    }

    if (options.grub) {
      installer.grub();
    }

    if (options.rio) {
      installer.rio();
    }

    if (options.extras) {
      installer.symlink();
      installer.chmod();
      installer.useradd();
      installer.rcUpdate();
    }
  }
View Full Code Here

TOP

Related Classes of br.com.objectos.rio.GentooPrepare

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.