Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-cfssl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
Adullact
puppet-cfssl
Commits
67d85ee3
Commit
67d85ee3
authored
2 years ago
by
Fabien Combernous
Browse files
Options
Downloads
Patches
Plain Diff
add parameter crldir_manage
parent
130febb3
No related branches found
No related tags found
1 merge request
!18
Resolve "add crldir_manage parameter"
Pipeline
#35953
canceled
2 years ago
Stage: syntax
Stage: unit
Stage: acceptance
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
REFERENCE.md
+9
-0
9 additions, 0 deletions
REFERENCE.md
manifests/init.pp
+13
-1
13 additions, 1 deletion
manifests/init.pp
with
22 additions
and
1 deletion
REFERENCE.md
+
9
−
0
View file @
67d85ee3
...
...
@@ -96,6 +96,7 @@ The following parameters are available in the `cfssl` class:
*
[
`serve_config`
](
#serve_config
)
*
[
`crl_manage`
](
#crl_manage
)
*
[
`crldir`
](
#crldir
)
*
[
`crldir_manage`
](
#crldir_manage
)
*
[
`crl_expiry`
](
#crl_expiry
)
*
[
`crl_gentimer`
](
#crl_gentimer
)
*
[
`crl_extension`
](
#crl_extension
)
...
...
@@ -261,6 +262,14 @@ A directory where the CRL file is written.
Default value:
`'/var/cfssl'`
##### <a name="crldir_manage"></a>`crldir_manage`
Data type:
`Boolean`
Determines whether Puppet manages the
`crldir`
directory.
Default value:
``true``
##### <a name="crl_expiry"></a>`crl_expiry`
Data type:
`Integer`
...
...
This diff is collapsed.
Click to expand it.
manifests/init.pp
+
13
−
1
View file @
67d85ee3
...
...
@@ -45,6 +45,7 @@
# @param serve_config The configuration of CFSSL serve process.
# @param crl_manage If true a CRL file is generated from the served autority.
# @param crldir A directory where the CRL file is written.
# @param crldir_manage Determines whether Puppet manages the `crldir` directory.
# @param crl_expiry A value, in seconds, after which the CRL should expire from the moment of the request
# @param crl_gentimer Systemd timer https://www.freedesktop.org/software/systemd/man/systemd.time.html
# @param crl_extension The filename extension suffix used form generated CRL.
...
...
@@ -71,6 +72,7 @@ class cfssl (
Cfssl
::
Serveconfig
$serve_config
=
{
signing
=>
{
'default'
=>
{
expiry
=>
'1h'
,
usages
=>
[
'client auth'
]
}
}
},
Boolean
$crl_manage
=
false
,
Stdlib
::
Absolutepath
$crldir
=
'/var/cfssl'
,
Boolean
$crldir_manage
=
true
,
Integer
$crl_expiry
=
604800
,
String
[
1
]
$crl_gentimer
=
'*:00:00'
,
String
[
1
]
$crl_extension
=
'pem'
,
...
...
@@ -129,7 +131,7 @@ class cfssl (
}
}
file
{
[
$confdir
,
"
${confdir}
/ca"
,
$logdir
,
$crldir
]:
file
{
[
$confdir
,
"
${confdir}
/ca"
,
$logdir
]:
ensure
=>
directory
,
mode
=>
'0700'
,
owner
=>
$sysuser
,
...
...
@@ -137,6 +139,16 @@ class cfssl (
require
=>
User
[
$sysuser
],
}
if
$crldir_manage
{
file
{
$crldir
:
ensure
=>
directory
,
mode
=>
'0700'
,
owner
=>
$sysuser
,
group
=>
$sysgroup
,
require
=>
User
[
$sysuser
],
}
}
postgresql::server::db
{
$dbname
:
user
=>
$dbuser
,
password
=>
postgresql::postgresql_password
(
$dbuser
,
$dbpassword
),
...
...
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