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
use Storable qw(retrieve); | |
use JSON; | |
my $h; | |
my $json; | |
my @jarr; | |
@files = <$ARGV[0]>; | |
foreach $file (@files) { | |
$h = retrieve($file); |
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
i=1 && for f in `cut -f2 -d: channels.conf |sort -u`; do cf=etc/dvblast$((i++)).conf; echo "; dvblast -f $f -c $cf" > $cf; awk -F: -v f=$f -v b=$i 'BEGIN {p = 0} $0 ~ f {printf "; %s\n224.0.0.%s:123%d 1 %s %s,%s\n",$1,b,++p,$13,$11,$12}' channels.conf >> $cf ;done |
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
server { | |
listen 89; # le traffic de la neufbox est capturé puis renvoyé vers le port 89 via pf | |
server_name foobar *.neufbox.neuf.fr; | |
access_log /var/log/nginx/neufbox.access.log; | |
error_log /var/log/nginx/neufbox.error.log; | |
resolver 127.0.0.1; | |
location / { |
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
#!/bin/sh | |
[ $# -lt 1 ] && exit 1 | |
tunnel="jenny.vpntunnel.se" | |
ovpntmp="/tmp/openvpn.conf-tmp" | |
ovpncnf=$1 | |
host -t a ${tunnel} >/dev/null 2>&1 || exit 1 |
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
''' | |
Return yaml-formatted salt data via email | |
The following fields can be set in the minion conf file: | |
smtp.from (required) | |
smtp.to (required) | |
smtp.host (required) | |
smtp.username (optional) | |
smtp.password (optional) |
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
''' | |
Return human readable salt data to a flat file | |
''' | |
# Import python libs | |
import yaml | |
def __virtual__(): | |
return 'file' |
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
### setup Zend Server | |
{% if 'php_version' in grains %} | |
{% set php_version = grains['php_version'] %} | |
{% else %} | |
# pillars are set in our common/pillar | |
{% set php_version = pillar['zs6_php'] %} | |
{% endif %} | |
{% set zs_user = pillar['zs6_user'] %} | |
{% set zs_serial = pillar['zs6_serial'] %} |
NewerOlder