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
sdfsdfqfds |
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
TMPFILE=$(mktemp) | |
cat << EOM >$TMPFILE | |
node testnode { | |
class { | |
'sshd': | |
rootlogin => 'without-password' | |
} | |
} | |
EOM | |
$ puppet-lint $TMPFILE |
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
define timeperiod{ | |
name be-holidays | |
timeperiod_name be-holidays | |
alias Belgian holidays | |
january 1 00:00-00:00 ; New Year | |
may 1 00:00-00:00 ; Labour Day | |
july 21 00:00-00:00 ; National holiday | |
august 15 00:00-00:00 ; Assumption of Mary | |
november 1 00:00-00:00 ; All Saints |
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
exec { | |
"Clean repo for $package_name": | |
command => "yum clean all --disablerepo='*' --enablerepo='$repository'", | |
path => '/usr/bin', | |
} | |
package{ | |
"$package_name": | |
ensure => latest, | |
require => Exec["Clean repo for $package_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
file { | |
'initial-config': | |
path => "${config_file}.bak", | |
source => "${config_file}", | |
replace => no, | |
} | |
exec { | |
'rm config': | |
command => "rm ${initial-config}", | |
subscribe => File['initial-config'], |
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
#!/usr/bin/python | |
# This script will re-order the scripts the the jenkins dashboard views | |
# If the jobs are sorted alphabetically, all the jobs do not appear | |
# inside the view. | |
# This script fixes this issues. | |
# USAGE: fix-dashboard-config.py /var/lib/jenkins/config.xml | |
import sys | |
try: | |
from lxml import etree | |
except ImportError: |
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
x=['x'] | |
for i in x: | |
x.append('x') | |
print len(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
if $::puppetversion =~ /^3.6.[12]/ { | |
Package { | |
allow_virtual => true, | |
} | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am roidelapluie on github. | |
* I am roidelapluie (https://keybase.io/roidelapluie) on keybase. | |
* I have a public key whose fingerprint is 19E6 703D 4113 236A 4C1F B492 9ADD 8741 5AA3 2256 | |
To claim this, I am signing this object: |
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 { | |
'foo': | |
service_ensure => 'running', | |
} | |
assertion { 'the service runs': | |
subject => Service['foo'], | |
attribute => 'ensure', |
OlderNewer