[chef] iis_root not applying or erroring


Chronological Thread 
  • From: Philip Smith < >
  • To:
  • Subject: [chef] iis_root not applying or erroring
  • Date: Tue, 4 Aug 2015 17:32:06 +0100

Hi,

This might be the way I'm writing the recipe, most stuff works apart from the appcmd stuff. If I try to use the the following in my recipe, the configuration is NOT applied:

# add the mime types and default documents
iis_root 'somethingelse' do
  default_documents ['iisstart.htm', 'default.htm', 'default.asp', 'default.aspx', 'index.html', 'index.htm', 'index.cfm']
  action :add
  mime_maps [
    "fileExtension='.ipx',mimeType='application/x-ipix'",
    "fileExtension='.sco',mimeType='application/x-sibileus-scorch'",
    "fileExtension='.mp4',mimeType='video/mp4v-es'",
    "fileExtension='.sitx',mimeType='application/x-stuffitx'",
    "fileExtension='.indd',mimeType='application/x-indesign'",
    "fileExtension='.indt',mimeType='application/octet-stream'",
    "fileExtension='.inx',mimeType='application/octet-stream'",
    "fileExtension='.dmg',mimeType='application/x-apple-diskimage'",
    "fileExtension='.emf',mimeType='image/x-emf'",
    "fileExtension='.properties',mimeType='text/plain'",
    "fileExtension='.xfdf',mimeType='application/vnd.adobe.xfdf'",
    "fileExtension='.vob',mimeType='video/dvd'",
    "fileExtension='.m4v',mimeType='video/x-m4v'",
    "fileExtension='.json',mimeType='application/json'",
    "fileExtension='.oft',mimeType='application/vnd.ms-outlook'",
    "fileExtension='.idml',mimeType='application/epub%u002bzip'",
    "fileExtension='.air',mimeType='application/vnd.adobe.air-application-installer-package zip'",
    "fileExtension='.svg',mimeType='application/svg%u002bxml'",
    "fileExtension='.woff',mimeType='image/eps'",
    "fileExtension='.ai',mimeType='image/ai'",
    "fileExtension='.eps',mimeType='image/eps'"
  ]
end

There are no errors.




If I try using this:
# add the mime types and default documents
iis_root 'somethingelse' do
  add_default_documents ['iisstart.htm', 'default.htm', 'default.asp', 'default.aspx', 'index.html', 'index.htm', 'index.cfm']
  action :config
  add_mime_maps [
    "fileExtension='.ipx',mimeType='application/x-ipix'",
    "fileExtension='.sco',mimeType='application/x-sibileus-scorch'",
    "fileExtension='.mp4',mimeType='video/mp4v-es'",
    "fileExtension='.sitx',mimeType='application/x-stuffitx'",
    "fileExtension='.indd',mimeType='application/x-indesign'",
    "fileExtension='.indt',mimeType='application/octet-stream'",
    "fileExtension='.inx',mimeType='application/octet-stream'",
    "fileExtension='.dmg',mimeType='application/x-apple-diskimage'",
    "fileExtension='.emf',mimeType='image/x-emf'",
    "fileExtension='.properties',mimeType='text/plain'",
    "fileExtension='.xfdf',mimeType='application/vnd.adobe.xfdf'",
    "fileExtension='.vob',mimeType='video/dvd'",
    "fileExtension='.m4v',mimeType='video/x-m4v'",
    "fileExtension='.json',mimeType='application/json'",
    "fileExtension='.oft',mimeType='application/vnd.ms-outlook'",
    "fileExtension='.idml',mimeType='application/epub%u002bzip'",
    "fileExtension='.air',mimeType='application/vnd.adobe.air-application-installer-package zip'",
    "fileExtension='.svg',mimeType='application/svg%u002bxml'",
    "fileExtension='.woff',mimeType='image/eps'",
    "fileExtension='.ai',mimeType='image/ai'",
    "fileExtension='.eps',mimeType='image/eps'"
  ]
end

I am given the following errors:
STDOUT: ERROR ( message:New mimeMap object missing required attributes. Cannot add duplicate collection entry of type 'mimeMap' with unique key attribu
te 'fileExtension' set to '.ipx'

I have tried various things but I'm not getting any results and my knowledge of Chef isn't that deep.

Has anyone encountered this?

Thanks
Phil



--
search<(haystack(needle))


  • [chef] iis_root not applying or erroring, Philip Smith, 08/04/2015

Archive powered by MHonArc 2.6.16.

§