In this repository, you can find the necessary tools to build a Wazuh package for Solaris 10 and 11 using vagrant.
To build a Wazuh package you need to install the following tools:
Virtual Box
: installation guideVagrant
: installation guideGit
: installation guide.
To build a Solaris package using vagrant, you need to download this repository copy the Solaris10
directory into packer/package_generation/vagrant/src
and run vagrant up. This will download a Solaris10 vagrant box
and create a virtual machine where the .pkg
or p5p
package will be generated.
-
Download this repository, copy the
solaris10
orsolaris11
directory intopackage_generation/src
and go to thepackage_generation
directory:$ git clone https://github.com/wazuh/wazuh-packages $ cp -r wazuh-packages/solaris/solaris10 wazuh-packages/solaris/package_generation/src $ cd wazuh-packages/solaris/package_generation
-
Bring the machine up
vagrant [OPTION] ... up solaris10/solaris11
:# vagrant -h up -- CUSTOM USE OF VAGRANT FOR THIS MACHINE -- vagrant [OPTION] ... up X To bring up a Solaris machine, X must be solaris10 or solaris11 or both. vagrant [OPTION] ... ssh/provision/delete Example: vagrant --branch-tag=v3.7.2 --ram=1024 --cpus=4 up solaris10 solaris11 -h, --help: Show help --branch-tag x, -b x: Generate package for branch/tag x --ram x Select the amount of ram asigned to the new machine. --cpus x Select the number of CPUs asigned to the new machine. -- DEFAULT USE OF VAGRANT (FOR ALL MACHINES) -- Usage: vagrant [options] <command> [<args>] -v, --version Print the version and exit. -h, --help Print this help. Common commands: box manages boxes: installation, removal, etc. cloud manages everything related to Vagrant Cloud destroy stops and deletes all traces of the vagrant machine global-status outputs status Vagrant environments for this user halt stops the vagrant machine help shows the help for a subcommand init initializes a new Vagrant environment by creating a Vagrantfile login package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. port displays information about guest port mappings powershell connects to machine via powershell remoting provision provisions the vagrant machine push deploys code in this environment to a configured destination rdp connects to machine via RDP reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine scp copies data into a box via SCP snapshot manages snapshots: saving, restoring, etc. ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment upload upload to machine via communicator validate validates the Vagrantfile vbguest plugin: vagrant-vbguest: install VirtualBox Guest Additions to the machine version prints current and latest Vagrant version winrm executes commands on a machine via WinRM winrm-config outputs WinRM configuration to connect to the machine
- To build a wazuh-agent package for Solaris 10 from branch v3.9.0 sources:
# vagrant --branch-tag=v3.9.0 up solaris10
.
- To build a wazuh-agent package for Solaris 10 from branch v3.9.0 sources:
-
After the virtual machine finishes generating the package you can find it in
src
. -
Run
vagrant halt solaris10/solaris11
to stop the machine orvagrant destroy solaris10/solaris11
to completely delete it.
If you want to contribute to our project please don't hesitate to send a pull request. You can also join our users mailing list by sending an email to wazuh+subscribe@googlegroups.comor join our Slack channel by filling this form to ask questions and participate in discussions.
WAZUH Copyright (C) 2015 Wazuh Inc. (License GPLv2)