#ejecutar esto despues de que la red estes configurada echo "Hostname ???? " read XX echo $XX > /etc/hostname cat > /etc/apt/sources.list << 'EoT' deb http://repos.uclv.edu.cu/ubuntu/ trusty main restricted deb http://repos.uclv.edu.cu/ubuntu/ trusty-updates main restricted deb http://repos.uclv.edu.cu/ubuntu/ trusty universe deb http://repos.uclv.edu.cu/ubuntu/ trusty-updates universe deb http://repos.uclv.edu.cu/ubuntu/ trusty multiverse deb http://repos.uclv.edu.cu/ubuntu/ trusty-updates multiverse deb http://repos.uclv.edu.cu/ubuntu/ trusty-backports main restricted universe multiverse deb http://repos.uclv.edu.cu/ubuntu trusty-security main restricted deb http://repos.uclv.edu.cu/ubuntu trusty-security universe deb http://repos.uclv.edu.cu/ubuntu trusty-security multiverse EoT # conectado a internet cat >> /etc/apt/sources.list << 'EoT' deb http://download.ceph.com/debian/ jessie main EoT apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E84AC2C0460F3994 apt-get update apt-get install -y openssh-server xfsprogs atop rdate cat > /etc/rc.local << 'EoT' #!/bin/bash rdate -n 10.12.1.50 EoT cat >> /etc/hosts <<'EoT' 10.12.1.151 ceph1 10.12.1.152 ceph2 10.12.1.153 ceph3 10.12.1.154 mon1 10.12.1.155 mon2 10.12.1.156 mon3 10.12.1.157 ceph-admin 10.12.253.50 ceph1 10.12.253.51 ceph2 10.12.253.52 ceph3 EoT echo "Pass para user ceph ???" read XX echo $XX > /tmp/res echo $XX >> /tmp/res useradd --home /home/ceph ceph mkdir /home/ceph chown ceph.ceph /home/ceph cat /tmp/res | passwd ceph rm -f /tmp/res echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph chmod 0440 /etc/sudoers.d/ceph