lxc exec <container> -- dpkg-reconfigure locales
lxc exec <container> -- sudo dpkg-reconfigure tzdata
lxc config set <container> environment.LC_ALL ru_RU.UTF-8
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
| version: "3" | |
| services: | |
| postgres-db: | |
| image: postgres | |
| restart: always | |
| ports: | |
| - 5432:5432 | |
| environment: | |
| POSTGRES_PASSWORD: postgres |
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
| docker ps --format '{{ .Names }}' | egrep -v "($(docker service ls --format '{{ .Name }}' | tr $'\n' '|')XXX)" |
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
| - set_fact: | |
| result: {} | |
| - name: Get uname -a | |
| raw: uname -a | |
| register: uname | |
| - debug: | |
| var: uname |
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/bash | |
| for hostdir in /sys/class/scsi_host/host*; do | |
| echo "- - -" > $hostdir/scan | |
| 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
| lxc config set u3 security.privileged true |
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
| --- | |
| - hosts: all | |
| gather_facts: False | |
| become: yes | |
| pre_tasks: | |
| - name: Install python for Ansible | |
| raw: bash -c "test -e /usr/bin/python || (apt -qqy update && apt install -qqy python-minimal)" | |
| register: output | |
| changed_when: output.stdout != "" |
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
| #!/usr/bin/env ansible-playbook | |
| - name: Test | |
| hosts: all | |
| serial: 1 | |
| order: sorted | |
| gather_facts: no | |
| tasks: | |
| - debug: |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # | |
| # Example vagrant greate multi-box vms | |
| # | |
| # ---- Configuration variables ---- | |
| servers=[ |
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
| sudo mv /opt/1C/v8.3/i386/libstdc++.so.6 /opt/1C/v8.3/i386/libstdc++.so.6.orig | |
| sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6.0.24 /opt/1C/v8.3/i386/libstdc++.so.6 |
NewerOlder