Comment 0 for bug 1806504

Revision history for this message
Jack Chen (scsvip) wrote :

I'm using Juju to deploy machine. Added runcmd section in /etc/cloud.cfg.d/60-my-conf.cfg:

```
merge_how: 'list(append)+dict(recurse_array)+str()'

runcmd:
 - echo "run in 60 my cloudinit cfg"
 - usermod -aG docker ubuntu

merge_how: 'list(append)+dict(recurse_array)+str()'
```

This script works when deploy machine using MAAS. But it didn't work when deploy machine using JUJU, Seems merge_how doesn't works.

I want to use cloud-init single to seem how runcmd executes, but seems it's only displaying the last execution's status?

```
cloud-init single --name cc_runcmd --frequency always l
Cloud-init v. 18.4-0ubuntu1~16.04.2 running 'single' at Tue, 04 Dec 2018 00:01:54 +0000. Up 1338.24 seconds
```