setting up my windows role and profile for windows.pp and custom_windows.pp
This commit is contained in:
parent
82d7106962
commit
41575b9c58
@ -15,6 +15,11 @@ mod 'puppet-selinux', '3.1.0'
|
||||
mod 'puppetlabs-puppetserver_gem', '1.1.1'
|
||||
mod 'puppetlabs-motd', '4.0.0'
|
||||
mod 'puppetlabs-bootstrap', '2.0.0'
|
||||
mod 'puppetlabs-windows', '6.1.0'
|
||||
mod 'puppetlabs-registry', '3.1.0'
|
||||
mod 'puppetlabs-powershell', '3.0.1'
|
||||
mod 'puppet-windowsfeature', '3.2.2'
|
||||
mod 'puppetlabs-chocolatey', '5.0.2'
|
||||
|
||||
# Modules from Git
|
||||
# Examples: https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#examples
|
||||
|
5
manifests/os/win.pp
Normal file
5
manifests/os/win.pp
Normal file
@ -0,0 +1,5 @@
|
||||
class os::win {
|
||||
if $osfamily == 'windows' {
|
||||
include role::custom_windows
|
||||
}
|
||||
}
|
6
site-modules/profile/manifests/custom_windows.pp
Normal file
6
site-modules/profile/manifests/custom_windows.pp
Normal file
@ -0,0 +1,6 @@
|
||||
class profile::custom_windows (
|
||||
Boolean $custom_account = false,
|
||||
if $custom_account {
|
||||
class { '::profile::windows::custom_account': }
|
||||
}
|
||||
}
|
11
site-modules/profile/manifests/windows.pp
Normal file
11
site-modules/profile/manifests/windows.pp
Normal file
@ -0,0 +1,11 @@
|
||||
class profile::windows (
|
||||
Boolean $base = false,
|
||||
Boolean $account = false,
|
||||
) {
|
||||
if $base {
|
||||
class { '::profile::windows::base': }
|
||||
}
|
||||
if $account {
|
||||
class { '::profile::windows::account': }
|
||||
}
|
||||
}
|
0
site-modules/profile/manifests/windows/account.pp
Normal file
0
site-modules/profile/manifests/windows/account.pp
Normal file
0
site-modules/profile/manifests/windows/base.pp
Normal file
0
site-modules/profile/manifests/windows/base.pp
Normal file
5
site-modules/role/manifests/custom_winodws.pp
Normal file
5
site-modules/role/manifests/custom_winodws.pp
Normal file
@ -0,0 +1,5 @@
|
||||
class role::custom_windows {
|
||||
|
||||
include profile::custom_windows
|
||||
|
||||
}
|
5
site-modules/role/manifests/windows.pp
Normal file
5
site-modules/role/manifests/windows.pp
Normal file
@ -0,0 +1,5 @@
|
||||
class role::windows {
|
||||
|
||||
include profile::windows
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user