Weblog Archive of Edmund Haselwanter
Posted by Edmund Haselwanter on Nov 02, 2009
Tags: http basic auth, mysql, rails
Technorati Tags: http basic auth, mysql, rails
I recently had to develop a small application for a client. The goal was to add a feature to grown Java web application.
As the software was maintained for several years there are users with old an new MySql passwords in the system.
Continue Reading…
Posted by Edmund Haselwanter on Oct 14, 2009
Tags: chef, opschef, opscode, opscookbook, sysadmin
Technorati Tags: chef, opschef, opscode, opscookbook, sysadmin
Recent releases of chef from opscode provide a new resource: ruby_block
This is really great news as this allows for interesting problem solving.
Consider you want to do a very special HTTP request. E.g. a GET to localhost but with custom “Host” header information.
Continue Reading…
Posted by Edmund Haselwanter on Oct 13, 2009
Tags: apache2, chef, opschef, opscode, opscookbook, sysadmin
Technorati Tags: apache2, chef, opschef, opscode, opscookbook, sysadmin
Install and run the webalizer with Chef from Opscode
http://github.com/ehaselwanter/cookbooks/tree/COOK-195/webalizer
As DRY as possible ;-)
Continue Reading…
Posted by Edmund Haselwanter on Oct 11, 2009
Tags: ping.fm, radiantcms
Technorati Tags: ping.fm, radiantcms
I just created a simple Ping.fm extension for RadiantCMS on github: ping.fm extension
With this you can have updates to your site automatically send details to your
Ping.fm account. All you’ll need to do is provide your account information in the Radiant::Config settings.
Continue Reading…
Posted by Edmund Haselwanter on Oct 11, 2009
Tags: chef, Glassfish, java, opschef, opscookbook, Sun
Technorati Tags: chef, Glassfish, java, opschef, opscookbook, Sun
Install and run the Sun Glassfish Application Server from Sun with Chef from Opscode
At the moment its really dumb and just installs Glassfish and runs it:
http://github.com/ehaselwanter/cookbooks/tree/COOK-191/glassfish/
Posted by Edmund Haselwanter on Sep 29, 2009
Tags: ant, centos, cruise, Thougthworks
Technorati Tags: ant, centos, cruise, Thougthworks
This is on howto use apache ant 1.7.1 in Cruise 1.2 from Thoughtworks
Continue Reading…
Posted by Edmund Haselwanter on Jul 31, 2009
Tags: http_request, opschef, opscode
Technorati Tags: http_request, opschef, opscode
Added support for custom header options in chef for the http_request
Opscode Chef Ticket
Resolved on Github
Continue Reading…
Posted by Edmund Haselwanter on Jun 28, 2009
Tags:
Technorati Tags:
used extensions
Continue Reading…
Posted by Edmund Haselwanter on Jun 28, 2009
Tags:
Technorati Tags:
added Twitter notification to blog posts. Testing with Ping.fm
Continue Reading…
Posted by Edmund Haselwanter on May 13, 2009
Tags: ssh
Technorati Tags: ssh
You have to convert the key like so:
ssh-keygen -i -f id_dsa_2048_a.pub >>.ssh/authorized_keys
Posted by Edmund Haselwanter on Mar 13, 2009
Tags: chef, environment 2.0, iclassify, opschef, opscode, opscookbook, puppet
Technorati Tags: chef, environment 2.0, iclassify, opschef, opscode, opscookbook, puppet
There is a new kid on the configuration management block Chef from Opscode. Here is a blog post about Puppet vs. Chef.
Chef is kind of Puppet with integrated iClassify and a rubyish configuration DSL. No wonder, Adam Jacob joined forces on Chef.
You can find it on github
Posted by Edmund Haselwanter on Mar 13, 2009
Tags: java, tomcat
Technorati Tags: java, tomcat
the symptom
If tomcat just respondes with HTTP 500 and you find something like
1
2 org.apache.tomcat.jni.Error: Too many open files
3 at org.apache.tomcat.jni.Socket.accept(Native Method)
4 at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1110)
5 at java.lang.Thread.run(Thread.java:619)
6 Mar 12, 2009 12:01:34 PM org.apache.tomcat.util.net.AprEndpoint$Acceptor run
7 SEVERE: Socket accept failed
in catalina.out
Continue Reading…
Posted by Edmund Haselwanter on Mar 09, 2009
Tags: apache, apache2, centos, ssl, virtualhost
Technorati Tags: apache, apache2, centos, ssl, virtualhost
Here is a very good HOWTO for setting up an SSL secured Webserver with CentOS
ensure there is no ssl.conf for the default VirtualServer in /etc/httpd/conf.d/ or incorporate your changes there.
Posted by Edmund Haselwanter on Mar 06, 2009
Tags: amazon, aws, cloud, cron, ebs, ec2, environment 2.0
Technorati Tags: amazon, aws, cloud, cron, ebs, ec2, environment 2.0
Create the volume and assign it to your instance
Attach it to your Centos 5.2 instance
yum install xfsprogs
according to Thread: Debian Lenny and XFS causes kernel panic: Suggested Workaround
mkfs.xfs -l version=1 /dev/sdh
insert into /etc/fstab
/dev/sdh /vol/shared xfs noatime 0 0
mount the volume
mount /vol/shared
Continue Reading…
Posted by Edmund Haselwanter on Nov 30, 2008
Tags: ami, aws, cruise, cruise control, ec2, environment 2.0, git, github
Technorati Tags: ami, aws, cruise, cruise control, ec2, environment 2.0, git, github
In this blog post I will show how to launch a Centos 5.2 Amazon ami image, install Cruise 1.1 from Thoughtworks (also known as Cruise Control) and building a Java project, fetched from a github repository.
Continue Reading…