cloud-init.tpl.yaml 569 B

123456789101112131415161718192021222324252627
  1. #cloud-config
  2. datasource:
  3. Ec2:
  4. strict_id: false
  5. write_files:
  6. - content: |
  7. net.ipv6.conf.all.disable_ipv6=1
  8. net.ipv6.conf.default.disable_ipv6=1
  9. path: /etc/sysctl.d/88-disable.conf
  10. owner: root
  11. users:
  12. - default
  13. - name: yc-user
  14. groups: wheel
  15. shell: /bin/bash
  16. sudo: ALL=(ALL) NOPASSWD:ALL
  17. ssh_authorized_keys:
  18. - "${ssh_key}"
  19. packages:
  20. - netplan.io
  21. - openssh-server
  22. package_update: true
  23. package_reboot_if_required: true
  24. runcmd:
  25. - sysctl -w net.ipv6.conf.all.disable_ipv6=1
  26. - sysctl -w net.ipv6.conf.default.disable_ipv6=1