add class chain
This commit is contained in:
12
manifests/main/dirs.pp
Normal file
12
manifests/main/dirs.pp
Normal file
@@ -0,0 +1,12 @@
|
||||
## puppet_cd::main::dirs.pp
|
||||
# Module name: puppet_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||
# @summary Class manages directories for the puppet_cd module.
|
||||
###############################################################################
|
||||
class puppet_cd::main::dirs (
|
||||
|
||||
) inherits puppet_cd::params {
|
||||
|
||||
include puppet_cd::main::install
|
||||
|
||||
}
|
||||
20
manifests/main/files.pp
Normal file
20
manifests/main/files.pp
Normal file
@@ -0,0 +1,20 @@
|
||||
## puppet_cd::main::files.pp
|
||||
# Module name: puppet_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||
# @summary Class manages config files for the puppet_cd module.
|
||||
###############################################################################
|
||||
class puppet_cd::main::files (
|
||||
|
||||
) inherits puppet_cd::params {
|
||||
|
||||
include puppet_cd::main::dirs
|
||||
|
||||
if $fqdn == $pt_puppetmaster {
|
||||
# server files
|
||||
}
|
||||
|
||||
if $fqdn != $pt_puppetmaster {
|
||||
# client files
|
||||
}
|
||||
|
||||
}
|
||||
20
manifests/main/install.pp
Normal file
20
manifests/main/install.pp
Normal file
@@ -0,0 +1,20 @@
|
||||
## puppet_cd::main::install.pp
|
||||
# Module name: puppet_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||
# @summary Class manages package installation for the puppet_cd module.
|
||||
###############################################################################
|
||||
class puppet_cd::main::install (
|
||||
|
||||
) inherits puppet_cd::params {
|
||||
|
||||
require puppet_cd::main::yumrepo
|
||||
|
||||
if $fqdn == $pt_puppetmaster {
|
||||
# install server packages
|
||||
}
|
||||
|
||||
if $fqdn != $pt_puppetmaster {
|
||||
# install agent packages
|
||||
}
|
||||
|
||||
}
|
||||
12
manifests/main/yumrepo.pp
Normal file
12
manifests/main/yumrepo.pp
Normal file
@@ -0,0 +1,12 @@
|
||||
## puppet_cd::main::yumrepo.pp
|
||||
# Module name: puppet_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
||||
# @summary Class manages yum repos for the puppet_cd module.
|
||||
###############################################################################
|
||||
class puppet_cd::main::yumrepo (
|
||||
|
||||
) inherits puppet_cd::params {
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user