summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Farrellee <matt@redhat.com>2013-07-10 16:18:23 -0400
committerMatthew Farrellee <matt@redhat.com>2013-07-12 07:54:16 -0400
commit4e8525f6fb2c0ef7174bd041ce700374ee03de37 (patch)
tree5022ca3548fd3ca39b2ffb1a4df8eda55a3be4bc
parentb7def9d8c36f8f1f3066cb219704de2fd00409ee (diff)
Merge Ubuntu and Fedora instructions for first-boot
Notes
Notes (review): Verified+2: Jenkins Approved+1: Sergey Lukjanov <slukjanov@mirantis.com> Code-Review+2: Sergey Lukjanov <slukjanov@mirantis.com> Code-Review+1: Ivan Berezovskiy <iberezovskiy@mirantis.com> Submitted-by: Jenkins Submitted-at: Mon, 15 Jul 2013 14:46:52 +0000 Reviewed-on: https://review.openstack.org/36543 Project: stackforge/savanna-extra Branch: refs/heads/master
-rwxr-xr-xelements/hadoop_fedora/first-boot.d/99-setup19
1 files changed, 14 insertions, 5 deletions
diff --git a/elements/hadoop_fedora/first-boot.d/99-setup b/elements/hadoop_fedora/first-boot.d/99-setup
index 75a87fd..bd4e732 100755
--- a/elements/hadoop_fedora/first-boot.d/99-setup
+++ b/elements/hadoop_fedora/first-boot.d/99-setup
@@ -1,13 +1,22 @@
1#!/bin/bash 1#!/bin/bash
2
3# Common
4chown root:root /mnt
5mkdir -p /var/run/hadoop ; chown hadoop:hadoop /var/run/hadoop
6mkdir -p /mnt/log/hadoop ; chown hadoop:hadoop /mnt/log/hadoop
7
8# Unique to Ubuntu
9#mkdir /run/hadoop
10#chown hadoop:hadoop /run/hadoop/
11#mkdir -p /home/ubuntu/.ssh
12#touch /home/ubuntu/.ssh/authorized_keys
13#chown -R ubuntu:ubuntu /home/ubuntu
14
15# Unique to Fedora
2sleep 10 16sleep 10
3rm /etc/resolv.conf 17rm /etc/resolv.conf
4service network restart 18service network restart
5chown -R ec2-user:ec2-user /home/ec2-user 19chown -R ec2-user:ec2-user /home/ec2-user
6chown -R ec2-user:ec2-user /etc/hadoop 20chown -R ec2-user:ec2-user /etc/hadoop
7mkdir -p /var/run/hadoop
8chown root:root /mnt
9mkdir -p /mnt/log/hadoop
10chown hadoop:hadoop /var/run/hadoop
11chown hadoop:hadoop /mnt/log/hadoop
12#TODO: configure iptables (https://bugs.launchpad.net/savanna/+bug/1195744) 21#TODO: configure iptables (https://bugs.launchpad.net/savanna/+bug/1195744)
13iptables -F 22iptables -F