aboutsummaryrefslogtreecommitdiff
path: root/packer/debian-server-bookworm/files/cloud.cfg
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-01-31 21:37:07 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2025-01-31 21:37:07 +0100
commitb0f1598dd0a8875d85e6c8410d3072b6f2680023 (patch)
treedcf2cda64eb61d85c745c51a6f932a74fffb1cf4 /packer/debian-server-bookworm/files/cloud.cfg
parentf1cb97161674b6be4a1b3045247f041abc9b951b (diff)
packer: finalized debian bookworm template
working, but will need some adjustments mostly in preseed.cfg and cloud.cfg)
Diffstat (limited to 'packer/debian-server-bookworm/files/cloud.cfg')
-rw-r--r--packer/debian-server-bookworm/files/cloud.cfg99
1 files changed, 99 insertions, 0 deletions
diff --git a/packer/debian-server-bookworm/files/cloud.cfg b/packer/debian-server-bookworm/files/cloud.cfg
new file mode 100644
index 0000000..29d451e
--- /dev/null
+++ b/packer/debian-server-bookworm/files/cloud.cfg
@@ -0,0 +1,99 @@
+# The top level settings are used as module
+# and system configuration.
+
+# If this is set, 'root' will not be able to ssh in and they
+# will get a message to login instead as the above $user (debian)
+disable_root: true
+
+# Update apt database on first boot (run 'apt-get update')
+apt_update: true
+
+# Upgrade the instance on first boot
+apt_upgrade: true
+
+# Reboot after package install/update if necessary
+apt_reboot_if_required: true
+
+# The modules that run in the 'init' stage
+cloud_init_modules:
+ - migrator
+ - seed_random
+ - bootcmd
+ - write-files
+ - growpart
+ - resizefs
+ - disk_setup
+ - mounts
+ - set_hostname
+ - update_hostname
+ - update_etc_hosts
+ - ca-certs
+ - rsyslog
+ - users-groups
+ - ssh
+
+# The modules that run in the 'config' stage
+cloud_config_modules:
+# Emit the cloud config ready event
+# this can be used by upstart jobs for 'start on cloud-config'.
+ - emit_upstart
+ - ssh-import-id
+ - locale
+ - set-passwords
+ - grub-dpkg
+ - apt-pipelining
+ - apt-configure
+ - ntp
+ - timezone
+ - disable-ec2-metadata
+ - runcmd
+ - byobu
+
+# The modules that run in the 'final' stage
+cloud_final_modules:
+ - package-update-upgrade-install
+ - fan
+ - puppet
+ - chef
+ - salt-minion
+ - mcollective
+ - rightscale_userdata
+ - scripts-vendor
+ - scripts-per-once
+ - scripts-per-boot
+ - scripts-per-instance
+ - scripts-user
+ - ssh-authkey-fingerprints
+ - keys-to-console
+ - phone-home
+ - final-message
+ - power-state-change
+
+final_message: "The system is finally up, after $UPTIME seconds"
+
+# System and/or distro specific settings
+# (not accessible to handlers/transforms)
+system_info:
+ # This will affect which distro class gets used
+ distro: debian
+ # Default user name + that default users groups (if added/used)
+ default_user:
+ name: mas
+ lock_passwd: True
+ gecos: Debian
+ groups: [adm, sudo]
+ sudo: ["ALL=(ALL) NOPASSWD:ALL"]
+ shell: /bin/bash
+ # Don't forget to add your public key here -- if you want. You can still add account after cloning thanks to Cloud-Init
+ #ssh_authorized_keys:
+ # Other config here will be given to the distro class and/or path classes
+ paths:
+ cloud_dir: /var/lib/cloud/
+ templates_dir: /etc/cloud/templates/
+ upstart_dir: /etc/init/
+ package_mirrors:
+ - arches: [default]
+ failsafe:
+ primary: http://deb.debian.org/debian
+ security: http://security.debian.org/
+ ssh_svcname: ssh