When booting an instance there is a typical ability to set metadata on that instance, which when booted the instance will have access to. This is used by various folks to pass in information into the instance (this info really isn't userdata but is used by at least godaddy for things like login_user for ldap and such...).

      $ nova help boot | grep -B1 -A2 meta_data.json
        --meta <key=value>            Record arbitrary key/value metadata to
                                      /meta_data.json on the metadata server. Can be
                                      specified multiple times.
      

      It'd be really nice to have a way to provide those values (or setup the defaults for those) when using the plugin, likely in a way that allows for specifying the keys and values multiple times (a dynamic list form that u can add as many as you want would be awesome).

          [JENKINS-37167] Support openstack server metadata

          Joshua Harlow added a comment -

          The following repo was where another folk and I were working on some minimal support for this:

          If people want to use that as a base (or not is fine also).

          Joshua Harlow added a comment - The following repo was where another folk and I were working on some minimal support for this: https://github.com/harlowja/openstack-cloud-plugin/commit/b9ea4d6 https://github.com/harlowja/openstack-cloud-plugin/commit/9f237b67 If people want to use that as a base (or not is fine also).

          What is the use-case for this (setting custom metadata from configured template)? Note that machines generally do not have access to openstack to query the metadata.

          Oliver Gondža added a comment - What is the use-case for this (setting custom metadata from configured template)? Note that machines generally do not have access to openstack to query the metadata.

            olivergondza Oliver Gondža
            harlowja Joshua Harlow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: