You can conca/home/test/puppet-beginners-guide-3/tenate arrays with the + operator or append them with the << operator. In the following example, we use the ternary operator to assign a specific package name to the $apache variable. We then append that value to an array using the << operator:
$apache = $::osfamily ? { 'Debian' => 'apache2', 'RedHat' => 'httpd'}$packages = ['memcached'] << $apachepackage {$packages: ensure => installed}
If we have two arrays, we can use the + operator to concatenate the two arrays. In this example, we define an array of system administrators ($sysadmins) and another array of application owners ($appowners). We can then concatenate the array and use it as an argument to ...