{"id":13576,"date":"2019-08-28T03:04:34","date_gmt":"2019-08-28T03:04:34","guid":{"rendered":"http:\/\/shivaprogramming.com\/blog\/?p=13576"},"modified":"2019-12-05T17:53:42","modified_gmt":"2019-12-05T17:53:42","slug":"install-iis-using-puppet-code","status":"publish","type":"post","link":"http:\/\/shivaprogramming.com\/blog\/install-iis-using-puppet-code\/","title":{"rendered":"Install IIS using puppet code"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code># copy IIS files into inetpub folder\nfile { 'C:\\\\inetpub\\\\minimal\\\\' :\nensure  => 'directory',\nsource  => 'C:\\\\moveto\\\\ACME',\nrecurse => true,\n}\n\n#create  application pool\niis_application_pool { 'ACME':\n  ensure                  => 'present',\n  state                   => 'started',\n  managed_pipeline_mode   => 'Integrated',\n  managed_runtime_version => 'v4.0',\n} ->\n\n# create Default Website\niis_site { 'Default Web Site':\n  ensure          => 'started',\n  #physicalpath    => 'C:\\\\inetpub',\n  applicationpool => 'ACME',\n} ->\n#create IIS  application \niis_application {'ACME':\n  ensure          => present,\n  applicationname => 'ACME', # &lt;-- Does not need to match the title\n  sitename        => 'Default Web Site',\n  physicalpath => 'C:\\\\inetpub\\\\minimal',\n} ->\n#create IIS application  and convert to application\niis_application{'\/ACME\/UI':\n  applicationpool => 'ACME',\n  ensure          => 'present',\n  sitename        => 'Default Web Site',\nphysicalpath => 'C:\\\\inetpub\\\\minimal\\\\UI'\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-13576","post","type-post","status-publish","format-standard","hentry","category-puppet-configuration-management-tool"],"_links":{"self":[{"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/posts\/13576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/comments?post=13576"}],"version-history":[{"count":4,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/posts\/13576\/revisions"}],"predecessor-version":[{"id":13989,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/posts\/13576\/revisions\/13989"}],"wp:attachment":[{"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/media?parent=13576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/categories?post=13576"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivaprogramming.com\/blog\/wp-json\/wp\/v2\/tags?post=13576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}