puppet-ironic/examples/ironic_config_to_swift_uuid.pp
Vasyl Saienko 5736ebba4c Add ability to translate swift account project name to UUID
This patch adds ability to translate swift account project name to UUID and update
glance/swift_account option in the following format 'AUTH_uuid'.

By either calling ironic_config directly:

  ironic_config {
    'glance/swift_account': value => 'swift_account_project_name', transform_to => 'project_uuid'
  }

or by defining ::ironic::glance class:

  class{'::ironic::glance':
    swift_account_project_name => 'project_name'
  }

Change-Id: I1df2e069b7922f64c0971551bf57d7c06bd318e2
2017-03-28 10:04:19 +03:00

4 lines
108 B
Puppet

ironic_config {
'glance/swift_account': value => 'swift_user_project', transform_to => 'project_uuid';
}