Skip to content
Snippets Groups Projects
Commit 1a3b5c81 authored by Andreas Alvarsson's avatar Andreas Alvarsson
Browse files

Merge branch 'mysql' into 'production'

Templating dotenv

See merge request !6
parents 398879d4 82d1f863
No related branches found
No related tags found
1 merge request!2Merge till Production
...@@ -121,6 +121,14 @@ class skadereg { ...@@ -121,6 +121,14 @@ class skadereg {
user => 'andal699' user => 'andal699'
} }
file { '/var/www/skadereg/.env':
ensure => file,
owner => 'andal699',
group => 'apache',
mode => '0660',
content => template("${module_name}/dotenv.erb"),
}
class { '::mysql::server': class { '::mysql::server':
root_password => 'ControlAvHandboll', root_password => 'ControlAvHandboll',
databases => { databases => {
......
...@@ -7,3 +7,9 @@ policy skadereg chain skadereg is ...@@ -7,3 +7,9 @@ policy skadereg chain skadereg is
end policy end policy
append rule INPUT -j skadereg append rule INPUT -j skadereg
# <%# Put installed file in view mode when opened with Emacs: -%>
# <%= "Nota bene: Puppet managed file, all local changes will be reverted." %>
# <%= "Local" %> <%= "variables:" %>
# mode: view
# <%= "End:" %>
APP_KEY=1eridaub9oepqakdd9n9ckmk2m33mkv2
DB_PASSWORD=ControlAvHandboll
# <%# Put installed file in view mode when opened with Emacs: -%>
# <%= "Nota bene: Puppet managed file, all local changes will be reverted." %>
# <%= "Local" %> <%= "variables:" %>
# mode: view
# <%= "End:" %>
Example content, rev2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment