Project

General

Profile

Actions

Bug #15084

open

foreman_config_entry is not idempotent with arrays

Added by Jonathan Camara over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 issues 1 (0 open1 closed)

Related to Foreman - Bug #14778: Cannot use foreman-rake config to set complex (array) settingsClosedLuis Fernández04/22/2016Actions
Actions

Also available in: Atom PDF