Pages

Wednesday, June 25, 2014

Consul - Service Discovery and Configuration tool

Recently come to know about consul which is new entrant into the Service Discovery and Configuration.
Looking at the Docs and Demo and getting started guides it seems pretty interesting and impressive too.

I will give a try in free time and will update my findings

Monday, June 23, 2014

Running Jenkins to work with Apache on Port 80

Tested on Centos 6 and Jenkins installed with RPM from jenkins-1.527-1.1.noarch

Change the /etc/sysconfig/jenkins with right JENKINS_ARGS

#JENKINS_ARGS="--prefix=/jenkins"  #If you wanna run like http://localhost
JENKINS_ARGS=""  # if you wanna run Jenkins on the index


[root@tiber07 jenkins]# cat /etc/httpd/conf.d/jenkins.conf
<VirtualHost *:80>
    ProxyPass         /jenkins  http://localhost:8080/
    ProxyPassReverse  /jenkins  http://localhost:8080/
    ProxyRequests     Off
    ProxyPreserveHost On
    <Proxy http://localhost:8080/*>
        Order deny,allow
        Allow from all
    </Proxy>
    RewriteEngine on
    RewriteRule   ^/jenkins/(.+) http://%{HTTP_HOST}/$1
</VirtualHost>


#Make sure to change the Proxy Pass location depending what u defined in JENKINS_ARGS

Thursday, June 19, 2014

Wednesday, June 11, 2014

Dropbox commandline

Installation...

Take a CentOS 6.x box for a smooth install (the curl on centos 5.x seems buggy/incompatible)

  • As root user, run the 2 commands below
  • dropbox_uploader is installed and can be run by any user. As root or as any other user... run command
    •  
    • dropbox_uploader
    • Do the instructions as the script says
      •  
      •  1) Open the following URL in your Browser, and log in using your account: https://www2.dropbox.com/developers/apps
      •  2) Click on "Create App", then select "Dropbox API app"
      •  3) Select "Files and datastores"
      •  4) Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder
      •  5) Enter the "App Name" that you prefer (e.g. JunedTest)
      •  
      • Now, click on the "Create App" button.
      •  When your new App is successfully created, please COPY the, App Key, App Secret and the Permission type shown in the confirmation page
      • Asks you to confirm by going to a URL like https://www2.dropbox.com/1/oauth/authorize?oauth_token=<SOMETOKEN>, click ALLOW
      • It saves your info (in the file .dropbox_uploader)
      • Run "dropbox_uploader" which prints all commands

To remove the credentials, remove the file .dropbox_uploader in your home dir.

Remove /usr/local/bin/dropbox_uploader if u no longer need it.

Tuesday, June 10, 2014

Nagios + Jenkins + Git and Automation

Interesting automation setup of Nagios automation using Jenkins and Git by BunnyMan

http://bunnyman.info/posts/2012/Sep/07/git-jenkins-nagios/