Skip to content

Commit 2772571

Browse files
authored
Merge pull request #2160 from Adarsha1999/openstack-rocky10-user-data
openstack: Add cloud-init user-data for Rocky Linux 10 and 10.1
2 parents c5deb79 + b5d9618 commit 2772571

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
openstack-rocky-10.1-user-data.txt
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#cloud-config
2+
bootcmd:
3+
- fqdn=$(hostname -f)
4+
- shortname=$(echo "$fqdn" | cut -d. -f1)
5+
- hostnamectl set-hostname "$shortname"
6+
- ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
7+
# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
8+
- ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
9+
preserve_hostname: true
10+
system_info:
11+
default_user:
12+
name: {username}
13+
packages:
14+
- python3
15+
- wget
16+
- git
17+
- chrony
18+
final_message: "{up}, after $UPTIME seconds"

0 commit comments

Comments
 (0)