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

preparation for v1 container running in production mode #33

Merged
merged 1 commit into from
Jan 30, 2023
Merged
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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [puppet-hdm](#puppet-hdm)
- [Table of Contents](#table-of-contents)
- [Description](#description)
- [Major Update](#major-update)
- [Setup](#setup)
- [Setup Requirements](#setup-requirements)
- [Beginning with hdm](#beginning-with-hdm)
Expand All @@ -28,6 +29,17 @@ HDM can be installed on Puppet Server or on any other system with PuppetDB acces

This module allows you to either make use of the HDM Docker container or to install HDM using RVM.

## Major Update

As of version 1.0.0 the HDM Docker container runs in production mode.
Existing installations must prepare this change by copying the development.sqlite3 file to production.sqlite3

```shell
cp /etc/hdm/development.sqlite3 /etc/hdm/production.sqlite3
```

After the update, the development.sqlite3 file can be deleted.

## Setup

### Setup Requirements
Expand Down
2 changes: 1 addition & 1 deletion manifests/docker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
content => epp('hdm/database.yml'),
}

file { "${hdm::hdm_path}/db/development.sqlite3":
file { "${hdm::hdm_path}/db/production.sqlite3":
ensure => file,
}

Expand Down
3 changes: 3 additions & 0 deletions templates/database.yml.epp
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ development:
<<: *default
database: <%= $hdm::hdm_path %>/db/development.sqlite3

production:
<<: *default
database: <%= $hdm::hdm_path %>/db/production.sqlite3