voxpupuli / puppet-system

Manage Linux system resources and services from hiera configuration
https://forge.puppet.com/puppet/system
Apache License 2.0
63 stars 47 forks source link

Update module to support puppet 6 #58

Closed hungpr0 closed 1 year ago

hungpr0 commented 6 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Hierahash (all hiera* functions) This function is deprecated in favor of the lookup function. While this function continues to work, it does not support:

lookup_options stored in the data
lookup across global, environment, and module layers

What are you seeing

The data merge doesn't work across the hiera data layer. (environment->module layer). It can only lookup the environment data. Module data doesn't work.

What behaviour did you expect instead

Cam merge global->environment->module data layer

Output log

Any additional information you'd like to impart

I can replace https://github.com/voxpupuli/puppet-system/blob/master/manifests/users.pp $hiera_config = hiera_hash('system::users', undef) by $hieraconfig = lookup( { 'name' => 'system::users', 'merge' => { 'strategy' => 'deep', }, }) The lookup then fine. So you need to replace all hiera* functions by lookup function I guess.

bastelfreak commented 1 year ago

Hi, based on a discussion in https://groups.io/g/voxpupuli/message/449 we decided to archive this repository. I'm going to close all issues and PRs. If you're interested in maintaining the module, please respond to our mailinglist.