Hi
I would like to modify a class variable.
This variable contains a list of packages to install
The goal is to make this list of packages different for each type of os 
(case $operatingsystem)

Here uis my code 

class pack_utils {
        $packages = [
          "curl",
          "htop",
          "lshw",
          "lsof"
        ]
        
     case $operatingsystem {
           debian, ubuntu : {
                        #  Here i would like to add packages name in array 
packages defined above
                        notice("value of packages: $packages")

           }
        }
 

        package { $packages:
                  ensure => present,
        }

 }

How i can do to modify the value of $packages ?
Thanks in advance

CedrX

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6ec5d28a-8bc5-4c13-96c0-2c08d78ea928%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to