|
38 | 38 | # timer_unit_overrides => { 'Description' => 'Very special timer' }, |
39 | 39 | # } |
40 | 40 | define systemd::timer_wrapper ( |
41 | | - Enum['present', 'absent'] $ensure, |
42 | | - Optional[Systemd::Unit::Service::Exec] $pre_command = undef, |
43 | | - Optional[Systemd::Unit::Service::Exec] $command = undef, |
44 | | - Optional[Systemd::Unit::Service::Exec] $post_command = undef, |
45 | | - Optional[String[1]] $user = undef, |
46 | | - Optional[Systemd::Unit::Timespan] $on_active_sec = undef, |
47 | | - Optional[Systemd::Unit::Timespan] $on_boot_sec = undef, |
48 | | - Optional[Systemd::Unit::Timespan] $on_start_up_sec = undef, |
49 | | - Optional[Systemd::Unit::Timespan] $on_unit_active_sec = undef, |
50 | | - Optional[Systemd::Unit::Timespan] $on_unit_inactive_sec = undef, |
51 | | - Optional[Systemd::Unit::Timespan] $on_calendar = undef, |
52 | | - Systemd::Unit::Service $service_overrides = {}, |
53 | | - Systemd::Unit::Timer $timer_overrides = {}, |
54 | | - Systemd::Unit::Unit $timer_unit_overrides = {}, |
55 | | - Systemd::Unit::Unit $service_unit_overrides = {}, |
| 41 | + Enum['present', 'absent'] $ensure, |
| 42 | + Optional[Variant[Systemd::Unit::Service::Exec,Array[Systemd::Unit::Service::Exec,1]]] $pre_command = undef, |
| 43 | + Optional[Variant[Systemd::Unit::Service::Exec,Array[Systemd::Unit::Service::Exec,1]]] $command = undef, |
| 44 | + Optional[Variant[Systemd::Unit::Service::Exec,Array[Systemd::Unit::Service::Exec,1]]] $post_command = undef, |
| 45 | + Optional[String[1]] $user = undef, |
| 46 | + Optional[Systemd::Unit::Timespan] $on_active_sec = undef, |
| 47 | + Optional[Systemd::Unit::Timespan] $on_boot_sec = undef, |
| 48 | + Optional[Systemd::Unit::Timespan] $on_start_up_sec = undef, |
| 49 | + Optional[Systemd::Unit::Timespan] $on_unit_active_sec = undef, |
| 50 | + Optional[Systemd::Unit::Timespan] $on_unit_inactive_sec = undef, |
| 51 | + Optional[Systemd::Unit::Timespan] $on_calendar = undef, |
| 52 | + Systemd::Unit::Service $service_overrides = {}, |
| 53 | + Systemd::Unit::Timer $timer_overrides = {}, |
| 54 | + Systemd::Unit::Unit $timer_unit_overrides = {}, |
| 55 | + Systemd::Unit::Unit $service_unit_overrides = {}, |
56 | 56 | ) { |
57 | 57 | $_timer_spec = { |
58 | 58 | 'OnActiveSec' => $on_active_sec, |
|
0 commit comments