mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
05228e1e5c
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>
16 lines
677 B
Plaintext
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"
|