OP#547 initial commit after forking
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
## automatic_cd::init.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class initializes the automatic_cd module
|
||||
## confdroid_automatic::init.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class initializes the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd {
|
||||
include automatic_cd::params
|
||||
class confdroid_automatic {
|
||||
include confdroid_automatic::params
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
## automatic_cd::main::config.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages module logic for the automatic_cd module
|
||||
## confdroid_automatic::main::config.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages module logic for the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd::main::config (
|
||||
class confdroid_automatic::main::config (
|
||||
|
||||
) inherits automatic_cd::params {
|
||||
include automatic_cd::main::service
|
||||
) inherits confdroid_automatic::params {
|
||||
include confdroid_automatic::main::service
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
## automatic_cd::main::dirs.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages dirs for the automatic_cd module
|
||||
## confdroid_automatic::main::dirs.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages dirs for the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd::main::dirs (
|
||||
class confdroid_automatic::main::dirs (
|
||||
|
||||
) inherits automatic_cd::params {
|
||||
require automatic_cd::main::install
|
||||
) inherits confdroid_automatic::params {
|
||||
require confdroid_automatic::main::install
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## automatic_cd::main::files.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages files for the automatic_cd module
|
||||
## confdroid_automatic::main::files.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages files for the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd::main::files (
|
||||
class confdroid_automatic::main::files (
|
||||
|
||||
) inherits automatic_cd::params {
|
||||
require automatic_cd::main::dirs
|
||||
) inherits confdroid_automatic::params {
|
||||
require confdroid_automatic::main::dirs
|
||||
|
||||
file { $ac_main_config:
|
||||
ensure => file,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## automatic_cd::main::install.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages installation section for the automatic_cd module
|
||||
## confdroid_automatic::main::install.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages installation section for the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd::main::install (
|
||||
class confdroid_automatic::main::install (
|
||||
|
||||
) inherits automatic_cd::params {
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
) inherits confdroid_automatic::params {
|
||||
package { $ac_reqpackages:
|
||||
ensure => $ac_pkg_ensure,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## automatic_cd::main::service.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages services for the automatic_cd module
|
||||
## confdroid_automatic::main::service.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages services for the confdroid_automatic module
|
||||
##############################################################################
|
||||
class automatic_cd::main::service (
|
||||
class confdroid_automatic::main::service (
|
||||
|
||||
) inherits automatic_cd::params {
|
||||
require automatic_cd::main::files
|
||||
) inherits confdroid_automatic::params {
|
||||
require confdroid_automatic::main::files
|
||||
|
||||
service { $ac_service:
|
||||
ensure => running,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
## automatic_cd::params.pp
|
||||
# Module name: automatic_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages all parameters for the automatic_cd module
|
||||
# @param [String] reqpackages which packages to install
|
||||
# @param [String] pkg_ensure which version of packages to install
|
||||
## confdroid_automatic::params.pp
|
||||
# Module name: confdroid_automatic
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages all parameters for the confdroid_automatic module
|
||||
# @param [String] ac_reqpackages which packages to install
|
||||
# @param [String] ac_pkg_ensure which version of packages to install
|
||||
# @param [String] ac_upgrade_type what upgrades to manage
|
||||
# @param [String] ac_random_sleep random sleep seconds
|
||||
# @param [String] ac_network_online_timeout Maximum time until be online
|
||||
@@ -14,10 +14,10 @@
|
||||
# @param [String] ac_email_to where to send the email to
|
||||
# @param [String] ac_email_host which host to use to send the email
|
||||
##############################################################################
|
||||
class automatic_cd::params (
|
||||
class confdroid_automatic::params (
|
||||
|
||||
String $reqpackages = 'dnf-automatic',
|
||||
String $pkg_ensure = 'latest',
|
||||
String $ac_reqpackages = 'dnf-automatic',
|
||||
String $ac_pkg_ensure = 'latest',
|
||||
|
||||
# updates
|
||||
String $ac_upgrade_type = 'default',
|
||||
@@ -42,8 +42,8 @@ class automatic_cd::params (
|
||||
|
||||
# Files
|
||||
$ac_main_config = '/etc/dnf/automatic.conf'
|
||||
$ac_main_config_erb = 'automatic_cd/automatic.conf.erb'
|
||||
$ac_main_config_erb = 'confdroid_automatic/automatic.conf.erb'
|
||||
|
||||
# includes must be last
|
||||
include automatic_cd::main::config
|
||||
include confdroid_automatic::main::config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user