diff --git a/README.md b/README.md index 7a9d50d..f6b68e5 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 diff --git a/manifests/docker.pp b/manifests/docker.pp index 1c31a21..dcfb80d 100644 --- a/manifests/docker.pp +++ b/manifests/docker.pp @@ -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, } diff --git a/templates/database.yml.epp b/templates/database.yml.epp index 7237316..c4d5eef 100644 --- a/templates/database.yml.epp +++ b/templates/database.yml.epp @@ -8,3 +8,6 @@ development: <<: *default database: <%= $hdm::hdm_path %>/db/development.sqlite3 +production: + <<: *default + database: <%= $hdm::hdm_path %>/db/production.sqlite3