This file contains 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
--- | |
- hosts: all | |
become: true | |
become_method: sudo | |
become_user: root | |
handlers: | |
- name: Restart | |
notify: Restart dnsmasq |
This file contains 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
--- | |
- hosts: all | |
become: true | |
become_method: sudo | |
become_user: root | |
tasks: | |
- name: Create zabbix network |
This file contains 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 80; | |
server_name xymon.bd.yourlabs.org; | |
auth_basic "Admin-Section"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
location /xymon/ { | |
alias /usr/lib/xymon/server/www/ ; | |
index index.html ; | |
} |
This file contains 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
{# in templates/django_filters/rest_framework/crispy_form.html ensure you load jquery.js #} | |
{% load i18n %} | |
{% load crispy_forms_tags %} | |
{% load static %} | |
<script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script> | |
<h2>{% trans "Field filters" %}</h2> | |
{% crispy filter.form %} |
This file contains 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
before_script: | |
- set -eux; | |
export PHANTOMJS_VERSION=2.1.1; | |
phantomjs --version; | |
export PATH=$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH; | |
phantomjs --version; | |
if [ "$(phantomjs --version)" != "$PHANTOMJS_VERSION" ]; then | |
rm -rf $HOME/travis_phantomjs; | |
mkdir -p $HOME/travis_phantomjs; | |
if [ ! -f $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 ]; then |
This file contains 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/bash | |
set -ex | |
BUILD_DIR=.build | |
ROOTFS_DIR=$BUILD_DIR/image/rootfs | |
STATE_DIR=$BUILD_DIR/state | |
mkdir -p $BUILD_DIR $ROOTFS_DIR $STATE_DIR | |
cp $BUILD_DIR/templates/config.json $ROOTFS_DIR/../ |
This file contains 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
$ sudo dmesg | grep firmware | |
[ 2.569468] [drm] GuC firmware load skipped | |
[ 7.037523] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2 | |
[ 7.037587] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2 | |
[ 7.037640] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2 | |
[ 7.037689] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2 | |
[ 7.042331] iwlwifi 0000:04:00.0: loaded firmware version 22.361476.0 op_mode iwlmvm |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# | |
Vagrant.configure("2") do |config| | |
config.vm.box = "geerlingguy/centos7" | |
# Faster mirror than hashicorp | |
config.vm.box_url = "http://pub.yourlabs.org/geerlingguy.centos7.box" | |
config.vm.provider "virtualbox" do |vb| | |
# vb.gui = true |
This file contains 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
FROM gliderlabs/alpine:3.4 | |
ENV PYTHONUNBUFFERED 1 | |
RUN apk add --no-cache py-pip | |
RUN pip install tox | |
RUN which tox | |
RUN mkdir /src | |
ADD . /src | |
WORKDIR /src | |
RUN ls -l /usr/bin/tox | |
ENTRYPOINT ['/usr/bin/tox'] |
This file contains 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
echo lxd lxd/bridge-ipv4-dhcp-first string 10.0.40.2 | sudo debconf-set-selections | |
echo lxd lxd/bridge-ipv4-netmask string 24 | sudo debconf-set-selections | |
echo lxd lxd/bridge-ipv6-address string | sudo debconf-set-selections | |
echo lxd lxd/bridge-http-proxy boolean false | sudo debconf-set-selections | |
echo lxd lxd/bridge-dnsmasq string | sudo debconf-set-selections | |
echo lxd lxd/bridge-ipv4-dhcp-leases string 252 | sudo debconf-set-selections | |
echo lxd lxd/bridge-empty-error note | sudo debconf-set-selections | |
echo lxd lxd/setup-bridge boolean true | sudo debconf-set-selections | |
echo lxd lxd/bridge-random-warning note | sudo debconf-set-selections | |
echo lxd lxd/bridge-ipv4-nat boolean true | sudo debconf-set-selections |