###################
Unattended Installs
###################


Introduction
############

Atomic OSSEC supports unattended installations. That means you can use the configuration of one system as the template for a new system. The installer will not ask questions for options that are templated. This document explains how to perform an unattended installation.

--------------

Instructions
============

Step 1: Create (or copy) an attended installation configuration file /root/awp.cfg with the following minimal contents:

  .. code-block:: console

        USERNAME="<license username>"
        PASSWORD="<license password>"
        KERNEL_CHANNEL="disabled"
        FW_INBOUND_TCP_SERVICES="22,80,443,1514,1515,1516,30001"
        OPENID_CONNECT_INTEGRATION="on"
        OSSEC_ACTIVE_RESPONSE="yes"
        OSSEC_NOTIFY="no"
        CONFIGURED="yes"

Step 2: Copy the Configuration File to the System 
   
  * From the system with Atomic OSSEC already installed copy the following file:
	  
     .. code-block:: console
		 
        /etc/as/config
			
  * To the system you want to install AO on, or upgrade in this file:
	  
      .. code-block:: console
		 
          /root/awp.cfg
			
      .. note:: You can do this on the same system if you want a totally unattended upgrade of an existing AO system to occur.
	  

Step 3: Go to the root users directory 
   
      * On the new system, without AO install:
	  
         .. code-block:: console
		 
            cd /root/
			
Step 4: Run the Atomic OSSEC Installer
   
      * Run the installer as you normally would as the root on the system with the file **/root/awp.cfg**
	  
         .. code-block:: console
		 
     cd /root
     curl -fsSL https://updates.atomicorp.com/installers/awp-hub | sh




   
