Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move download_type enum to own type alias #525

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
### Data types

* [`Peadm::ConvertSteps`](#Peadm--ConvertSteps): type for the different steps where the peadm::convert plan can be started
* [`Peadm::Download_mode`](#Peadm--Download_mode): download the installer to the bolt node and upload to targets, or let the targets download it directly
* [`Peadm::Known_hosts`](#Peadm--Known_hosts)
* [`Peadm::Ldap_config`](#Peadm--Ldap_config)
* [`Peadm::Pe_version`](#Peadm--Pe_version)
Expand Down Expand Up @@ -928,6 +929,12 @@ type for the different steps where the peadm::convert plan can be started

Alias of `Enum['modify-primary-certs', 'modify-infra-certs', 'convert-node-groups', 'finalize']`

### <a name="Peadm--Download_mode"></a>`Peadm::Download_mode`

download the installer to the bolt node and upload to targets, or let the targets download it directly

Alias of `Enum['direct', 'bolthost']`

### <a name="Peadm--Known_hosts"></a>`Peadm::Known_hosts`

The Peadm::Known_hosts data type.
Expand Down Expand Up @@ -2262,7 +2269,7 @@ Default value: `undef`

##### <a name="-peadm--install--download_mode"></a>`download_mode`

Data type: `Enum['direct', 'bolthost']`
Data type: `Peadm::Download_mode`



Expand Down Expand Up @@ -2654,7 +2661,7 @@ Default value: `undef`

##### <a name="-peadm--upgrade--download_mode"></a>`download_mode`

Data type: `Enum[direct,bolthost]`
Data type: `Peadm::Download_mode`



Expand Down
2 changes: 1 addition & 1 deletion plans/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
Optional[String] $stagingdir = undef,
Optional[String] $uploaddir = undef,
Enum['running', 'stopped'] $final_agent_state = 'running',
Enum['direct', 'bolthost'] $download_mode = 'bolthost',
Peadm::Download_mode $download_mode = 'bolthost',
Boolean $permit_unsafe_versions = false,
String $token_lifetime = '1y',
) {
Expand Down
2 changes: 1 addition & 1 deletion plans/subplans/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
# Other
String $stagingdir = '/tmp',
String $uploaddir = '/tmp',
Enum[direct,bolthost] $download_mode = 'bolthost',
Peadm::Download_mode $download_mode = 'bolthost',
Boolean $permit_unsafe_versions = false,
String $token_lifetime = '1y',
) {
Expand Down
2 changes: 1 addition & 1 deletion plans/upgrade.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
String $stagingdir = '/tmp',
String $uploaddir = '/tmp',
Enum['running', 'stopped'] $final_agent_state = 'running',
Enum[direct,bolthost] $download_mode = 'bolthost',
Peadm::Download_mode $download_mode = 'bolthost',
Boolean $permit_unsafe_versions = false,

Optional[Peadm::UpgradeSteps] $begin_at_step = undef,
Expand Down
2 changes: 2 additions & 0 deletions types/download_mode.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# @summary download the installer to the bolt node and upload to targets, or let the targets download it directly
type Peadm::Download_mode = Enum['direct','bolthost']
Loading