Skip to content

Oracle Autonomous Linux configuration to get kernel updates notifications by email.

Notifications You must be signed in to change notification settings

vmleon/autonomous-linux-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Autonomous Linux and Oracle Notification Service

Getting started with Oracle Autonomous Linux distribution and how to configure to get autonomous updates notifications by email.

Oracle Linux executes autonmatic patch updates and tuning without human interaction. Autonomous Linux is based on Oracle Linux, which is binary-compatible with Red at Enterprise Linux.

Oracle Ksplice is the gist behind the zero downtime updates. It modifies the libraries at runtime directly on memory. The most of the updates are changes on the internal implementation, because in those cases there is no changes on data structures, Ksplice is able to do its magic.

The general steps are:

  • Create a notification topic
  • Create the policies to allow instances to send messages to topics
  • Create our Autonomous Linux and configure it

NOTE: You need to have a Virtual Cloud Network (VCN) created. VCN is the network fabric where other resources like compute instance will be place.

Create Notification topic

In order to create a notification topic go to Application Integration > Notification

Menu > Application Integration > Notification

Create Topic

Create Topic details

Create Subscription

Create Subscription details

Configure instances for Notification

In order to create a dynamic group go to Identity > Dynamic Groups

Menu > Identity > Dynamic Group

Create Dynamic Group

Create Dynamic Group details

You can copy the Rule 1 value from here:

ALL {instance.compartment.id = '<Compartment_OCID>'}

Remember to replace the compartment OCID. The compartment OCID can be found in Menu > Identity > Compartment >

Create the policy to apply to the Dynamic group we just created.

Menu > Identity > Polices

Create Policy

Create Policy detailss

You can copy the Statement 1 value from here:

Allow dynamic-group <dynamic-group-name> to use ons-topic in compartment <compartment-name> where request.permission='ONS_TOPIC_PUBLISH'

Remember to replace the Dynamic Group name.

Create an Autonomous Linux

To create an instance the easiest way is to use the Quick Actions > Create a VM instance on the Home page.

Quick Actions > Create a VM instance

Create Compute Instance, select Image Source

Create Compute Instance, Browse All Image

Create Compute Instance, select Autonomous Linux

Create Compute Instance, Networking

Create Compute Instance, SSH public key

After clicking in Show Advance Options:

Cloud Init Script

You can copy the cloud init script from here:

#!/bin/bash
al-config -T <ONS_TOPIC_OCID>

Remember to replace the Notification Topic OCID.

Click Create and wait for the instance to be provisioned.

After that you can find the Public IP on the details page of the Instance and you can connect to your Linux with:

ssh –i id_rsa opc@<Public_IP_Address>

Check instance metadata

sudo oci-metadata

Ready to receive emails everytime your Autonomous Linux gets automatically updated.

Enjoy!

About

Oracle Autonomous Linux configuration to get kernel updates notifications by email.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published