ceph/tasks/buildpackages/centos-6.5-user-data.txt
Loic Dachary 05228e1e5c buildpackages: user-data must be per os-type/os-version
CentOS 6.5 needs to install a package and reboot to grow the root file
system. Instead of assuming a common user-data.txt file can fit all
Operating Systems, make one user data per os-type/os-version combination.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-09-27 23:42:58 +02:00

16 lines
677 B
Plaintext

#cloud-config
bootcmd:
- yum install -y yum-utils && yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/6/x86_64/ && yum install --nogpgcheck -y epel-release && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 && rm /etc/yum.repos.d/dl.fedoraproject.org*
- ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
- ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo
preserve_hostname: true
system_info:
default_user:
name: ubuntu
packages:
- dracut-modules-growroot
runcmd:
- mkinitrd --force /boot/initramfs-2.6.32-573.3.1.el6.x86_64.img 2.6.32-573.3.1.el6.x86_64
- reboot
final_message: "READYTORUN"