vishesh92 commented on code in PR #11654:
URL: https://github.com/apache/cloudstack/pull/11654#discussion_r2355015745


##########
tools/appliance/systemvmtemplate/scripts/configure_systemvm_services.sh:
##########
@@ -132,15 +132,42 @@ function configure_services() {
   # Disable container services
   systemctl disable containerd
 
-  # Disable cloud init by default
-cat <<EOF > /etc/cloud/cloud.cfg.d/cloudstack.cfg
-datasource_list: ['CloudStack']
-datasource:
-  CloudStack:
-    max_wait: 120
-    timeout: 50
+  # Cloud-init services will be managed by dependency ordering to run after 
CloudStack networking
+
+  cat <<EOF > /etc/cloud/cloud.cfg.d/cloudstack.cfg
+#cloud-config
+datasource_list: ['NoCloud']
+network:
+  config: disabled
+manage_etc_hosts: false
+manage_resolv_conf: false
+users: []
+disable_root: false
+ssh_pwauth: false
+cloud_init_modules:
+ - migrator
+ - seed_random
+ - bootcmd
+ - write-files
+ - growpart
+ - resizefs
+ - disk_setup
+ - mounts
+ - rsyslog
+cloud_config_modules:
+ - locale
+ - timezone
+ - runcmd
+cloud_final_modules:
+ - scripts-per-once
+ - scripts-per-boot
+ - scripts-per-instance
+ - scripts-user
+ - final-message
+ - power-state-change
 EOF
 
+  # Disable automatic cloud-init services since we run it manually in 
postinit.sh

Review Comment:
   ```suggestion
     # Disable cloud-init services since we run it manually in postinit.sh if 
user data is available
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to