1
0
This commit is contained in:
jhejda@wmpromus.com 2019-05-23 14:07:35 +02:00
parent f480853a61
commit 049c336a4a
5 changed files with 15 additions and 9 deletions
data
nodes
secrets
hiera.yaml
modules/iis_demo/manifests

2
data/nodes/node.yaml Normal file
View File

@ -0,0 +1,2 @@
---
iis_demo::app::service_account_username: user

2
data/secrets/node.yaml Normal file
View File

@ -0,0 +1,2 @@
---
iis_demo::app::service_account_password: pass

View File

@ -10,3 +10,9 @@ hierarchy:
paths:
- "nodes/%{trusted.certname}.yaml"
- 'common.yaml'
- name: "eYaml backend"
lookup_key: eyaml_lookup_key
path: "secrets/%{trusted.certname}.eyaml"
options:
pkcs7_private_key: /etc/puppetlabs/puppet/keys/private_key.pkcs7.pem
pkcs7_public_key: /etc/puppetlabs/puppet/keys/public_key.pkcs7.pem

View File

@ -8,8 +8,8 @@
class iis_demo::app (
String $app_pool_name = 'TestAppPool',
String $service_account_password = undef,
String $service_account_username = undef,
String $service_account_password = lookup('iis_demo::app::service_account_password'),
String $service_account_username = lookup('iis_demo::app::service_account_username'),
String $iis_site_name = 'TestIisSite',
String $iis_webapp_name = 'TestWebSite',
String $path = 'C:\\inetpub\\wwwroot\\Test',
@ -17,7 +17,7 @@ class iis_demo::app (
String $message = '23/05/2019',
) {
include iis_demo::iis_prereqs
include iis_demo::iis
############################################################################
# Create application pool and applicationpool #
@ -63,7 +63,7 @@ class iis_demo::app (
startup_time_limit => '00:01:30',
state => 'started',
user_name => $service_account_username,
#require => Class['iis_demo::iis'],
require => Class['iis_demo::iis'],
}
############################################################################
# Create IIS sites #

View File

@ -10,7 +10,7 @@ class iis_demo::iis_prereqs (
) {
include chocolatey
#include iis_demo::iis
include iis_demo::iis
dsc_windowsfeature { '.NET Framework 4.5':
dsc_ensure => 'present',
@ -131,8 +131,4 @@ class iis_demo::iis_prereqs (
notify => Reboot['reboot_iis'],
}
reboot { 'reboot_iis':
when => refreshed,
timeout => 15,
}
}