Hello,
I am running puppet 3.7.5
I am trying to accomplish installing a bunch of features on Vista/Server 2008 R1.
The way I have done this is to create an array of features in Hiera and use the following code;
Class blah_blah {
$windowsfeatures = [hiera_array('windows::features')]
if ($::operatingsystemmajrelease == 'Vista') or ($::operatingsystemmajrelease == '2008'){
exec { "ocsetup.exe":
command => "C:\Windows\System32\ocsetup.exe ${windowsfeatures}",
}
else {case statement using DISM for other OSs}
}
The issue i have is that this command sees the array as one long string e.g SNMPTelnetSimpleTCP etc.
I need to separate these values somehow. My idea was to do a for loop through the array...Not so simple.
Any suggestions welcome :)
Thanks in advance
↧