Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
puppet-icinga_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
testing
puppet-icinga_admin
Commits
cdf3fef5
Commit
cdf3fef5
authored
Oct 11, 2016
by
Markus Frosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
root: Add root_password_hash parameter and ensure the password
parent
4eb57a57
Pipeline
#175
passed with stage
in 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
manifests/init.pp
manifests/init.pp
+3
-2
manifests/root.pp
manifests/root.pp
+11
-0
No files found.
manifests/init.pp
View file @
cdf3fef5
class
icinga_admin
(
class
icinga_admin
(
$users
=
{},
$users
=
{},
$groups
=
{},
$groups
=
{},
$root_password_hash
=
undef
,
)
{
)
{
validate_hash
(
$users
)
validate_hash
(
$users
)
validate_hash
(
$groups
)
validate_hash
(
$groups
)
...
...
manifests/root.pp
View file @
cdf3fef5
...
@@ -15,4 +15,15 @@ class icinga_admin::root
...
@@ -15,4 +15,15 @@ class icinga_admin::root
ensure
=>
file
,
ensure
=>
file
,
content
=>
template
(
'icinga_admin/bashrc.erb'
);
content
=>
template
(
'icinga_admin/bashrc.erb'
);
}
}
if
$::icinga_admin::root_password_hash
{
validate_string
(
$::icinga_admin::root_password_hash
)
unless
$::icinga_admin::root_password_hash
=~
/^
\$
6
\$
.+
\$
.+/
{
fail
(
'You can only use sha512 salt-hashed passwords for "root_password_hash"!'
)
}
user
{
'root'
:
password
=>
$::icinga_admin::root_password_hash
,
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment