eyaml
This commit is contained in:
parent
d33a1a4ef8
commit
95ad3d1873
@ -6,10 +6,10 @@
|
|||||||
# Date: April 2018
|
# Date: April 2018
|
||||||
###
|
###
|
||||||
|
|
||||||
class iis_demo::app (
|
class demo::iis (
|
||||||
String $app_pool_name = 'TestAppPool',
|
String $app_pool_name = 'TestAppPool',
|
||||||
String $service_account_password = lookup('iis_demo::app::service_account_password'),
|
String $service_account_password = lookup('demo::app::service_account_password'),
|
||||||
String $service_account_username = lookup('iis_demo::app::service_account_username'),
|
String $service_account_username = lookup('demo::app::service_account_username'),
|
||||||
String $iis_site_name = 'TestIisSite',
|
String $iis_site_name = 'TestIisSite',
|
||||||
String $iis_webapp_name = 'TestWebSite',
|
String $iis_webapp_name = 'TestWebSite',
|
||||||
String $path = 'C:\\inetpub\\wwwroot\\Test',
|
String $path = 'C:\\inetpub\\wwwroot\\Test',
|
||||||
@ -17,7 +17,7 @@ class iis_demo::app (
|
|||||||
String $message = '23/05/2019',
|
String $message = '23/05/2019',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
require iis_demo::iis
|
require demo::iis_prereqs
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
# Create application pool and applicationpool #
|
# Create application pool and applicationpool #
|
||||||
@ -63,7 +63,7 @@ class iis_demo::app (
|
|||||||
startup_time_limit => '00:01:30',
|
startup_time_limit => '00:01:30',
|
||||||
state => 'started',
|
state => 'started',
|
||||||
user_name => $service_account_username,
|
user_name => $service_account_username,
|
||||||
require => Class['iis_demo::iis'],
|
require => Class['demo::iis_prereqs'],
|
||||||
}
|
}
|
||||||
############################################################################
|
############################################################################
|
||||||
# Create IIS sites #
|
# Create IIS sites #
|
||||||
@ -122,7 +122,7 @@ class iis_demo::app (
|
|||||||
|
|
||||||
file { "${path}\\${iis_webapp_name}\\index.html":
|
file { "${path}\\${iis_webapp_name}\\index.html":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => template('iis_demo/index.html.erb'),
|
content => template('demo/index.html.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
iis_application { "${iis_site_name}\\${iis_webapp_name}":
|
iis_application { "${iis_site_name}\\${iis_webapp_name}":
|
@ -6,7 +6,7 @@
|
|||||||
# Date: April 2018
|
# Date: April 2018
|
||||||
###
|
###
|
||||||
|
|
||||||
class iis_demo::iis (
|
class demo::iis_prereqs (
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
22
modules/demo/manifests/toolbasewin.pp
Normal file
22
modules/demo/manifests/toolbasewin.pp
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
class demo::wintools (
|
||||||
|
String $notepadplusplus = false,
|
||||||
|
String $baretail = false,
|
||||||
|
) {
|
||||||
|
|
||||||
|
include chocolatey
|
||||||
|
|
||||||
|
if $notepadplusplus {
|
||||||
|
package { 'baretail':
|
||||||
|
ensure => installed,
|
||||||
|
provider => chocolatey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if $baretail {
|
||||||
|
package { 'notepadplusplus':
|
||||||
|
ensure => installed,
|
||||||
|
provider => chocolatey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -6,7 +6,7 @@
|
|||||||
# Date: April 2018
|
# Date: April 2018
|
||||||
###
|
###
|
||||||
|
|
||||||
class iis_demo::uninstall_iis (
|
class demo::uninstall_iis (
|
||||||
String $app_pool_name = 'TestAppPool',
|
String $app_pool_name = 'TestAppPool',
|
||||||
String $iis_site_name = 'TestIisSite',
|
String $iis_site_name = 'TestIisSite',
|
||||||
String $iis_webapp_name = 'TestWebSite',
|
String $iis_webapp_name = 'TestWebSite',
|
@ -1,134 +0,0 @@
|
|||||||
####
|
|
||||||
# Class: intapp iis iis_prereqs
|
|
||||||
# Description: Installing IIS Windows Feature and all other necessary features
|
|
||||||
# Customer: Freshfields Bruckhaus Deringer
|
|
||||||
# Author: WM Promus
|
|
||||||
# Date: April 2018
|
|
||||||
###
|
|
||||||
|
|
||||||
class iis_demo::iis_prereqs (
|
|
||||||
) {
|
|
||||||
|
|
||||||
include chocolatey
|
|
||||||
include iis_demo::iis
|
|
||||||
|
|
||||||
dsc_windowsfeature { '.NET Framework 4.5':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'AS-NET-Framework',
|
|
||||||
#require => Package['powershell'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Web Server (IIS) Support':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'AS-Web-Support',
|
|
||||||
#require => Package['powershell'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'HTTP Activation':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'AS-HTTP-Activation',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Storage Services':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'Storage-Services',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { '.NET Framework 4.5 Core':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'NET-Framework-45-Core',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'ASP .NET 4.5':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'NET-Framework-45-ASPNET',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
#dsc_windowsfeature { 'NET WCF HTTP Activation':
|
|
||||||
# dsc_ensure => 'present',
|
|
||||||
# dsc_name => 'NET-WCF-HTTP-Activation',
|
|
||||||
# require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
# notify => Reboot['reboot_iis'],
|
|
||||||
#}
|
|
||||||
|
|
||||||
#dsc_windowsfeature { 'TCP Port Sharing':
|
|
||||||
# dsc_ensure => 'present',
|
|
||||||
# dsc_name => 'NET-WCF-TCP-PortSharing',
|
|
||||||
# require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
# notify => Reboot['reboot_iis'],
|
|
||||||
#}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Ink and Handwriting Services':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'InkAndHandwritingServices',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Media Foundation':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'Server-Media-Foundation',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'SMB 1.0/CIFS File Sharing Support':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'FS-SMB1',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Telnet Client':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'Telnet-Client',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'User Interfaces and Infrastructure':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'User-Interfaces-Infra',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Windows Powershell ISE':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'PowerShell-ISE',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Process Model':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'WAS-Process-Model',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'Configuration APIs':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'WAS-Config-APIs',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
dsc_windowsfeature { 'WoW64 Support':
|
|
||||||
dsc_ensure => 'present',
|
|
||||||
dsc_name => 'WoW64-Support',
|
|
||||||
require => Dsc_windowsfeature['Web Server (IIS) Support'],
|
|
||||||
notify => Reboot['reboot_iis'],
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user