Skip to content

Commit

Permalink
Update userdata.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tamagawa-ryuji committed Feb 28, 2013
1 parent 928a8e5 commit db480bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userdata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e

yum -y update python-boto

sed -i "s/<instance-FQDN>/<your instance's FQDN here>/" /etc/rc.local
sed -i "s/<AWS-access-key>/<your AWS access key here>/" /etc/rc.local
sed -i "s/<AWS-secret-key>/<your AWS secret key here>/" /etc/rc.local
sed -i "s/FQDN_HERE/<your instance's FQDN here>/" /etc/rc.d/init.d/ec2-mongo-init
sed -i "s/AWS_ACCESS_KEY_HERE/<your AWS access key here>/" /etc/rc.d/init.d/ec2-mongo-init
sed -i "s/AWS_SECRET_KEY_HERE/<your AWS secret key here>/" /etc/rc.d/init.d/ec2-mongo-init
sed -i "s/#replSet=replicaSetName/<your replica set name>/" /etc/mongod.conf

chkconfig mongod on

0 comments on commit db480bb

Please sign in to comment.