Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

esx_advanced_options not persistant #172

Open
ggeldenhuis opened this issue May 23, 2016 · 3 comments
Open

esx_advanced_options not persistant #172

ggeldenhuis opened this issue May 23, 2016 · 3 comments

Comments

@ggeldenhuis
Copy link
Contributor

When using the esx_advanced_options type it does not appear to set values persistently. When running puppet apply with the following sudo code:

# hiera data 
pod::vcenter::esxi::esx_advanced_options:
  Config.HostAgent.plugins.solo.enableMob: false
  Security.AccountUnlockTime: 900
  Security.AccountLockFailures: 3
  UserVars.DcuiTimeOut: 600
  Security.PasswordQualityControl: "retry=3 min=disabled,disabled,disabled,7,7"
  UserVars.ESXiShellInteractiveTimeOut: 900
  UserVars.ESXiShellTimeOut: 900
  Mem.ShareForceSalting: 2
  DCUI.Access: root

# puppet code
        esx_advanced_options { $esxi_server_name:
          options   => $esx_advanced_options,
          require   => Vc_host[$esxi_server_name],
          transport => Transport['vcenter'],
        }

You get the following output on the command line:

Notice: /Stage[main]/Pod::Vcenter::Esxi/Esx_advanced_options[esx00002.pod0000x.sys00004.il2management.local]/options: options changed {'Config.HostAgent.plugins.solo.enableMob' => 'false', 'DCUI.Access' => 'root', 'Mem.ShareForceSalting' => '2', 'Security.AccountLockFailures' => '3', 'Security.AccountUnlockTime' => '900', 'Security.PasswordQualityControl' => 'retry=3 min=disabled,disabled,disabled,7,7', 'UserVars.DcuiTimeOut' => '600', 'UserVars.ESXiShellInteractiveTimeOut' => '900', 'UserVars.ESXiShellTimeOut' => '900'} to '{"Config.HostAgent.plugins.solo.enableMob"=>false, "Security.AccountUnlockTime"=>900, "Security.AccountLockFailures"=>3, "UserVars.DcuiTimeOut"=>600, "Security.PasswordQualityControl"=>"retry=3 min=disabled,disabled,disabled,7,7", "UserVars.ESXiShellInteractiveTimeOut"=>900, "UserVars.ESXiShellTimeOut"=>900, "Mem.ShareForceSalting"=>2, "DCUI.Access"=>"root"}'

If you run puppet apply immediately again, you will get the same output again. This seems to suggest that either the settings are not being applied persistently of the resource type/provider does not have a reliable way of determining and comparing the current settings.

@ggeldenhuis
Copy link
Contributor Author

ggeldenhuis commented May 26, 2016

Issue is addressed in #175
It would be useful to force the user to provide strings, if only for ensuring that you don't see apparent non-idempotent behaviour. If all values gets changed to string anyway why allow the user to enter integers.

@crayfishx
Copy link
Contributor

@gjngeldenhuis more appropriate IMO is just to munge the value in the type so it doesn't matter to the user.... I've done that in #202

@ggeldenhuis
Copy link
Contributor Author

@crayfishx lets get #202 merged then.

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

No branches or pull requests

2 participants