← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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:
    - touch /root/flagfile

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.

** Affects: cloud-init
     Importance: High
         Status: Confirmed

-- 
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:
  Confirmed

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:
      - touch /root/flagfile

  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


Follow ups