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
file { '/tmp/git-man_2.9.3-1_all.deb': | |
source => 'puppet:///modules/profiles/git/git-man_2.9.3-1_all.deb', | |
} | |
package { 'git-man_2.9.3-1_all': | |
ensure => 'present', | |
source => '/tmp/git-man_2.9.3-1_all.deb', | |
require => File['/tmp/git-man_2.9.3-1_all.deb'], | |
provider => 'dpkg', | |
} |
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
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.puppetlabs.com wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7F438280EF8D349F | |
W: Failed to fetch http://apt.puppetlabs.com/dists/wheezy/Release | |
W: Some index files failed to download. They have been ignored, or old ones used instead. |
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
<Location /en> | |
Setenv Language es | |
</Location> |
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
Reading package lists... Done | |
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.puppetlabs.com wheezy Release: The following signatures were invalid: KEYEXPIRED 1468001658 | |
W: Failed to fetch http://apt.puppetlabs.com/dists/wheezy/Release | |
date | |
Fri Jul 15 11:15:07 CEST 2016 |
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
$ip = "192.168.0.0" | |
each(split($facts["interfaces"], ",")) |$sd| | |
{ | |
if($facts["ipaddress_$sd"]){ | |
if $facts["ipaddress_$sd"] =~ /192\.168\.0.+/ { | |
$ip = $facts["ipaddress_$sd"] | |
notice($ip) | |
} | |
} | |
} |
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
puppet apply -e 'each(split($facts["interfaces"], ",") |$sd| { notice($sd) })' | |
Error: Evaluation Error: Error while evaluating a Function Call, 'split' does not expect a block at line 1:6 |
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
server=127.0.0.1:4730 | |
key=very-secret-password | |
hosts=no | |
services=no | |
encryption=no | |
p1_file=/usr/share/mod-gearman/mod_gearman_p1.pl | |
servicegroups=svcsitecheck | |
max-worker=1 | |
job_timeout=1800 | |
idle-timeout=1800 |
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
agios 3779 0.0 0.1 30940 3892 ? S Jun21 0:00 \_ /usr/sbin/mod_gearman_worker --config=/etc/mod-gearman/worker.conf | |
nagios 7205 0.0 0.2 31264 5652 ? S 10:59 0:00 \_ /usr/sbin/mod_gearman_worker --config=/etc/mod-gearman/worker.conf | |
nagios 7206 0.0 0.1 13236 2488 ? S 10:59 0:00 \_ bash /usr/lib/nagios/plugins/check_site ES-results.json | |
nagios 7207 0.3 2.6 1020792 54504 ? Sl 10:59 0:00 \_ node --harmony-proxies index.js --config confs/ES-results.json | |
root 2288 0.0 0.1 27224 3452 ? Ss 10:47 0:00 /lib/systemd/systemd --user | |
root 2289 0.0 0.0 50576 1728 ? S 10:47 0:00 \_ (sd-pam) | |
nagios 3428 0.0 0.2 126708 4916 ? SNsl 10:49 0:00 /usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg | |
nagios 4317 0.0 0.1 13236 2568 ? S 10:51 0:00 bash /usr/lib/nagios/plugins/check_site FR-results.json | |
nagios 4318 0.0 2.6 1020792 54240 ? Sl 10:51 0:00 \_ node --harm |
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
Debug: hiera(): Hiera YAML backend starting | |
Debug: hiera(): Looking up nameservers in YAML backend | |
Debug: hiera(): Looking for data source nodes/node01.com | |
Debug: hiera(): Found nameservers in nodes/node01.jetcost.com | |
Debug: hiera(): Looking for data source common | |
Debug: hiera(): Found nameservers in common | |
Debug: hiera(): Looking for data source apache | |
Debug: hiera(): Looking for data source nagios |
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
:backends: | |
- yaml | |
:hierarchy: | |
- "nodes/%{::fqdn}" | |
- common | |
- apache | |
- nagios |