cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Automate NSO Installation Using Ansible

2245
Views
16
Helpful
8
Comments
Bassem Abd Elzaher
Enthusiast

Good Days,

Recently I installed NSO in few customers environments and I thought it would be helpful to automate the installation procedures instead of repeating it each time or PoC.

So I wrote Ansible module that take three inputs from user and take care of the rest


Variable NameUsage
ncs_package_nameThis is the name of NSO downloaded package (example: nso-4.4.linux.x86_64)
ncs_package_locationWhere you uploaded this package in linux server(example: /root/)
ncs_run_locationThe location of instantiated project from NSO installation (example: ncs-run or access_project)

Once you run the module (locally or via remote host), it will prepare the linux machine first with some settings (like disable selinux and firewalld services, install correct java version, update the cache..etc) then customize the bash profile with ncsrc file and finally install and run the NSO at the end


to run it, simply execute the below command on host that has ansible package installed


#ansible-playbook nso_demo.yml


if you need to run it in verbose mode to see the exact running commands, then add few "vvv" to the command


#ansible-playbook nso_demo.yml -vvv


Sample Output


Script Output

output1.png


NSO Started

output2.png



Please share any other ideas to automate the installation or NSO configuration.


Thank You


Regards

Bassim Aly


8 Comments