This file contains 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
Data which needs to get parsed: | |
<AR> | |
<AR_ID><![CDATA[8]]></AR_ID> | |
<IP><![CDATA[172.16.100.208]]></IP> | |
<MAC><![CDATA[02:00:ac:10:64:d0]]></MAC> | |
<SIZE><![CDATA[1]]></SIZE> | |
<TYPE><![CDATA[IP4]]></TYPE> | |
<USED_LEASES>0</USED_LEASES> | |
<LEASES/> |
This file contains 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
e.g. | |
onevnet_addressrange { 'foo': | |
ensure => present, | |
onevnet => 'bar', | |
... | |
} | |
Should check, that | |
onevnet { 'bar': | |
ensure => present, | |
... |
This file contains 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 |
This file contains 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 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 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 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 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 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 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, |
OlderNewer