Bug #15084
open
foreman_config_entry is not idempotent with arrays
Added by Jonathan Camara over 8 years ago.
Updated over 8 years ago.
Description
When modifying a config value that requires an array, the foreman_config_entry type is not idempotent.
Example:
foreman_config_entry {'trusted_puppetmaster_hosts':
value => "[\"puppet1.example.com\", \"puppet2.example.com\"]",
}
returns on the second run:
value changed '"[\"puppet1.example.com\", \"puppet2.example.com\"]"' to '["puppet1.example.com", "puppet2.example.com"]'
- Related to Bug #14778: Cannot use foreman-rake config to set complex (array) settings added
- Category set to Settings
- Status changed from New to Feedback
I think this might be fixed by #14778, which changes the output of arrays etc. Please give the patch a try or 1.11.2, which is due today if all goes well.
Gave 1.11.2 a try, and the second run now returns
value changed '["puppet1.example.com", "puppet2.example.com"]' to '["puppet1.example.com", "puppet2.example.com"]'
- Project changed from Foreman to Installer
- Category changed from Settings to Foreman modules
- Status changed from Feedback to New
Also available in: Atom
PDF