-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ITSE-3681 replace global variables with facter #1
base: development
Are you sure you want to change the base?
ITSE-3681 replace global variables with facter #1
Conversation
manifests/server.pp
Outdated
$plugin_nginx = false, | ||
$plugin_xcache = false, | ||
$selinux = $::selinux, | ||
$selinux = $facter['os']['selinux']['enabled'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be facts, right?
manifests/client.pp
Outdated
if $::nagios_pci_mptsas { class { '::nagios::check::mptsas': } } | ||
if $::nagios_mysqld { | ||
case $::operatingsystem { | ||
if $facts['nagios_couchbase'] { class { '::nagios::check::couchbase': } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class doesn't need :: either
in fact, class notation here is unnecessary, should be include nagios::check::couchbase
instead
manifests/client.pp
Outdated
} | ||
|
||
# With selinux, some nrpe plugins require additional rules to work | ||
if $selinux and $::selinux_enforced { | ||
if $selinux and $facts['selinux_enforced'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for uniformity, it's os.selinux.enforced
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments above
8bbf5cb
to
ed9bb62
Compare
No description provided.