sgnl05 / sgnl05-sssd

Puppet module for SSSD
https://forge.puppet.com/sgnl05/sssd
GNU General Public License v3.0
17 stars 78 forks source link

Smart Parameter for config - Error with Hash value #108

Closed jamboNum5 closed 4 years ago

jamboNum5 commented 4 years ago

When trying to set a default value for the smart parameter config, there is a warning says that the pre-populated config is invalid (seen below). When it is saved as a string I can save the form, but the puppet agent complains that the parameter 'config' expects a Hash value. From my limited understanding of the hashed key-pairs, these look ok.

Am I missing something?

{
    'sssd'               => {
      'domains'             => $::domain,
      'config_file_version' => 2,
      'services'            => ['nss', 'pam'],
    },
    "domain/${::domain}" => {
      'access_provider'    => 'simple',
      'simple_allow_users' => ['root'],
    },
  }
jamboNum5 commented 4 years ago

Newbie mistake, puppet hashes documentation was a bit confusing. When I searched 'foreman hash' I found my answer.

Selected hash as parameter type and then added the config in yaml format:

sssd:
  domain : mydomain.com
  config_file_version : 2

domain/mydomain.com
  access_provider : simple
  simple_allow_users : root