Precedence refers to how versions are compared to each other when ordered. Precedence MUST be calculated by separating the version into major, minor, patch and pre-release identifiers in that order (Build metadata does not figure into precedence). Precedence is determined by the first difference when comparing each of these identifiers from left to right as follows: Major, minor, and patch versions are always compared numerically. Example: 1.0.0 < 2.0.0 < 2.1.0 < 2.1.1. When major, minor, and patch are equal, a pre-release version has lower precedence than a normal version. Example: 1.0.0-alpha < 1.0.0. Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found as follows: identifiers consisting of only digits are compared numerically and identifiers with letters or hyphens are compared lexically in ASCII sort order. Numeric identifiers always have lower precedence than non-n
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
puppetagenttest:/etc/yum.repos.d # yum install puppet-3.7.4 | |
Loaded plugins: security | |
Setting up Install Process | |
Package puppet is obsoleted by puppet-agent, trying to install puppet-agent-1.2.1-1.el6.x86_64 instead | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package facter.x86_64 1:1.7.4-1.el6 will be obsoleted | |
---> Package hiera.noarch 0:1.3.0-1.el6 will be obsoleted | |
---> Package puppet-agent.x86_64 0:1.2.1-1.el6 will be obsoleting | |
--> Finished Dependency Resolution |
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
$include = hiera_array('include') | |
$exclude = hiera_array('exclude') | |
$foo = inline_template('(<%= @include - @exclude ).each { |c| function_include(c)} -%>') |
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
spenceware:~ fids$ puppet --version | |
4.2.1 | |
spenceware:~ fids$ cat test.pp | |
define include($exclude=[]) { | |
if !($name in $exclude) { | |
include $name | |
} | |
} |
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
tcpdump -l -nn -A -s 1024 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | stdbuf -o0 grep -B 5 'curl-' | stdbuf -o0 grep IP | stdbuf -o0 awk '{print $3}' | stdbuf -o0 awk -F . '{print $NF}' | while read x ; do export proc=$(netstat -tanp | grep $x | awk '{print $NF}' | awk -F / '{print $1}'); echo port: $x process: $proc time: $(date +"%T.%N"); done | |
port: 62017 process: 20876 time: 12:46:00.406128785 | |
port: 53698 process: 20878 time: 12:46:01.469619272 | |
port: 53700 process: 20877 time: 12:46:02.526418134 | |
port: 53701 process: 20878 time: 12:46:03.580650936 | |
port: 53702 process: 20878 time: 12:46:04.640834510 |
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@acceptance production]# puppet agent -t | |
Info: Retrieving pluginfacts | |
Info: Retrieving plugin | |
Info: Loading facts | |
Info: Caching catalog for acceptance.puppetdonkeymoth.com | |
Info: Applying configuration version 'production-$(hostname -f)' | |
Notice: Applied catalog in 0.15 seconds | |
Error: Could not send report: Error 400 on SERVER: Could not autoload puppet/reports/componentstacklastused: no such file to load -- cudlsearch | |
[root@acceptance production]# puppet agent --configprint libdir | |
/opt/puppetlabs/puppet/cache/lib |
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
Class ['puppetmaster::sslcerts'] -> Class['puppetmaster::puppet'] | |
The space between Class and the [] produces: | |
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: This Type-Name has no effect. A value-producing expression without other effect may only be placed last in a block/sequence at /platform/puppet/environment/production/modules/puppetmaster/manifests/init.pp:158:3 on node acceptance.puppet.int.thomsonreuters.com |
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@acceptancepuppetserverdev ~]# puppet agent -t --server acceptancepuppetserver | |
Info: Retrieving pluginfacts | |
Info: Retrieving plugin | |
Info: Loading facts | |
Info: Caching catalog for acceptancepuppetserverdev | |
Error: Failed to apply catalog: Could not find dependent Exec[soft_restart_passenger] for File[/platform/puppet/environment/production/environment.conf] at /platform/puppet/environment/production/modules/puppetserver_dev/manifests/init.pp:131 |
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
172.17.1.98 - - - 02/Jun/2015:10:36:54 +0000 "GET /production/certificate_revocation_list/ca HTTP/1.0" 200 0 172.17.1.98 172.17.1.98 8140 5 | |
[root@acceptancedevmaster puppet]# wget -O /var/tmp/crl.pem --no-check-certificate https://acceptancepuppetserver:8140/production/certificate_revocation_list/ca | |
--2015-06-02 06:36:16-- https://acceptancepuppetserver:8140/production/certificate_revocation_list/ca | |
Resolving acceptancepuppetserver... 172.17.1.98 | |
Connecting to acceptancepuppetserver|172.17.1.98|:8140... connected. | |
WARNING: cannot verify acceptancepuppetserver's certificate, issued by `/CN=Puppet CA': | |
Unable to locally verify the issuer's authority. | |
HTTP request sent, awaiting response... 404 Not Found |
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
spenceware:~ fids$ irb | |
irb(main):001:0> require 'hocon/config_factory' | |
=> true | |
irb(main):002:0> Hocon | |
Hocon | |
irb(main):002:0> Hocon | |
Hocon | |
irb(main):002:0> Hocon::ConfigFactory.parse 'webserver: { | |
irb(main):003:0' access-log-config = /etc/puppetserver/request-logging.xml | |
irb(main):004:0' client-auth = want |