This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -157,11 +156,11 @@ class apache::mod::security ( | |
# - secrequestbodylimit | |
# - secrequestbodynofileslimit | |
# - secrequestbodyinmemorylimit | |
- file { 'security.conf': | |
+ file { 'security2.conf': | |
ensure => file, | |
content => template('apache/mod/security.conf.erb'), | |
mode => $::apache::file_mode, | |
- path => "${::apache::mod_dir}/security.conf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -64,11 +64,11 @@ define accounts::key_management( | |
group => $group, | |
mode => '0700', | |
} | |
- $sshkey_require = File[$sshkey_dotdir] | |
+ $sshkey_before = File[$sshkey_dotdir] | |
} else { | |
- $sshkey_require = undef | |
+ $sshkey_before = undef |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/manifests/key_management.pp b/manifests/key_management.pp | |
index 6171151..091afc5 100644 | |
--- a/manifests/key_management.pp | |
+++ b/manifests/key_management.pp | |
@@ -22,6 +22,7 @@ | |
# @api private | |
# | |
define accounts::key_management( | |
+ Enum['present','absent'] $ensure = 'present', | |
String $user, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |c| | |
c.before(:each) do | |
# work around https://tickets.puppetlabs.com/browse/PUP-1547 | |
# ensure that there's at least one provider available by emulating that any | |
if Puppet::version < '3.2' | |
# ONLY WORKING WITH PUPPET 2.X !! | |
require 'puppet/provider/confine/exists' | |
Puppet::Provider::Confine::Exists.any_instance.stubs(:which => '') | |
else | |
# ONLY WORKING WITH PUPPET 3.X !! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hiera | |
uptream: | |
'abc_core': | |
'ips': | |
- '1.2.3.4' | |
- '1.2.3.5' | |
'port': 8080 | |
'abc_cp_core': | |
'ips': | |
- '1.2.3.4' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# static rsource declaration | |
class company_users::sysadmin { | |
user {'a': | |
groups => 'sysadmin', | |
} | |
user { 'c': | |
groups => 'sysadmin', | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Strongly adapted from | |
# http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/pkg-ruby-extras.git;a=blob;f=make-mrconfig | |
function msg() { | |
echo "I: $1" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat zones.conf | |
/* | |
* Generated by Icinga 2 node setup commands | |
* on 2016-02-16 12:58:19 +0100 | |
*/ | |
object Endpoint NodeName { | |
} | |
object Zone ZoneName { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@puppetmaster icinga2]# /etc/init.d/icinga2 checkconfig | |
Checking configuration: Done | |
information/cli: Icinga application loader (version: v2.4.1) | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/icinga2.conf | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/constants.conf | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.conf | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/itl | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command.conf | |
information/Utility: Loading library 'libmethods.so' | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-icinga.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@icinga icinga2]# /etc/init.d/icinga2 checkconfig | |
Checking configuration: Done | |
information/cli: Icinga application loader (version: v2.4.1) | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/icinga2.conf | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/constants.conf | |
information/ConfigCompiler: Compiling config file: /etc/icinga2/zones.conf | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/itl | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command.conf | |
information/Utility: Loading library 'libmethods.so' | |
information/ConfigCompiler: Compiling config file: /usr/share/icinga2/include/command-icinga.conf |
NewerOlder