Skip to content

Instantly share code, notes, and snippets.

@naveengiraboina
naveengiraboina / jenkins.md
Created August 26, 2019 16:51 — forked from wagnerjgoncalves/jenkins.md
Shell Script to install Jenkins at Ubuntu

Prepare AWS

  • Create "default-cassandra" security group with following Inbound rules:
    • 22/TCP to 0.0.0.0 or private ip
    • 7000/TCP to {public IPs of all nodes in cluster}
    • 7001/TCP to {public IPs of all nodes in cluster}
    • 7199/TCP to {public IPs of all nodes in cluster}
    • 9160/TCP to default-cassandra
    • 9042/TCP to 0.0.0.0
  • Create instance with security group "default-cassandra"

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

@naveengiraboina
naveengiraboina / install NVM and nodeJS.yml
Created December 27, 2018 03:40 — forked from komuw/install NVM and nodeJS.yml
Ansible task to install nvm and nodeJS
#first seen here: http://www.snip2code.com/Snippet/63701/Ansible-task-to-install-nvm-and-node
# Here is how to install nvm and node in an Ansible task.
# I tried a bunch of different things, and as usual it's simple, but you have to get it right.
# The important part is that you have to shell with /bin/bash -c and source nvm.sh
---
- name: Install nvm
shell: >
curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh
creates=/home/{{ ansible_user_id }}/.nvm/nvm.sh
@naveengiraboina
naveengiraboina / ec2_instance_create_and_setup.sh
Created December 25, 2018 12:18 — forked from Pablosan/ec2_instance_create_and_setup.sh
A bash script that will set up a new EC2 instance and ssh into it.
#!/bin/bash
# Authorize TCP, SSH & ICMP for default Security Group
#ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0
#ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0
# The Static IP Address for this instance:
IP_ADDRESS=$(cat ~/.ec2/ip_address)
# Create new t1.micro instance using ami-cef405a7 (64 bit Ubuntu Server 10.10 Maverick Meerkat)