Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-comptoir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Comptoir
puppet-comptoir
Commits
7b31ec1f
Commit
7b31ec1f
authored
6 years ago
by
Matthieu Faure
Browse files
Options
Downloads
Patches
Plain Diff
Ensure no write access is granted to others
parent
6857824a
No related branches found
No related tags found
1 merge request
!5
Resolve "Create Comptoir Puppet module"
Pipeline
#3982
passed
6 years ago
Stage: syntax
Stage: unit
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/init.pp
+12
-1
12 additions, 1 deletion
manifests/init.pp
with
12 additions
and
1 deletion
manifests/init.pp
+
12
−
1
View file @
7b31ec1f
...
...
@@ -11,6 +11,7 @@
# @param comptoir_db_password PAssword for the user of the database
# @param comptoir_db_host Name of the database host, must an FQDN or an IP address
# @param comptoir_db_port Port of the database host, must an integer
# @param apache_user System user running Apache, typically www-data
#
# @example
# include comptoir
...
...
@@ -26,6 +27,7 @@ class comptoir (
String
$comptoir_db_password
=
'comptoir'
,
String
$comptoir_db_host
=
'localhost'
,
String
$comptoir_db_port
=
'5432'
,
String
$apache_user
=
'www-data'
,
Boolean
$debug
=
false
,
)
{
...
...
@@ -105,11 +107,20 @@ class comptoir (
}
# Comptoir configuration: COMPTOIR.PHP
->
file
{
'Comptoir COMPTOIR.PHP creation'
:
file
{
'Comptoir COMPTOIR.PHP creation'
:
ensure
=>
present
,
path
=>
$_file_comptoir_php
,
content
=>
template
(
'comptoir/comptoir.php.epp'
),
owner
=>
$comptoir_user
,
require
=>
Exec
[
'Install app with Composer'
],
}
file
{
'Chmod -R o-w'
:
ensure
=>
directory
,
path
=>
$comptoir_dir
,
mode
=>
'o-w'
,
recurse
=>
true
,
require
=>
Exec
[
'Install app with Composer'
],
}
}
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