-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for managing individual plugin versions
currently on the remote_execution/cockpit plugin class has support for managing the plugin version. all other plugins are tied to the `foreman::plugin_version`. this change adds the same `ensure` parameter to all plugin classes allowing for granular state management.
- Loading branch information
Showing
73 changed files
with
383 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
# Installs foreman_acd plugin | ||
class foreman::plugin::acd { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::acd ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
include foreman::plugin::tasks | ||
include foreman::plugin::remote_execution | ||
|
||
foreman::plugin { 'acd': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# Installs foreman_ansible plugin | ||
class foreman::plugin::ansible { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::ansible ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
include foreman::plugin::tasks | ||
|
||
foreman::plugin { 'ansible': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_azure_rm plugin | ||
class foreman::plugin::azure { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::azure ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'azure_rm': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_bootdisk plugin | ||
class foreman::plugin::bootdisk { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::bootdisk ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'bootdisk': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# Installs foreman_datacenter plugin | ||
class foreman::plugin::datacenter { | ||
foreman::plugin { 'datacenter': } | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::datacenter ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'datacenter': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# Installs foreman_dhcp_browser plugin | ||
class foreman::plugin::dhcp_browser { | ||
foreman::plugin { 'dhcp_browser': } | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::dhcp_browser ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'dhcp_browser': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_dlm plugin | ||
class foreman::plugin::dlm { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::dlm ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'dlm': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_expire_hosts plugin | ||
class foreman::plugin::expire_hosts { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::expire_hosts ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'expire_hosts': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_google plugin | ||
class foreman::plugin::google { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::google ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'google': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# @summary Install the Hiera Data Manager (HDM) plugin | ||
# | ||
class foreman::plugin::hdm { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::hdm ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'hdm': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_host_extra_validator plugin | ||
class foreman::plugin::host_extra_validator { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::host_extra_validator ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'host_extra_validator': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_kernel_care plugin | ||
class foreman::plugin::kernel_care { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::kernel_care ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'kernel_care': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_kubevirt plugin | ||
class foreman::plugin::kubevirt { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::kubevirt ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'kubevirt': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
# Installs foreman_leapp plugin | ||
class foreman::plugin::leapp { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::leapp ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
include foreman::plugin::remote_execution | ||
include foreman::plugin::ansible | ||
|
||
foreman::plugin { 'leapp': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_monitoring plugin | ||
class foreman::plugin::monitoring { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::monitoring ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'monitoring': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Installs foreman_omaha plugin | ||
class foreman::plugin::omaha { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::omaha ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'omaha': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# @summary install the ovirt_provision plugin | ||
class foreman::plugin::ovirt_provision { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::ovirt_provision ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'ovirt_provision': | ||
version => $ensure, | ||
package => $foreman::params::plugin_prefix.regsubst(/foreman[_-]/, 'ovirt_provision_plugin'), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# = Foreman Proxmox plugin | ||
class foreman::plugin::proxmox { | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $ensure:: Specify the package state, or absent/purged to remove it | ||
# | ||
class foreman::plugin::proxmox ( | ||
Optional[String[1]] $ensure = undef, | ||
) { | ||
foreman::plugin { 'fog_proxmox': | ||
version => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.