diff --git a/Puppetfile b/Puppetfile index 1bf0574..a34bc42 100644 --- a/Puppetfile +++ b/Puppetfile @@ -17,7 +17,7 @@ mod 'puppetlabs-translate', '1.1.0' mod 'puppetlabs-sqlserver', '2.5.0' mod 'puppetlabs-chocolatey', '3.3.0' mod 'puppetlabs-dsc', '1.9.2' -mod 'puppetlabs-iis', '4.5.1' +mod 'puppetlabs-iis', '4.5.1' # Modules from Git # Examples: https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#examples diff --git a/modules/iis_demo/manifests/app.pp b/modules/iis_demo/manifests/app.pp index c372fea..c88292e 100644 --- a/modules/iis_demo/manifests/app.pp +++ b/modules/iis_demo/manifests/app.pp @@ -14,6 +14,7 @@ class iis_demo::app ( String $iis_webapp_name = 'TestWebSite', String $path = 'C:\\inetpub\\wwwroot\\Test', String $logpath = 'C:\\inetpub\\logs\\Test', + String $message = '23/05/2019', ) { include iis_demo::iis @@ -109,7 +110,7 @@ class iis_demo::app ( file { "${path}\\Website\\index.html": ensure => file, - content => template('iis/index.html.erb'), + content => template('iis_demo/index.html.erb'), } iis_application { "${iis_site_name}\\${iis_webapp_name}": diff --git a/modules/iis_demo/templates/index.html.erb b/modules/iis_demo/templates/index.html.erb index 166d81b..f1aaf10 100644 --- a/modules/iis_demo/templates/index.html.erb +++ b/modules/iis_demo/templates/index.html.erb @@ -6,6 +6,7 @@

Hell World!

-

This is very minimal "hello world" HTML document.

+

This is very minimal "hello world" HTML document.

+

Message: <%= @message -%>