Skip to content

Commit

Permalink
Drop hasstart, hasrestart
Browse files Browse the repository at this point in the history
Since these are deprecated in the future do not
add them here.

voxpupuli#264
  • Loading branch information
traylenator committed Jul 1, 2022
1 parent 9f02dfe commit 03db59d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
20 changes: 0 additions & 20 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1667,8 +1667,6 @@ The following parameters are available in the `systemd::unit_file::templated` de
* [`enable`](#enable)
* [`active`](#active)
* [`restart`](#restart)
* [`hasrestart`](#hasrestart)
* [`hasstatus`](#hasstatus)
* [`selinux_ignore_defaults`](#selinux_ignore_defaults)
* [`service_parameters`](#service_parameters)
* [`daemon_reload`](#daemon_reload)
Expand Down Expand Up @@ -1754,24 +1752,6 @@ Specify a restart command manually. If left unspecified, a standard Puppet servi

Default value: ``undef``

##### <a name="hasrestart"></a>`hasrestart`

Data type: `Optional[Boolean]`

Maps to the same param on the service resource. Optional in the module because it's optional in
the service resource type. This param is deprecated. Set it via $service_parameters.

Default value: ``undef``

##### <a name="hasstatus"></a>`hasstatus`

Data type: `Optional[Boolean]`

maps to the same param on the service resource. true in the module because it's true
in the service resource type. This param is deprecated. Set it via $service_parameters.

Default value: ``undef``

##### <a name="selinux_ignore_defaults"></a>`selinux_ignore_defaults`

Data type: `Boolean`
Expand Down
9 changes: 0 additions & 9 deletions manifests/unit_file/templated.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
# @param enable If set, manage the unit enablement status
# @param active If set, will manage the state of the unit
# @param restart Specify a restart command manually. If left unspecified, a standard Puppet service restart happens
# @param hasrestart
# Maps to the same param on the service resource. Optional in the module because it's optional in
# the service resource type. This param is deprecated. Set it via $service_parameters.
# @param hasstatus
# maps to the same param on the service resource. true in the module because it's true
# in the service resource type. This param is deprecated. Set it via $service_parameters.
# @param selinux_ignore_defaults
# maps to the same param on the file resource for the unit. false in the module because it's false in the file resource type
# @param service_parameters
Expand All @@ -56,8 +50,6 @@
Optional[Variant[Boolean, Enum['mask']]] $enable = undef,
Optional[Boolean] $active = undef,
Optional[String] $restart = undef,
Optional[Boolean] $hasrestart = undef,
Optional[Boolean] $hasstatus = undef,
Boolean $selinux_ignore_defaults = false,
Hash[String[1], Any] $service_parameters = {},
Boolean $daemon_reload = true,
Expand All @@ -76,7 +68,6 @@
show_diff => $show_diff,
enable => $enable,
active => $active,
hasrestart => $hasrestart,
selinux_ignore_defaults => $selinux_ignore_defaults,
service_parameters => $service_parameters,
daemon_reload => $daemon_reload,
Expand Down

0 comments on commit 03db59d

Please sign in to comment.