Oracle Linux Automation Manager version 1.0, based on the open source projects Ansible and AWX, is a task engine and Web interface for scheduling and running Oracle Linux Automation Engine playbook tasks on the inventories the playbooks interact with. The Oracle Linux Automation Engine is an automation tool for deploying software, configuring systems, and orchestrating tasks such as upgrades and updates, in the form of playbooks.
Oracle Linux Automation Manager version 1.0 is based on the AWX version 15.0.1 open-source software. The AWX development branch and documentation are maintained at https://github.com/ansible/awx/tree/15.0.1.
Oracle Linux Automation Engine is included in Oracle Linux Automation Manager version 1.0 and is based on the Ansible version 2.9.21 open-source software. The Ansible development branch and documentation are maintained at https://github.com/ansible/ansible/tree/v2.9.21.
This post will go over how to install Oracle Linux Automation Manager 1.0. Server will need minimum configuration of,
– Oracle Linux 8 x86_64
– 4GB RAM
– 40GB disk space (170GB recommended)
– 1 two core CPU
The Oracle Linux Automation Manager packages for Oracle Linux 8 (ol8_automation) are available on the Oracle Linux yum server and on the Unbreakable Linux Network (ULN). Required channels for installation are,
– ol8_x86_x64_automation
– ol8_x86_x64_addons
– ol8_x86_x64_baseos_latest
– ol8_x86_x64_UEK6
– ol8_x86_x64_appstream
Verify all required repositories are enabled.
[root@olam ~]# dnf repolist
Set up firewall rules to open http & https ports.
[root@olam ~]# firewall-cmd –add-service=http –permanent
success
[root@olam ~]# firewall-cmd –add-service=https –permanent
success
[root@olam ~]# firewall-cmd –reload
success
Install Oracle Linux Automation Manager.
[root@olam ~]# dnf install ol-automation-manager
Edit /etc/redis.conf file to include unixsocket & unixsocketperm parameters as shown below.
[root@olam ~]# cat /etc/redis.conf| grep unixsocket
unixsocket /var/run/redis/redis.sock
unixsocketperm 775
Run following script to start and set up the database.
[root@olam ~]# /var/lib/ol-automation-manager/ol-automation-manager-DB-init.sh
Prepare an Oracle Linux Automation Manager deployment as the awx user.
[root@olam ~]# su -l awx -s /bin/bash
[awx@olam ~]$ awx-manage migrate
[awx@olam ~]$ awx-manage createsuperuser –username admin –email dh***@****.com
[awx@olam ~]$ awx-manage create_preload_data
[awx@olam ~]$ awx-manage provision_instance –hostname=olam.dj.local
[awx@olam ~]$ awx-manage register_queue –queuename=tower –hostnames=olam.dj.local
[awx@olam ~]$ awx-manage setup_managed_credential_types
[awx@olam ~]$ exit
Generate SSL certificates for NGINX.
[root@olam ~]# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/tower/tower.key -out /etc/tower/tower.crt
Remove any default NGINX configuration. Edit /etc/nginx/nginx.conf file with following contents.
[root@olam ~]# cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf-orig
[root@olam ~]# vi /etc/nginx/nginx.conf
[root@olam ~]# cat /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for”‘;
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
}
Edit the /etc/tower/settings.py file and set CLUSTER_HOST_ID parameter as follows.
[root@oam ~]# vi /etc/tower/settings.py
[root@olam ~]# cat /etc/tower/settings.py | grep CLUSTER_HOST_ID
CLUSTER_HOST_ID = “olam.dj.local”
Start the service.
[root@olam ~]# systemctl enable –now ol-automation-manager.service
To access GUI, go to url https://olam.dj.local. Log on using super user account “admin” created using awx-manager command earlier.