Skip to content

Instantly share code, notes, and snippets.

View roidelapluie's full-sized avatar
🔥

Julien roidelapluie

🔥
  • O11y
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/dashboard/style.css">
2017/07/04 10:51:09 [INFO] Terraform version: 0.10.0 a26ff83279df8e632c8366b08653e12aa570f144+CHANGES
2017/07/04 10:51:09 [INFO] Go runtime version: go1.8
2017/07/04 10:51:09 [INFO] CLI args: []string{"/home/roidelapluie/bin/terraform", "apply", "-var", "machine_count=2"}
2017/07/04 10:51:09 [DEBUG] Attempting to open CLI config file: /home/roidelapluie/.terraformrc
2017/07/04 10:51:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/07/04 10:51:09 [INFO] CLI command args: []string{"apply", "-var", "machine_count=2"}
2017/07/04 10:51:09 [INFO] command: empty terraform config, returning nil
2017/07/04 10:51:09 [DEBUG] command: no data state file found for backend config
2017/07/04 10:51:09 [DEBUG] New state was assigned lineage "489c5e1c-2ff7-4adb-bdce-cbeb91688cc9"
2017/07/04 10:51:09 [INFO] command: backend initialized: <nil>
data.template_file.nginx-config.1: Refreshing state...
data.template_file.nginx-config.0: Refreshing state...
kubernetes_service.rmll_demo: Refreshing state... (ID: default/rmll-demo-nginx-service)
kubernetes_config_map.nginx-config.1: Refreshing state... (ID: default/nginx-rmll02)
kubernetes_config_map.nginx-config.0: Refreshing state... (ID: default/nginx-rmll01)
kubernetes_pod.rmll-demo.0: Creating...
metadata.#: "" => "1"
metadata.0.generation: "" => "<computed>"
metadata.0.labels.%: "" => "1"
metadata.0.labels.run: "" => "nginx"

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 0C7F 1877 69D0 72B9 3B64 2BB9 E484 2505 33AE 92DA

To claim this, I am signing this object:

From what I understand, munging is taking user input and transforming it.
Let's say Yum repos.
yum {
'puppetlabs':
enable => true,
}
But then, the yumrepo accepts true, false, 0, 1.
#!/usr/bin/expect
set package_0 [ lindex $argv 0 ]
send_user "calling rpmsign --addsign $package_0\nargv: $argv"
spawn rpmsign "--addsign" $package_0
expect "Enter pass phrase: "
send {GPGPASSWORD}
send \r
expect eof
@roidelapluie
roidelapluie / fix-dashboard-config.py
Created July 1, 2013 09:39
In the jenkins configuration /var/lib/jenkins/config.xml, in the dashboard views, you must pass the jobs in alphabetical order. But if you manipulate the file externally and you alter the jobs list, the jobs that are not in alphabetical order won't appear in the view. This script reorders them.
#!/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:
file {
'initial-config':
path => "${config_file}.bak",
source => "${config_file}",
replace => no,
}
exec {
'rm config':
command => "rm ${initial-config}",
subscribe => File['initial-config'],
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"]
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