{"action":"created","issue":{"url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/30","labels_url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/30/comments","events_url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/30/events","html_url":"https://github.com/puppet-community/puppet-windowsfeature/issues/30","id":76728067,"number":30,"title":"feature_name errors with arrays","user":{"login":"hawky84","id":7125740,"avatar_url":"https://avatars.githubusercontent.com/u/7125740?v=3","gravatar_id":"","url":"https://api.github.com/users/hawky84","html_url":"https://github.com/hawky84","followers_url":"https://api.github.com/users/hawky84/followers","following_url":"https://api.github.com/users/hawky84/following{/other_user}","gists_url":"https://api.github.com/users/hawky84/gists{/gist_id}","starred_url":"https://api.github.com/users/hawky84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawky84/subscriptions","organizations_url":"https://api.github.com/users/hawky84/orgs","repos_url":"https://api.github.com/users/hawky84/repos","events_url":"https://api.github.com/users/hawky84/events{/privacy}","received_events_url":"https://api.github.com/users/hawky84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-15T13:34:57Z","updated_at":"2015-05-15T19:16:15Z","closed_at":null,"body":"I've tried several attempts to get the feature_name attribute to accept an array, but even using the 'IIS' example straight from the Puppet forge documentation I get the following error : -\r\n\r\nError: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function suffix at /etc/puppetlabs/puppet/modules/windowsfeature/manifests/in\r\nit.pp:93 on node hxb30237.hiscox.nonprod\r\nWarning: Not using cache on failed catalog\r\nError: Could not retrieve catalog; skipping run\r\n\r\nThis is when using Puppet Enterprise 3.2 and the agent is running on a Windows Server 2012 R2\r\n\r\nHere are the examples I have tried : -\r\n\r\n  windowsfeature { 'PowerShell':\r\n    ensure       => present,\r\n    feature_name => [\r\n      'PowerShellRoot',\r\n      'PowerShell',\r\n      'PowerShell-V2',\r\n      'PowerShell-ISE',\r\n    ],\r\n    require => windowsfeature['NET-Framework-Core'],\r\n  }\r\n\r\n  windowsfeature { 'Test':\r\n    feature_name => [\r\n      'PowerShellRoot',\r\n      'PowerShell',\r\n      'PowerShell-V2',\r\n      'PowerShell-ISE'\r\n    ]\r\n  }\r\n\r\n  windowsfeature { 'IIS':\r\n    feature_name => [\r\n      'Web-Server',\r\n      'Web-WebServer',\r\n      'Web-Asp-Net45',\r\n      'Web-ISAPI-Ext',\r\n      'Web-ISAPI-Filter',\r\n      'NET-Framework-45-ASPNET',\r\n      'WAS-NET-Environment',\r\n      'Web-Http-Redirect',\r\n      'Web-Filtering',\r\n      'Web-Mgmt-Console',\r\n      'Web-Mgmt-Tools'\r\n    ]\r\n  }\r\n\r\nLine 93 : -\r\n\r\n$escaped = join(prefix(suffix($feature_name,'\\''),'\\''),',')\r\n\r\nDependencies are covered : -\r\n\r\npuppetlabs-stdlib (v3.2.0)\r\npuppetlabs-powershell (v1.0.3)\r\n"},"comment":{"url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/comments/102497432","html_url":"https://github.com/puppet-community/puppet-windowsfeature/issues/30#issuecomment-102497432","issue_url":"https://api.github.com/repos/puppet-community/puppet-windowsfeature/issues/30","id":102497432,"user":{"login":"cyberious","id":1703710,"avatar_url":"https://avatars.githubusercontent.com/u/1703710?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberious","html_url":"https://github.com/cyberious","followers_url":"https://api.github.com/users/cyberious/followers","following_url":"https://api.github.com/users/cyberious/following{/other_user}","gists_url":"https://api.github.com/users/cyberious/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberious/subscriptions","organizations_url":"https://api.github.com/users/cyberious/orgs","repos_url":"https://api.github.com/users/cyberious/repos","events_url":"https://api.github.com/users/cyberious/events{/privacy}","received_events_url":"https://api.github.com/users/cyberious/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T19:16:15Z","updated_at":"2015-05-15T19:16:15Z","body":"@liamjbennett took a quick stab at a Type and Provider change for this as well, will work on more but https://github.com/cyberious/puppet-windowsfeature/blob/Function/lib/puppet/provider/windowsfeature/powershell.rb"}}