Changeset View
Changeset View
Standalone View
Standalone View
release/tools/oracle.conf
| Show All 11 Lines | export VM_EXTRA_PACKAGES=" | ||||
| lang/python | lang/python | ||||
| lang/python3 | lang/python3 | ||||
| net/cloud-init | net/cloud-init | ||||
| net/py-eventlet | net/py-eventlet | ||||
| net/py-netaddr | net/py-netaddr | ||||
| net/py-netifaces | net/py-netifaces | ||||
| net/py-oauth | net/py-oauth | ||||
| net/rsync | net/rsync | ||||
| panicmail | |||||
| security/ca_root_nss | security/ca_root_nss | ||||
| security/sudo@default | security/sudo@default | ||||
| sysutils/firstboot-freebsd-update | sysutils/firstboot-freebsd-update | ||||
| sysutils/firstboot-pkgs | sysutils/firstboot-pkgs | ||||
| sysutils/panicmail | sysutils/panicmail | ||||
| textproc/jq | textproc/jq | ||||
| " | " | ||||
| Show All 22 Lines | cat <<-'EOF' >> ${DESTDIR}/boot/loader.conf | ||||
| beastie_disable="YES" | beastie_disable="YES" | ||||
| boot_serial="YES" | boot_serial="YES" | ||||
| loader_logo="none" | loader_logo="none" | ||||
| cryptodev_load="YES" | cryptodev_load="YES" | ||||
| opensolaris_load="YES" | opensolaris_load="YES" | ||||
| xz_load="YES" | xz_load="YES" | ||||
| zfs_load="YES" | zfs_load="YES" | ||||
| EOF | EOF | ||||
| metalog_add_data ./boot/loader.conf | |||||
| cat <<-'EOF' >> ${DESTDIR}/etc/ssh/sshd_config | cat <<-'EOF' >> ${DESTDIR}/etc/ssh/sshd_config | ||||
| # S11 Configure the SSH service to prevent password-based login | # S11 Configure the SSH service to prevent password-based login | ||||
| PermitRootLogin prohibit-password | PermitRootLogin prohibit-password | ||||
| PasswordAuthentication no | PasswordAuthentication no | ||||
| KbdInteractiveAuthentication no | KbdInteractiveAuthentication no | ||||
| PermitEmptyPasswords no | PermitEmptyPasswords no | ||||
| UseDNS no | UseDNS no | ||||
| Show All 11 Lines | system_info: | ||||
| lock_passwd: True | lock_passwd: True | ||||
| gecos: "Oracle Cloud Default User" | gecos: "Oracle Cloud Default User" | ||||
| groups: [wheel] | groups: [wheel] | ||||
| sudo: ["ALL=(ALL) NOPASSWD:ALL"] | sudo: ["ALL=(ALL) NOPASSWD:ALL"] | ||||
| shell: /bin/sh | shell: /bin/sh | ||||
| network: | network: | ||||
| renderers: ['freebsd'] | renderers: ['freebsd'] | ||||
| EOF | EOF | ||||
| metalog_add_data ./usr/local/etc/cloud/cloud.cfg.d/98_oracle.cfg | |||||
| # Use Oracle Cloud Infrastructure NTP server | # Use Oracle Cloud Infrastructure NTP server | ||||
| sed -i '' -E -e 's/^pool.*iburst/server 169.254.169.254 iburst/' \ | sed -i '' -E -e 's/^pool.*iburst/server 169.254.169.254 iburst/' \ | ||||
| ${DESTDIR}/etc/ntp.conf | ${DESTDIR}/etc/ntp.conf | ||||
| return 0 | return 0 | ||||
| } | } | ||||