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

Switch version from main to fix version. #54

Merged
merged 5 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,25 @@ If you want to install HDM using RVM, you need the following modules:

### Beginning with betadots HDM

The most simple approach is to just include the hdm class:
The most simple approach is to just include the hdm class and provide the version parameter:

```puppet
include hdm
```

You can find the released versions on [HDM releases page](https://github.com/betadots/hdm/releases)
```yaml
hdm::version: '1.0.1
```

Another option is to use class resource type declaration:

```puppet
class { 'hdm':
version => '1.0.1',
}
```

tuxmea marked this conversation as resolved.
Show resolved Hide resolved
This will install HDM as docker container.

## Reference
Expand Down
3 changes: 1 addition & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ Data type: `String[1]`
Select the version to deploy.
Version is the image tag name when using docker and
the git tag when using rvm

Default value: `'main'`
Please find the releases on HDM website: https://github.com/betadots/hdm/releases

##### <a name="-hdm--ruby_version"></a>`ruby_version`

Expand Down
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# @param version Select the version to deploy.
# Version is the image tag name when using docker and
# the git tag when using rvm
# Please find the releases on HDM website: https://github.com/betadots/hdm/releases
#
# @param ruby_version Select the ruby version when installing using rvm
# Please check [hdm ruby version requirement](https://github.com/betadots/hdm/blob/main/.ruby-version)
Expand Down Expand Up @@ -119,9 +120,9 @@
# include hdm
class hdm (
# installation parameter
String[1] $version = '1.0.1',
tuxmea marked this conversation as resolved.
Show resolved Hide resolved
Enum['docker', 'rvm'] $method = 'docker',
Boolean $manage_docker = true,
String[1] $version = 'main',
tuxmea marked this conversation as resolved.
Show resolved Hide resolved
String[1] $ruby_version = '3.1.2',
# required application parameter
Stdlib::Port $port = 3000,
Expand Down
1 change: 1 addition & 0 deletions spec/classes/hdm_docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
let(:params) do
{
'method' => 'docker',
'version' => '1.0.1',
}
end

Expand Down
1 change: 1 addition & 0 deletions spec/classes/hdm_rvm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
let(:params) do
{
'method' => 'rvm',
'version' => 'main',
}
end

Expand Down