Files
iac-sei/utils/cloud-init-memcached.yaml
Guilherme Silva 058cc047ef Carga inicial
2026-06-19 11:06:23 -03:00

35 lines
954 B
YAML

#cloud-config
yum_repos:
epel:
name: Extra Packages for Enterprise Linux
baseurl: https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/developer/EPEL/$basearch/
enabled: true
gpgcheck: true
timezone: America/Sao_Paulo
package_update: true
package_upgrade: true
packages:
- gcc
- curl-devel
- java-1.8.0-openjdk
- php-opcache.x86_64
- glibc-langpack-pt
- langpacks-pt
- memcached
runcmd:
- [systemctl, disable, firewalld.service, --now]
- [setenforce, 0]
- [sed, -i, 's/^SELINUX.*/SELINUX=disabled/', /etc/selinux/config]
- [localectl, set-locale, LANG=pt_BR.ISO-8859-1]
- [nmcli, conn, modify, "System enp0s5", ipv6.method, disabled]
- [nmcli, conn, modify, "Wired Connection", ipv6.method, disabled]
- [nmcli, conn, up, "Wired Connection"]
- [systemctl, restart, NetworkManager]
- [systemctl, enable, memcached.service, --now]
final_message: "MemCache Instance ready after $UPTIME seconds"