Skip to content

Commit

Permalink
preparation for v1 container running in production mode (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmea committed Jan 30, 2023
1 parent bd827df commit d7556aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit d7556aa

Please sign in to comment.