Skip to content

Instantly share code, notes, and snippets.

require 'spec_helper'
describe 'profiles::docker' do
context 'supported operating systems' do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts.merge({
:clientcert => 'docker',
})
remy@POADV175: ~/work/ansible master ⚡ $ ansible-playbook itop.yml -vvvv [12:22:05]
Using /etc/ansible/ansible.cfg as config file
statically included: /home/remy/work/ansible/roles/common/tasks/openssh.yml
statically included: /home/remy/work/ansible/roles/common/tasks/disableIPv6.yml
statically included: /home/remy/work/ansible/roles/common/tasks/swappiness.yml
statically included: /home/remy/work/ansible/roles/common/tasks/packages.yml
statically included: /home/remy/work/ansible/roles/common/tasks/entropy.yml
statically included: /home/remy/work/ansible/roles/common/tasks/vm.yml
statically included: /etc/ansible/roles/geerlingguy.mysql/tasks/variables.yml
statically included: /etc/ansible/roles/geerlingguy.mysql/tasks/configure.yml
[root@ns01 named]# nsupdate -d
> server 127.0.0.1
> zone build.company.net
> key hmac-md5:local DowgVbhDayyW7jJGq6+scE1I3/E6NCAAAAAA7wRnijkjN4jKWdL5uIIfxsVg1VKZfEdfw82eLPvAwOf/UI666A==
> update add www 86400 a 10.210.10.123
> send
Sending update to 127.0.0.1#53
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 12959
;; flags:; ZONE: 1, PREREQ: 0, UPDATE: 1, ADDITIONAL: 1
function getSoapHeader($login, $password) {
$wssWssecuritySecextNamespace = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
$wssWssecurityUtilityNamespace = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';
$token = new stdClass();
$token->Username = new SoapVar(
$login,
XSD_STRING,
null,
null,
TASK [me.docker-caddy : GeoLite2-Country database] ***************************************************************************************************************************************************
task path: /home/me/work/ansible-playbooks/roles/me.docker-caddy/tasks/main.yml:20
<163.172.90.333> ESTABLISH SSH CONNECTION FOR USER: root
<163.172.90.333> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/me/.ansible/cp/ab8647d04f 163.172.90.333 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<163.172.90.333> (0, '/root\n', '')
<163.172.90.333> ESTABLISH SSH CONNECTION FOR USER: root
<163.172.90.333> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C
remy@POADV175: ~ $ apt policy python3-click-package && sudo apt install python3-click-package [10:11:51]
python3-click-package:
Installé : 0.4.46+16.10.20170607.3-0ubuntu1
Candidat : 0.4.46+16.10.20170607.3-0ubuntu1
Table de version :
*** 0.4.46+16.10.20170607.3-0ubuntu1 500
500 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 Packages
100 /var/lib/dpkg/status
0.4.45.1+16.10.20160916-0ubuntu1 500
500 http://fr.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
➜ kresus docker logs kresus -f
module.js:471
throw err;
^
Error: Cannot find module '/home/user/app/build/server'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
def download_war(baseurl, login, password, war, version):
"""
Download a war from Nexus and return it's path
"""
try:
url = baseurl + "/" + war + "/" + version + "/" + war + "-" + version + ".war"
result = "/tmp/ " + war + "-" + version + ".war"
# Download file
# stream=True, total_size and with open just so a progress bar can be displayed with tqdm
@rgarrigue
rgarrigue / boxstarter.ps1
Last active February 23, 2018 10:31 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Rémy Garrigue, forked from Jess Frazelle's
# Last Updated: 2018-02-15
################################################## HOWTO
# From CMD as administrator, install chocolatey, install boxstarter, run this script
# @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
# cinstm boxstarter -y
# start http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rgarrigue/8de7a22ac468a94958dfd4ea88c53037/raw/1713bc3e73a8a3b0e2ca4cae34947c19b43b2bd9/boxstarter.ps1
#!/usr/bin/env bash
sudo vboxconfig
sudo update-secureboot-policy --enroll-key
sudo kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/$(uname -r)/updates/dkms/vboxdrv.ko
sudo systemctl restart virtualbox
sudo systemctl status virtualbox