Configure and start service

This commit is contained in:
2022-09-08 20:54:55 -04:00
parent 93a65223fc
commit bccd3e8a4c
9 changed files with 105 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
# @param user The account to run klipper under
# @param python_dir The path to place the klipper python virtualenv
# @param config_dir The path to place klipper config files
# @param log_path Where to store the klipper logs
#
class klipper (
String $version = 'present',
@@ -17,6 +18,13 @@ class klipper (
Stdlib::Absolutepath $src_path = "/home/${klipper::user}/klipper",
Stdlib::Absolutepath $python_dir = "/home/${klipper::user}/klippy-env",
Stdlib::Absolutepath $config_dir = "/home/${klipper::user}/klipper_config",
Stdlib::Absolutepath $log_path = "/home/${klipper::user}/klipper_logs",
) {
contain klipper::install
contain klipper::configure
contain klipper::service
Class['klipper::install']
-> Class['klipper::configure']
-> Class['klipper::service']
}