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
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
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
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
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
sdfsdfqfds |
NewerOlder