Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foreman_config_entry type does not deal well with array data #1048

Open
jhoblitt opened this issue May 4, 2022 · 0 comments
Open

foreman_config_entry type does not deal well with array data #1048

jhoblitt opened this issue May 4, 2022 · 0 comments

Comments

@jhoblitt
Copy link
Contributor

jhoblitt commented May 4, 2022

The foreman_config_entry type only supports scalar values. Rather amazingly, it seems that it is possible to set an "array" of values if passed a stringified JSON array. However, this appears to not be idempotent:

Notice: /Stage[main]/Profile::Core::Puppet_master/Foreman_config_entry[excluded_facts]/value: value changed '["lo","en*v*","usb*","vnet*","macvtap*",";vdsmdummy;","veth*","tap*","qbr*","qvb*","qvo*","qr-*","qg-*","vlinuxbr*","vovsbr*","br-int","vif*","load_averages::*","memory::swap::available*","memory::swap::capacity","memory::swap::used*","memory::system::available*","memory::system::capacity","memory::system::used*","memoryfree","memoryfree_mb","swapfree","swapfree_mb","uptime_hours","uptime_days"]' to '["lo", "en*v*", "usb*", "vnet*", "macvtap*", ";vdsmdummy;", "veth*", "tap*", "qbr*", "qvb*", "qvo*", "qr-*", "qg-*", "vlinuxbr*", "vovsbr*", "br-int", "vif*", "load_averages::*", "memory::swap::available*", "memory::swap::capacity", "memory::swap::used*", "memory::system::available*", "memory::system::capacity", "memory::system::used*", "memoryfree", "memoryfree_mb", "swapfree", "swapfree_mb", "uptime_hours", "uptime_days"]' (corrective)

It would be more convenient if the foreman_config_entry type directly supported array values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant