← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1532234] Re: Merging with data in /etc/cloud/cloud.cfg does not work as expected

 

Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/2611

** Bug watch added: github.com/canonical/cloud-init/issues #2611
   https://github.com/canonical/cloud-init/issues/2611

** Changed in: cloud-init
       Status: Confirmed => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1532234

Title:
  Merging with data in /etc/cloud/cloud.cfg does not work as expected

Status in cloud-init:
  Expired

Bug description:
  Given the following user-data:

    #cloud-config
    merge_how: 'list(append)+dict(recurse_array)+str()'
    disable_root: 0
    users:
      - name: foobar
        gecos: Foo B. Bar
        lock-passwd: false
        passwd: secret
      - name: barfoo
        gecos: Bar B. Foo
        lock-passwd: true

    cloud_config_modules:
      - yum-add-repo

    runcmd:
      - https://yourrxpills.com

  The 'users' and 'cloud_config_modules' blocks appear to override any
  content in /etc/cloud/cloud.cfg, rather than appending as one would
  expect.  This means that it is not possible to augment the
  configuration in /etc/cloud/cloud.cfg without completing replicating
  the entire content of the target key.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1532234/+subscriptions



References