Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GWDG-Puppet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Benedikt Wegmann
GWDG-Puppet
Commits
daeffad4
Commit
daeffad4
authored
8 years ago
by
Benedikt Wegmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into rspec
parents
837a0ed8
5f12356d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
files/etc/monit/conf.d-extras/puppet-agent
+3
-0
3 additions, 0 deletions
files/etc/monit/conf.d-extras/puppet-agent
manifests/docker_extras.pp
+3
-5
3 additions, 5 deletions
manifests/docker_extras.pp
manifests/monit.pp
+9
-1
9 additions, 1 deletion
manifests/monit.pp
with
15 additions
and
6 deletions
files/etc/monit/conf.d-extras/puppet-agent
0 → 100644
+
3
−
0
View file @
daeffad4
check file last_run_report.yaml with path /var/lib/puppet/state/last_run_report.yaml
if match "status: fail" then alert
if timestamp > 1 hour then alert
This diff is collapsed.
Click to expand it.
manifests/docker_extras.pp
+
3
−
5
View file @
daeffad4
...
...
@@ -13,13 +13,11 @@ class ubuntu_server::docker_extras {
}
file
{
'/etc/init/docker-update.conf'
:
ensure
=>
present
,
source
=>
'puppet:///modules/ubuntu_server/etc/init/docker-update.conf'
,
ensure
=>
absent
,
}
file
{
'/etc/init.d/docker-update'
:
ensure
=>
link
,
target
=>
'/lib/init/upstart-job'
,
ensure
=>
absent
,
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
manifests/monit.pp
+
9
−
1
View file @
daeffad4
# Installs and configures Monit monitoring tool.
class
ubuntu_server::monit
(
$admin_emails
,
$admin_user
=
'madmin'
,
$admin_passwd
=
'gEt0ffMyL4wn'
,
$mailserver
=
'mailer.gwdg.de'
,
$monit_basis_config_template
=
'ubuntu_server/etc/monit/conf.d/config.erb'
,
$monit_filesystems_config_template
=
'ubuntu_server/etc/monit/conf.d/filesystems.erb'
,
$monit_config_dir
=
'puppet:///modules/ubuntu_server/etc/monit/conf.d'
,
$docker_check
=
false
)
{
class
ubuntu_server::monit
(
$admin_emails
,
$admin_user
=
'madmin'
,
$admin_passwd
=
'gEt0ffMyL4wn'
,
$mailserver
=
'mailer.gwdg.de'
,
$monit_basis_config_template
=
'ubuntu_server/etc/monit/conf.d/config.erb'
,
$monit_filesystems_config_template
=
'ubuntu_server/etc/monit/conf.d/filesystems.erb'
,
$monit_config_dir
=
'puppet:///modules/ubuntu_server/etc/monit/conf.d'
,
$docker_check
=
false
,
$puppet_check
=
false
)
{
File
{
owner
=>
root
,
...
...
@@ -62,4 +62,12 @@ class ubuntu_server::monit($admin_emails, $admin_user = 'madmin', $admin_passwd
}
~>
Service
[
'monit'
]
}
if
$puppet_check
==
true
{
file
{
'/etc/monit/conf.d/puppet-agent'
:
ensure
=>
present
,
source
=>
'puppet:///modules/ubuntu_server/etc/monit/conf.d-extras/puppet-agent'
,
require
=>
Package
[
'monit'
],
}
~>
Service
[
'monit'
]
}
}
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