Skip to content

Instantly share code, notes, and snippets.

View valentinbud's full-sized avatar

Valentin Bud valentinbud

View GitHub Profile
diff --git a/salt/modules/lxc.py b/salt/modules/lxc.py
index 26dd259..9e36ae0 100644
--- a/salt/modules/lxc.py
+++ b/salt/modules/lxc.py
@@ -9,6 +9,7 @@ Work with linux containers
import logging
import tempfile
import os
+import ast
{{ pillar['warnings']['master'] }}
#
# Sample configuration file for ISC dhcpd for Debian
#
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
# Copy mode
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
### Tmux default terminal
# set -g default-terminal "screen-256color"
wget -O ~/.dircolors https://raw2.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
cat >> ~/.zshrc <<EOF
# DIRCOLORS
eval `dircolors ~/.dircolors`
EOF
FROM ubuntu:trusty
MAINTAINER "Valentin Bud <valentin@my-football-team.com>"
# Update the Operating System
RUN apt-get update && apt-get upgrade -y
# Install PHP and Requirements
RUN apt-get install php php-fpm -y
# Add code in image
FIRST TRY
### REMOVE FLOWS
process do |nic|
@nic = nic
if @nic[:ovs_insecure] == "YES"
ovs.deactivate
end
@valentinbud
valentinbud / up.sls
Created May 7, 2015 20:00
cloudgist#0
#!py
import salt.utils.smtp as smtp
import salt.cloud.clouds.opennebula as ONE
import logging
import xmlrpclib
import xml.etree.ElementTree as ET
import binascii
import os
@valentinbud
valentinbud / gist:4d749b8bab87a17d7a409de66e535de2
Created May 25, 2017 10:34
diff aerospike cloudformation template
--- /Users/bud/code/aerospike/aws-cloudformation/aerospike-existing-vpc.json 2017-04-28 08:35:50.000000000 +0300
+++ /Users/bud/code/f4m/tfdev/aerospike/templates/aerospike-cloudformation.json 2017-05-25 10:57:21.000000000 +0300
@@ -21,6 +21,31 @@
"Default" : "default",
"AllowedValues" : [ "default", "dedicated"]
},
+ "Cli53AwsAccessKey" : {
+ "Description" : "The cli53 AWS Access Key",
+ "Type" : "String",
+ "Default" : "AZNJVH"
@valentinbud
valentinbud / Dockerfile
Created April 11, 2018 06:43
docker-jenkins-master
FROM jenkins/jenkins:lts-alpine
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

Keybase proof

I hereby claim:

  • I am valentinbud on github.
  • I am valentinbud (https://keybase.io/valentinbud) on keybase.
  • I have a public key ASBBbZsmnGdDL5rmMjsdfq4Vx6FFHylumBj20UB01ofhAAo

To claim this, I am signing this object: