Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aim_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aim_control
Commits
3c30babe
Commit
3c30babe
authored
8 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
MySQL password from hiera
parent
5a447404
No related branches found
No related tags found
1 merge request
!3
MySQL password from hiera
Pipeline
#3720
passed
8 years ago
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/init.pp
+31
-15
31 additions, 15 deletions
manifests/init.pp
with
31 additions
and
15 deletions
manifests/init.pp
+
31
−
15
View file @
3c30babe
...
...
@@ -44,7 +44,9 @@
#
class
skadereg
{
class
skadereg
(
$mysql_password
){
::
users::liu_user
{
'andal699'
:
commonname
=>
'Andreas Alvarsson'
,
shell
=>
'/bin/bash'
,
...
...
@@ -60,10 +62,15 @@ class skadereg {
}
include
::apache::mod::rewrite
package
{
'php55-php-pdo'
:
ensure
=>
installed
;
'php55-php-mbstring'
:
ensure
=>
installed
;
'php55-php-common'
:
ensure
=>
installed
;
package
{
'php55-php-pdo'
:
ensure
=>
installed
;
'php55-php-mbstring'
:
ensure
=>
installed
;
'php55-php-mysqlnd'
:
ensure
=>
installed
;
'php55-php-common'
:
ensure
=>
installed
;
}
file
{
'/etc/httpd/modules/libphp5.so'
:
...
...
@@ -106,19 +113,19 @@ class skadereg {
}
file
{
'/var/www/skadereg/'
:
ensure
=>
directory
,
owner
=>
'andal699'
,
group
=>
'apache'
,
mode
=>
'0770'
,
ensure
=>
directory
,
owner
=>
'andal699'
,
group
=>
'apache'
,
mode
=>
'0770'
,
recurse
=>
true
}->
vcsrepo
{
'/var/www/skadereg'
:
ensure
=>
latest
,
before
=>
File
[
'/var/www/skadereg/public'
],
ensure
=>
latest
,
before
=>
File
[
'/var/www/skadereg/public'
],
provider
=>
git
,
source
=>
'ssh://git@gitlab.it.liu.se:29418/andal699/laravel.git'
,
user
=>
'andal699'
source
=>
'ssh://git@gitlab.it.liu.se:29418/andal699/laravel.git'
,
user
=>
'andal699'
}->
file
{
'/var/www/skadereg/.env'
:
...
...
@@ -130,13 +137,22 @@ class skadereg {
}
class
{
'::mysql::server'
:
root_password
=>
'ControlAvHandboll'
,
root_password
=>
$mysql_password
,
databases
=>
{
'homestead'
=>
{
ensure
=>
present
,
charset
=>
'utf8'
,
}
},
grants
=>
{
'root'
=>
{
ensure
=>
present
,
options
=>
[
'GRANT'
],
privileges
=>
[
'SELECT'
,
'INSERT'
,
'UPDATE'
,
'DELETE'
],
table
=>
'*.*'
,
user
=>
"'root'@'%'"
,
}
},
override_options
=>
{
mysqld
=>
{
'bind-address'
=>
'0.0.0.0'
,
...
...
@@ -144,4 +160,4 @@ class skadereg {
}
}
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment